1 |
tis4000 |
1.1 |
CC = gcc -inostdinc -I/usr/include -I/usr/include/sys -DSOLARIS -DUSECB63 |
2 |
|
|
CFLAGS = -c -g -Wunused |
3 |
|
|
|
4 |
|
|
RM = rm -f |
5 |
|
|
|
6 |
|
|
TOP = ../../.. |
7 |
|
|
SHAREPATH = $(TOP)/share |
8 |
|
|
SRCPATH = $(TOP)/share/src |
9 |
|
|
SRC = $(TOP)/share/src/slm |
10 |
|
|
|
11 |
|
|
CODEBASEPATH = /tools/codebase63/source |
12 |
|
|
|
13 |
|
|
INCLUDES = \ |
14 |
|
|
-I$(SRC) \ |
15 |
|
|
-I$(SHAREPATH)/epicsH \ |
16 |
|
|
-I$(CODEBASEPATH) \ |
17 |
|
|
-I$/usr/openwin/include \ |
18 |
|
|
-I$/usr/dt/include |
19 |
|
|
|
20 |
|
|
ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63 |
21 |
|
|
|
22 |
|
|
LIBS = \ |
23 |
|
|
../bin/dbLibrary.a \ |
24 |
|
|
$(CODEBASEPATH)/libcb.a \ |
25 |
|
|
../bin/libtis.a \ |
26 |
|
|
../bin/libUnix.a \ |
27 |
|
|
../bin/libca.a \ |
28 |
|
|
../bin/libtlm.a \ |
29 |
|
|
../bin/tisMsgLib.a |
30 |
|
|
|
31 |
|
|
LIBDIRS = -L/usr/dt/lib -L/usr/openwin/lib |
32 |
|
|
|
33 |
|
|
SRCS = \ |
34 |
|
|
$(SRC)/slmMain.c \ |
35 |
|
|
$(SRC)/slmUtils.c \ |
36 |
|
|
$(SRC)/slmRTU.c \ |
37 |
|
|
$(SRC)/slmPersonnel.c \ |
38 |
|
|
$(SRC)/slmDownload.c \ |
39 |
|
|
$(SRC)/slmAdmit.c \ |
40 |
|
|
$(SRC)/slmProgram.c |
41 |
|
|
|
42 |
|
|
OBJS = \ |
43 |
|
|
slmMain.o \ |
44 |
|
|
slmUtils.o \ |
45 |
|
|
slmRTU.o \ |
46 |
|
|
slmPersonnel.o \ |
47 |
|
|
slmDownload.o \ |
48 |
|
|
slmAdmit.o \ |
49 |
|
|
slmProgram.o |
50 |
|
|
|
51 |
tis4000 |
1.2 |
all:: depend slm |
52 |
tis4000 |
1.1 |
|
53 |
|
|
|
54 |
|
|
slm: $(OBJS) $(LIBS) |
55 |
|
|
$(RM) slm |
56 |
|
|
$(CC) -o slm $(OBJS) $(LIBS) \ |
57 |
|
|
$(LIBDIRS) -lXm -lMrm -lXmu -lXt -lXext -lX11 -lX -lgen \ |
58 |
|
|
-lsocket -lnsl -lm |
59 |
|
|
|
60 |
|
|
slmMain.o: $(SRC)/slmMain.c |
61 |
|
|
$(RM) slmMain.o |
62 |
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/slmMain.c |
63 |
|
|
|
64 |
|
|
slmUtils.o: $(SRC)/slmUtils.c |
65 |
|
|
$(RM) slmUtil.o |
66 |
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/slmUtils.c |
67 |
|
|
|
68 |
|
|
slmRTU.o: $(SRC)/slmRTU.c |
69 |
|
|
$(RM) slmRTU.o |
70 |
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/slmRTU.c |
71 |
|
|
|
72 |
|
|
slmPersonnel.o: $(SRC)/slmPersonnel.c |
73 |
|
|
$(RM) slmPersonnel.o |
74 |
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/slmPersonnel.c |
75 |
|
|
|
76 |
|
|
slmDownload.o: $(SRC)/slmDownload.c |
77 |
|
|
$(RM) slmDowbload.o |
78 |
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/slmDownload.c |
79 |
|
|
|
80 |
|
|
slmAdmit.o: $(SRC)/slmAdmit.c |
81 |
|
|
$(RM) slmAdmit.o |
82 |
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/slmAdmit.c |
83 |
|
|
|
84 |
|
|
slmProgram.o: $(SRC)/slmProgram.c |
85 |
|
|
$(RM) slmProgram.o |
86 |
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/slmProgram.c |
87 |
|
|
|
88 |
|
|
install: |
89 |
|
|
cp -p slm ../bin |
90 |
|
|
|
91 |
|
|
clean: |
92 |
|
|
$(RM) slm |
93 |
|
|
$(RM) $(OBJS) |
94 |
tis4000 |
1.2 |
$(RM) Makefile.depend |
95 |
tis4000 |
1.1 |
|
96 |
tis4000 |
1.2 |
depend: Makefile.depend |
97 |
tis4000 |
1.1 |
|
98 |
tis4000 |
1.2 |
Makefile.depend: $(SRCS) |
99 |
|
|
$(RM) Makefile.depend |
100 |
|
|
$(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend |
101 |
tis4000 |
1.1 |
|
102 |
tis4000 |
1.2 |
include Makefile.depend |
103 |
tis4000 |
1.1 |
|