Commit | Line | Data |
---|---|---|
5304c223 C |
1 | CFLAGS= |
2 | LDFLAGS= | |
3 | LIB= | |
4 | iroot=PATH | |
5 | V5GBIN=$(iroot)/bin | |
6 | DIR= | |
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 | ||
21 | OBJS= | |
22 | ||
23 | PIOBJS=../std/init.o ../std/strprc.o | |
24 | RTOBJS=$(PIOBJS) $(OBJS) | |
25 | ||
26 | Pi: ../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 | ||
52 | Strip: ../picont ../piconx ../pilink | |
53 | strip ../picont ../piconx ../pilink |