Parent Directory
|
Revision Log
|
Revision Graph
made Makefile.depend dependant on Makefile
1 | tis4000 | 1.1 | CC = gcc -g -inostdinc -I/usr/include -DUNIX -DSOLARIS -DUSECB63 |
2 | CFLAGS = -g -c -Wunused | ||
3 | |||
4 | RM = rm -f | ||
5 | |||
6 | TOP = ../../.. | ||
7 | SHAREPATH = $(TOP)/share | ||
8 | SRCPATH = $(TOP)/share/src | ||
9 | SRC = $(TOP)/share/src/png | ||
10 | |||
11 | INCLUDES = \ | ||
12 | -I$(SRC) \ | ||
13 | -I$(SHAREPATH)/epicsH | ||
14 | |||
15 | ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63 | ||
16 | |||
17 | SRCS = $(SRC)/pngMain.c | ||
18 | |||
19 | OBJS = pngMain.o | ||
20 | |||
21 | LIBS = \ | ||
22 | ../bin/libca.a \ | ||
23 | ../bin/tisMsgLib.a | ||
24 | |||
25 | |||
26 | tis4000 | 1.2 | all : depend png2 |
27 | tis4000 | 1.1 | |
28 | png2 : $(OBJS) $(LIBS) | ||
29 | $(RM) png2 | ||
30 | $(CC) -o png2 $(OBJS) $(LIBS) -lsocket -lnsl -lm -ldl | ||
31 | |||
32 | pngMain.o : $(SRC)/pngMain.c | ||
33 | $(RM) pngMaon.o | ||
34 | $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/pngMain.c | ||
35 | |||
36 | clean: | ||
37 | $(RM) $(OBJS) | ||
38 | $(RM) png2 | ||
39 | tis4000 | 1.2 | $(RM) Makefile.depend |
40 | tis4000 | 1.1 | |
41 | install: png2 | ||
42 | cp -p png2 ../bin | ||
43 | tis4000 | 1.2 | |
44 | depend: Makefile.depend | ||
45 | |||
46 | tis4000 | 1.3 | Makefile.depend: $(SRCS) Makefile |
47 | tis4000 | 1.2 | $(RM) Makefile.depend |
48 | $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend | ||
49 | |||
50 | include Makefile.depend | ||
51 |
ViewVC Help | |
Powered by ViewVC 1.1.30 |