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/ims |
10 |
|
|
|
11 |
|
|
CODEBASEPATH = /tools/codebase63/source |
12 |
|
|
|
13 |
|
|
INCLUDES = \ |
14 |
|
|
-I$(SRC) \ |
15 |
|
|
-I$(SRCPATH)/dbLibrary \ |
16 |
|
|
-I$(CODEBASEPATH) \ |
17 |
|
|
-I/usr/include \ |
18 |
|
|
-I$(SHAREPATH)/epicsH \ |
19 |
|
|
-I$(SHAREPATH)/ascii |
20 |
|
|
|
21 |
|
|
ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63 |
22 |
|
|
|
23 |
|
|
SRCS = \ |
24 |
|
|
$(SRC)/imsMain.c \ |
25 |
|
|
$(SRC)/imsUtils.c \ |
26 |
|
|
$(SRC)/imsWrite.c |
27 |
|
|
|
28 |
|
|
OBJS = \ |
29 |
|
|
imsMain.o \ |
30 |
|
|
imsUtils.o \ |
31 |
|
|
imsWrite.o |
32 |
|
|
|
33 |
|
|
LIBS = \ |
34 |
|
|
../bin/libUnix.a \ |
35 |
|
|
$(CODEBASEPATH)/libcb.a \ |
36 |
|
|
../bin/libtis.a \ |
37 |
|
|
../bin/libca.a \ |
38 |
|
|
../bin/libCom.a \ |
39 |
|
|
../bin/tisMsgLib.a |
40 |
|
|
|
41 |
tis4000 |
1.2 |
all : depend ims |
42 |
tis4000 |
1.1 |
|
43 |
|
|
ims : $(OBJS) $(LIBS) |
44 |
|
|
$(RM) ims |
45 |
|
|
$(CC) -o ims $(OBJS) $(LIBS) -lm -lsocket -lnsl |
46 |
|
|
|
47 |
|
|
imsMain.o : $(SRC)/imsMain.c |
48 |
|
|
$(RM) imsMain.o |
49 |
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/imsMain.c |
50 |
|
|
|
51 |
|
|
imsWrite.o : $(SRC)/imsWrite.c |
52 |
|
|
$(RM) imsWrite.o |
53 |
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/imsWrite.c |
54 |
|
|
|
55 |
|
|
imsUtils.o : $(SRC)/imsUtils.c |
56 |
|
|
$(RM) imsUtils.o |
57 |
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/imsUtils.c |
58 |
|
|
|
59 |
|
|
clean: |
60 |
|
|
$(RM) $(OBJS) |
61 |
|
|
$(RM) ims |
62 |
tis4000 |
1.2 |
$(RM) Makefile.depend |
63 |
tis4000 |
1.1 |
|
64 |
|
|
install: |
65 |
|
|
cp -p ims ../bin |
66 |
tis4000 |
1.2 |
|
67 |
|
|
depend: Makefile.depend |
68 |
|
|
|
69 |
tis4000 |
1.3 |
Makefile.depend: $(SRCS) Makefile |
70 |
tis4000 |
1.2 |
$(RM) Makefile.depend |
71 |
|
|
$(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend |
72 |
|
|
|
73 |
|
|
include Makefile.depend |
74 |
|
|
|