cc: add front end to build
authorAlan Cox <alan@linux.intel.com>
Wed, 15 Nov 2017 21:11:02 +0000 (21:11 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 15 Nov 2017 21:11:02 +0000 (21:11 +0000)
Applications/SmallC/Makefile.z80

index b1bd2da..aa79af9 100644 (file)
@@ -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 *~