BSD 4_3 development
[unix-history] / usr / contrib / icon / Pimakefile.gen
CommitLineData
5304c223
C
1CFLAGS=
2LDFLAGS=
3LIB=
4iroot=PATH
5V5GBIN=$(iroot)/bin
6DIR=
7
8#
9# To add or replace object files, add their names to the OBJS list below.
10# For example, to add foo.o and bar.o, use:
11#
12# OBJS=foo.o bar.o (this is a sample line)
13#
14# For each object file added to OBJS, add a dependency line to reflect files
15# that are depended on. For example, if foo.c includes rt.h
16# which is located in the h directory use
17#
18# foo.o: ../h/rt.h
19#
20
21OBJS=
22
23PIOBJS=../std/init.o ../std/strprc.o
24RTOBJS=$(PIOBJS) $(OBJS)
25
26Pi: ../picont ../piconx ../pilink
27
28../picont: ../std/icont.c
29 rm -f ../picont picont
30 cc -o ../picont -DIntBin="\"$(DIR)\"" -DIconx="\"$(DIR)/piconx\"" \
31 -DIconxEnv="\"ICONX=$(DIR)/piconx\"" \
32 -DILINK="\"$(DIR)/pilink\"" \
33 -DITRAN="\"$(V5GBIN)/itran\"" -DFORK=QFORK \
34 ../std/icont.c
35 ln ../picont
36
37../pilink: ../std/linklib ../std/builtin.o
38 cc $(LDFLAGS) -X -o ../pilink ../std/builtin.o ../std/linklib
39
40../piconx: ../std/rtlib $(RTOBJS)
41 cc $(LDFLAGS) -X -o ../piconx -e start -u start $(RTOBJS) ../std/rtlib $(LIB)
42
43../std/init.o: ../h/rt.h ../h/err.h ../h/config.h ../h/pdef.h
44 cd ../std; cc -c init.c
45
46../std/builtin.o: ../std/ilink.h ../h/config.h ../h/pdef.h
47 cd ../std; cc -c builtin.c
48
49../std/strprc.o: ../h/rt.h ../h/pnames.h ../h/config.h ../h/pdef.h
50 cd ../std; cc -c strprc.c
51
52Strip: ../picont ../piconx ../pilink
53 strip ../picont ../piconx ../pilink