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 added all target
1 | tis4000 | 1.1 | CC = gcc -g -DUNIX -DSOLARIS -DUSECB63 |
2 | CFLAGS = -g -c -Wunused | ||
3 | RM = rm -f | ||
4 | |||
5 | TOP = ../../.. | ||
6 | SRC = $(TOP)/share/src/dbFix | ||
7 | |||
8 | LIB = /usr/lib | ||
9 | LIBS = \ | ||
10 | $(CODEBASEPATH)/libcb.a \ | ||
11 | ../bin/dbLibrary.a \ | ||
12 | ../bin/libUnix.a \ | ||
13 | ../bin/libtis.a \ | ||
14 | ../bin/libCom.a | ||
15 | CODEBASEPATH = /tools/codebase63/source | ||
16 | INCLUDES = \ | ||
17 | -I$(TOP)/share/epicsH \ | ||
18 | -I$(CODEBASEPATH) | ||
19 | |||
20 | ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63 | ||
21 | |||
22 | SRCS = \ | ||
23 | $(SRC)/dbFix.c | ||
24 | |||
25 | OBJS = \ | ||
26 | dbFix.o | ||
27 | |||
28 | tis4000 | 1.2 | all : depend dbFix |
29 | |||
30 | tis4000 | 1.1 | dbFix : $(OBJS) $(LIBS) |
31 | $(RM) dbFix | ||
32 | gcc -static -o dbFix dbFix.o $(LIBS) \ | ||
33 | $(LIB)/libc.a $(LIB)/libm.a \ | ||
34 | |||
35 | dbFix.o : $(SRC)/dbFix.c | ||
36 | $(RM) dbFix.o | ||
37 | $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/dbFix.c | ||
38 | |||
39 | install : dbFix | ||
40 | cp -p dbFix ../bin | ||
41 | |||
42 | clean : | ||
43 | $(RM) $(OBJS) | ||
44 | $(RM) dbFix | ||
45 | tis4000 | 1.2 | $(RM) Makefile.depend |
46 | |||
47 | depend: Makefile.depend | ||
48 | |||
49 | Makefile.depend: $(SRCS) | ||
50 | $(RM) Makefile.depend | ||
51 | $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend | ||
52 | |||
53 | include Makefile.depend | ||
54 | tis4000 | 1.1 |
ViewVC Help | |
Powered by ViewVC 1.1.28 |