1 # $Id: proto.make,v 1.4 1994/06/24 10:20:50 ceriel Exp $
3 #PARAMS do not remove this line!
5 SRC_DIR = $(SRC_HOME)/util/ego/cj
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 cj $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
34 -cmp cj $(EMLIB)/ego/cj
37 rm -f *.$(SUF) cj 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 cj.$(SUF): $(SRC_DIR)/cj.c
61 $(CC) -c $(CFLAGS) $(SRC_DIR)/cj.c
62 cj.$(SUF): $(SRC_DIR)/../share/go.h
63 cj.$(SUF): $(SRC_DIR)/../share/stack_chg.h
64 cj.$(SUF): $(SRC_DIR)/../share/def.h
65 cj.$(SUF): $(SRC_DIR)/../share/aux.h
66 cj.$(SUF): $(SRC_DIR)/../share/alloc.h
67 cj.$(SUF): $(SRC_DIR)/../share/map.h
68 cj.$(SUF): $(SRC_DIR)/../share/lset.h
69 cj.$(SUF): $(SRC_DIR)/../share/put.h
70 cj.$(SUF): $(SRC_DIR)/../share/get.h
71 cj.$(SUF): $(SRC_DIR)/../share/files.h
72 cj.$(SUF): $(SRC_DIR)/../share/global.h
73 cj.$(SUF): $(SRC_DIR)/../share/debug.h
74 cj.$(SUF): $(SRC_DIR)/../share/types.h
75 cj.$(SUF): $(EMH)/em_spec.h
76 cj.$(SUF): $(EMH)/em_mnem.h