Commit c5e53124 authored by rdubner's avatar rdubner

Debug cobst

parent 8f1caf7d
......@@ -521,8 +521,8 @@ CreateSymc(PARAMETERS &params,
char_count = 10 ;
}
if( char_count >= 120 ) {
params.symc << "\\n\"" << endl;
char_count = 0;
params.symc << "\"" << endl << "\"";
char_count = 1;
continue;
}
char ch = s[i++];
......@@ -532,7 +532,7 @@ CreateSymc(PARAMETERS &params,
continue;
}
if( ch EQ '\\' OR ch EQ '\"' ) {
params.symc << "\\";
params.symc << "\\\\\\";
char_count += 1;
}
params.symc << ch;
......
......@@ -35,7 +35,8 @@ $(project) : $(project).cbl
@# Get rid of intermediate files, leaving behind the .tab file needed by gdb
rm -f $(project).c $(project).o $(project).cbl.o $(project)*.h $(project).i \
$(project).lst $(project).cbl.lst $(project).full.tab $(project).tab
$(project).lst $(project).cbl.lst $(project).full.tab $(project).tab \
$(project).sym.c $(project).sym.o
# This cleans up the various project files, along with any additional
# $(CLEAN) files specified by the parent Makefile It also clobbers any
......
......@@ -83,7 +83,7 @@ $(project).s : $(project).cbl
# .txt files that might be lying around; I often create .txt files
# from dwarfdump and hexdump.
.PHONY : clean
suffixes = .c .s *.h .i .lst .cbl.lst .full.tab .tab .o .cbl.o .x -2.lst
suffixes = .c .s *.h .i .lst .cbl.lst .full.tab .tab .o .cbl.o .x -2.lst .sym.c .sym.o
clean:
rm -f $(addprefix $(project),$(suffixes)) $(project) *.txt $(CLEAN)
......@@ -120,12 +120,13 @@ $(project).c $(project).lst : $(project).cbl
--fgen-c-line-directives --fgen-c-labels \
-T$(project).cbl.lst --tlines=0 --tsymbols $(project).cbl
$(project).tab : $(project).lst
$(project).sym.o : $(project).lst
@echo " "
@echo "*****************************"
@echo "Generate symbols cross-reference"
@echo "*****************************"
$(COBST) $(project).cbl
gcc -c -o $(project).sym.o $(project).sym.c
$(project).s : $(project).c
@echo " "
......@@ -148,21 +149,19 @@ $(project).o : $(project).s
$(ASSEMBLER) --64 -L -anchls=$(project)-2.lst -o $(project).o $(project).s
$(project).cbl.o : $(project).tab $(project).o
@echo " "
@echo "*****************************"
@echo "Do Dubner's modifications to O"
@echo "*****************************"
$(OBMOD) -x -i $(project).o -t $(project).tab -o $(project).cbl.o
#$(project).cbl.o : $(project).tab $(project).o
# @echo " "
# @echo "*****************************"
# @echo "Do Dubner's modifications to O"
# @echo "*****************************"
# $(OBMOD) -x -i $(project).o -t $(project).tab -o $(project).cbl.o
$(project) : $(project).o $(project).sym.o
@echo " "
@echo "*****************************"
@echo "Load from O into executable"
@echo "*****************************"
$(project) : $(project).cbl.o
$(COBC) -x -o $(project) $(project).cbl.o
$(COBC) -x -o $(project) $(project).o $(project).sym.o
......
This diff is collapsed.
......@@ -26,7 +26,8 @@ boat.o:
clean:
rm -f boat.o libboat.so launchso.o launchso elbarco.so elbarco.tab
rm -f $(project).c $(project).cbl.lst $(project).cbl.o $(project).c*.h \
$(project).full.tab $(project).i $(project).lst $(project).o
$(project).full.tab $(project).i $(project).lst $(project).o \
$(project).sym.c $(project).sym.o
pregit:
# astyle -n --style=kr *.h
......@@ -51,7 +52,8 @@ $(project).so : $(project).cbl
@# Get rid of the intermediate files:
rm -f $(project).c $(project).cbl.lst $(project).cbl.o $(project).c*.h \
$(project).full.tab $(project).i $(project).lst $(project).o
$(project).full.tab $(project).i $(project).lst $(project).o \
$(project).sym.c $(project).sym.o
stubby:
COB_CFLAGS="-Wa,-L,-anchls=$(project).lst" cobc -g $(free) \
......
......@@ -12,3 +12,5 @@ optfde01.o
optfde01.s
optfde01.tab
optfde01.x
optfde01.sym.c
optfde01.sym.o
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment