From: Alan Cox Date: Wed, 15 Nov 2017 21:11:02 +0000 (+0000) Subject: cc: add front end to build X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e6f8ebe5a912e01472ba28558902f101ccd374a7;p=FUZIX.git cc: add front end to build --- diff --git a/Applications/SmallC/Makefile.z80 b/Applications/SmallC/Makefile.z80 index b1bd2da9..aa79af99 100644 --- a/Applications/SmallC/Makefile.z80 +++ b/Applications/SmallC/Makefile.z80 @@ -5,7 +5,8 @@ CFLAGS = -DTINY COPT = -O2 OBJS = initials.rel data.rel error.rel expr.rel function.rel gen.rel io.rel \ - lex.rel main.rel outstack.rel preproc.rel primary.rel stmt.rel struct.rel sym.rel while.rel + lex.rel main.rel outstack.rel preproc.rel primary.rel stmt.rel \ + struct.rel sym.rel while.rel OBJ_Z80 = codez80.rel OBJ_8080 = code8080.rel @@ -14,10 +15,12 @@ OBJ_6809 = code6809.rel OBJ_COPT = copt.rel +OBJ_CC = frontend.rel + INC = data.h defs.h prototype.h OBJS_ALL = $(OBJS) $(OBJ_Z80) $(OBJ_8080) -all: scc6801 scc6809 scc8080 sccz80 copt +all: scc6801 scc6809 scc8080 sccz80 copt cc sccz80: $(OBJS) $(OBJ_Z80) $(CC) -o sccz80 --nostdio $(OBJS) $(OBJ_Z80) @@ -34,6 +37,9 @@ scc6809: $(OBJS) $(OBJ_6809) copt: $(OBJ_COPT) $(CC) -o copt $(OBJ_COPT) +cc: $(OBJ_CC) + $(CC) -o cc $(OBJ_CC) + clean: rm -f $(OBJ) scc8080 sccz80 scc6801 scc6809 *.rel *~