1 # $Id: proto.make,v 1.4 1994/06/24 10:31:17 ceriel Exp $
3 #PARAMS do not remove this line!
5 SRC_DIR = $(SRC_HOME)/util/ego/sp
7 EMLIB=$(TARGET_HOME)/lib.bin
10 CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
11 CFLAGS=$(CPPFLAGS) $(COPTIONS)
12 LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
23 $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
28 $(CC) -o sp $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
34 -cmp sp $(EMLIB)/ego/sp
37 rm -f *.$(SUF) sp Out out nohup.out
40 $(LINT) $(LINTFLAGS) $(CFILES) $(EMLIB)/ego/$(LINTPREF)share.$(LINTSUF) $(EMLIB)/$(LINTPREF)em_data.$(LINTSUF)
49 rm_deps Makefile >Makefile.new
50 for i in $(CFILES) ; do \
51 echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
52 echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
53 $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF): /" >> Makefile.new ; \
55 mv Makefile Makefile.old
56 mv Makefile.new Makefile
58 # do not remove the next line
60 sp.$(SUF): $(SRC_DIR)/sp.c
61 $(CC) -c $(CFLAGS) $(SRC_DIR)/sp.c
62 sp.$(SUF): $(SRC_DIR)/../share/stack_chg.h
63 sp.$(SUF): $(SRC_DIR)/../share/go.h
64 sp.$(SUF): $(SRC_DIR)/../share/aux.h
65 sp.$(SUF): $(SRC_DIR)/../share/alloc.h
66 sp.$(SUF): $(SRC_DIR)/../share/map.h
67 sp.$(SUF): $(SRC_DIR)/../share/lset.h
68 sp.$(SUF): $(SRC_DIR)/../share/put.h
69 sp.$(SUF): $(SRC_DIR)/../share/get.h
70 sp.$(SUF): $(SRC_DIR)/../share/files.h
71 sp.$(SUF): $(SRC_DIR)/../share/global.h
72 sp.$(SUF): $(SRC_DIR)/../share/debug.h
73 sp.$(SUF): $(SRC_DIR)/../share/types.h
74 sp.$(SUF): $(EMH)/em_spec.h
75 sp.$(SUF): $(EMH)/em_mnem.h