adaptions for generation of compiler with embedded code-generator
authorceriel <none@none>
Fri, 10 Jun 1988 09:17:45 +0000 (09:17 +0000)
committerceriel <none@none>
Fri, 10 Jun 1988 09:17:45 +0000 (09:17 +0000)
lang/cem/cemcom/Makefile
lang/cem/cemcom/Resolve

index 69e4561..6ccf10d 100644 (file)
@@ -16,6 +16,7 @@ STRLIB = $(EMHOME)/modules/lib/libstring.a
 PRTLIB = $(EMHOME)/modules/lib/libprint.a
 EMMESLIB = $(EMHOME)/modules/lib/libem_mes.a
 EMMESOLIB = $(EMHOME)/modules/lib/libem_mesO.a
+EMMESCELIB = $(EMHOME)/modules/lib/libem_mesCE.a
 INPLIB = $(EMHOME)/modules/lib/libinput.a
 ALLOCLIB = $(EMHOME)/modules/lib/liballoc.a
 MALLOC = $(EMHOME)/modules/lib/malloc.o
@@ -25,6 +26,8 @@ ELIBS = $(INPLIB) $(EMMESLIB) $(EMELIB) $(PRTLIB) $(STRLIB) \
        $(ALLOCLIB) $(MALLOC) $(SYSLIB)
 OLIBS = $(INPLIB) $(EMMESOLIB) $(EMOLIB) $(EMKLIB) $(PRTLIB) $(STRLIB) \
        $(ALLOCLIB) $(MALLOC) $(SYSLIB)
+CELIBS = $(INPLIB) $(EMMESCELIB) $(EMCELIB) $(PRTLIB) $(STRLIB) \
+       $(ALLOCLIB) $(MALLOC) $(SYSLIB)
 LIB_INCLUDES = -I$(EMHOME)/modules/h -I$(EMHOME)/modules/pkg
 EM_INCLUDES = -I$(EMHOME)/h
 SYSLLIB = $(EMHOME)/modules/lib/llib-lsystem.ln
@@ -127,6 +130,11 @@ Omain:     Cfiles
        sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) "COPTIONS="-DPEEPHOLE $(CURRDIR)/omain ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve omain ; fi'
        @rm -f nmclash.o a.out *.o
 
+CEmain:        Cfiles
+       rm -f *.o
+       sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) "COPTIONS="-DCODE_EXPANDER $(CURRDIR)/cemain ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve cemain ; fi'
+       @rm -f nmclash.o a.out *.o
+
 install:       Main
        rm -f $(EMHOME)/lib/em_cemcom $(EMHOME)/man/em_cemcom.6
        cp $(CURRDIR)/main $(EMHOME)/lib/em_cemcom
@@ -221,6 +229,10 @@ $(CURRDIR)/omain:  $(OBJ) $(CURRDIR)/makefile
        $(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(OLIBS) -o $(CURRDIR)/omain 
        size $(CURRDIR)/omain
 
+$(CURRDIR)/cemain:     $(OBJ) $(CURRDIR)/makefile
+       $(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(CELIBS) -o $(CURRDIR)/cemain 
+       size $(CURRDIR)/cemain
+
 Xlint:
        lint $(CDEFS) $(LINTFLAGS) $(SRC)
 
index ab0d81b..2160479 100755 (executable)
@@ -19,6 +19,10 @@ omain)
        target=$PW/$1
        options=-DPEEPHOLE
        ;;
+cemain)
+       target=$PW/$1
+       options=-DCODE_EXPANDER
+       ;;
 Xlint)
        target=$1
        ;;