Added C_insertpart mechanism

This commit is contained in:
ceriel
1987-07-01 17:24:10 +00:00
parent 19897803d4
commit 83bc77ad51
12 changed files with 586 additions and 132 deletions

View File

@@ -1,6 +1,9 @@
EMHOME = ../../..
INSTALL = $(EMHOME)/modules/install
COMPARE = $(EMHOME)/modules/compare
INCORE = -DINCORE
CFLAGS = -I$(EMHOME)/h -I$(EMHOME)/modules/h -O
OBS = failed.o insert.o internerr.o io.o getid.o
all: libeme.a libemk.a em_code.3
rm -f C_*.c
@@ -19,15 +22,15 @@ em_code.3: em_code.3X
-sh -c 'tbl < em_code.3X > em_code.3'
-sh -c 'if test -s em_code.3 ; then : ; else cp em_code.3X em_code.3 ; fi '
libeme.a: make.sh e/em_private.h e/em.c failed.c
libeme.a: make.sh e/em_private.h e/em.c $(OBS)
EMHOME=$(EMHOME); export EMHOME; sh make.sh e
-sh -c 'ranlib libeme.a'
libemk.a: make.sh k/em_private.h k/em.c failed.c
libemk.a: make.sh k/em_private.h k/em.c $(OBS)
EMHOME=$(EMHOME); export EMHOME; sh make.sh k
-sh -c 'ranlib libemk.a'
make.sh: em.gen em.nogen
make.sh: em.gen em.nogen make.fun
make.fun em.gen em.nogen | sh
em.gen: make.em.gen $(EMHOME)/etc/em_table
@@ -50,3 +53,9 @@ lintlib: make.sh
lint -I../../h -I../../../h -Ie -Ceme *.c e/*.c
lint -I../../h -I../../../h -Ik -Cemk *.c k/*.c
mv llib-leme.ln llib-lemk.ln $(EMHOME)/modules/lib
insert.o: insert.c insert.h
$(CC) $(CFLAGS) -c $(INCORE) insert.c
io.o: io.c insert.h
$(CC) $(CFLAGS) -c $(INCORE) io.c