Parent Directory
|
Revision Log
|
Revision Graph
08-17-99 ems added target depend, which creates Makefile.depend since the dependancies are differant from machine to machine, not having the dependancies in the Makefile will not confuse CVS
1 | CC = gcc -inostdinc -I/usr/include -DSOLARIS |
2 | CFLAGS = -Wunused |
3 | |
4 | RM = rm -f |
5 | |
6 | TOP = ../../.. |
7 | SHAREPATH = $(TOP)/share |
8 | SRCPATH = $(SHAREPATH)/src |
9 | SRC = $(SRCPATH)/imps |
10 | |
11 | INCLUDES = \ |
12 | -I$(SRC) \ |
13 | -I$(SHAREPATH)/epicsH |
14 | |
15 | ALLDEFINES = $(INCLUDES) -DSOLARIS |
16 | |
17 | SRCS = \ |
18 | $(SRC)/bootld.c \ |
19 | $(SRC)/rerouted.c |
20 | |
21 | LIBS = ../bin/tisMsgLib.a |
22 | |
23 | all: depend bootld rerouted |
24 | |
25 | bootld: $(SRC)/bootld.c |
26 | $(RM) bootld |
27 | $(CC) -o bootld -g $(CFLAGS) $(INCLUDES) $(SRC)/bootld.c -lsocket -lnsl -ldl |
28 | |
29 | rerouted: $(SRC)/rerouted.c |
30 | $(RM) rerouted |
31 | $(CC) -o rerouted -g $(CFLAGS) $(INCLUDES) -DBSD_COMP $(SRC)/rerouted.c \ |
32 | $(LIBS) -ldl -lkvm -lsocket -lnsl -lelf |
33 | |
34 | install: |
35 | $(RM) ../bin/bootld |
36 | cp -p bootld ../bin ; chmod 4555 ../bin/bootld |
37 | $(RM) ../bin/rerouted |
38 | cp -p rerouted ../bin ; chmod 4555 ../bin/rerouted |
39 | |
40 | clean: |
41 | $(RM) bootld |
42 | $(RM) rerouted |
43 | $(RM) Makefile.depend |
44 | |
45 | depend: Makefile.depend |
46 | |
47 | Makefile.depend: $(SRCS) |
48 | $(RM) Makefile.depend |
49 | $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend |
50 | |
51 | include Makefile.depend |
52 |
ViewVC Help | |
Powered by ViewVC 1.1.28 |