Pristine Ack-5.5
[Ack-5.5.git] / util / ego / sp / proto.make
1 # $Id: proto.make,v 1.4 1994/06/24 10:31:17 ceriel Exp $
2
3 #PARAMS         do not remove this line!
4
5 SRC_DIR = $(SRC_HOME)/util/ego/sp
6 EMH=$(TARGET_HOME)/h
7 EMLIB=$(TARGET_HOME)/lib.bin
8
9 LDFLAGS=$(LDOPTIONS)
10 CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
11 CFLAGS=$(CPPFLAGS) $(COPTIONS)
12 LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
13
14 CFILES=\
15         $(SRC_DIR)/sp.c
16
17 OFILES=\
18 sp.$(SUF)
19
20 HFILES=
21
22 PRFILES=\
23         $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
24
25 all:    sp
26
27 sp:     $(OFILES)
28         $(CC) -o sp $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
29
30 install:        all
31         cp sp $(EMLIB)/ego/sp
32
33 cmp:    all
34         -cmp sp $(EMLIB)/ego/sp
35
36 clean:
37         rm -f *.$(SUF) sp Out out nohup.out
38
39 lint:
40         $(LINT) $(LINTFLAGS) $(CFILES) $(EMLIB)/ego/$(LINTPREF)share.$(LINTSUF) $(EMLIB)/$(LINTPREF)em_data.$(LINTSUF)
41
42 pr:
43         @pr $(PRFILES)
44
45 opr:
46         make pr | opr
47
48 depend:
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 ; \
54         done
55         mv Makefile Makefile.old
56         mv Makefile.new Makefile
57
58 # do not remove the next line
59 #DEPENDENCIES
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