/[TIS-4000 Rel T60]/sun2.4/msLibrary/Makefile
ViewVC logotype

Contents of /sun2.4/msLibrary/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations)
Tue Sep 14 21:05:46 1999 UTC (24 years, 5 months ago) by tis4000
Branch: MAIN
CVS Tags: t55baseline, Duluth_baseline, LMC_baseline, HEAD
Changes since 1.3: +3 -3 lines
chg install target to do cp -p to preserver data - Steel

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/msLibrary
10
11 INCLUDES = \
12 -I$(SRC) \
13 -I$(SHAREPATH)/epicsH
14
15 ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63
16
17 LIBS = \
18 msLibrary.a \
19 ../bin/tisMsgLib.a
20
21 STDLIBS = -lsocket -lnsl -lm -ldl
22
23 SRCS = \
24 $(SRC)/appRegister.c \
25 $(SRC)/appGetStatus.c \
26 $(SRC)/appSendData.c \
27 $(SRC)/appRecvData.c \
28 $(SRC)/appUnRegister.c \
29 $(SRC)/msArbiterMonitor.c \
30 $(SRC)/msArbiterState.c \
31 $(SRC)/testApp.c
32
33 MSLOBJS = \
34 appRegister.o \
35 appGetStatus.o \
36 appSendData.o \
37 appRecvData.o \
38 appUnRegister.o
39
40 OTHEROBJS = \
41 msArbiterMonitor.o \
42 msArbiterState.o \
43 testApp.o
44
45 all : depend msLibrary.a msArbiterState msArbiterMonitor testApp
46
47 ########## TARGETS #########################################################
48
49 msLibrary.a : $(MSLOBJS)
50 $(RM) msLibrary
51 ar crv msLibrary.a $(MSLOBJS)
52 cp -p msLibrary.a ../bin
53
54 msArbiterMonitor : msArbiterMonitor.o $(LIBS)
55 $(RM) msArbiterMonitor
56 $(CC) -o msArbiterMonitor msArbiterMonitor.o $(LIBS) $(STDLIBS)
57
58 msArbiterState : msArbiterState.o $(LIBS)
59 $(RM) msArbiterState
60 $(CC) -o msArbiterState msArbiterState.o $(LIBS) $(STDLIBS)
61
62 testApp : testApp.o $(LIBS)
63 $(RM) testApp
64 $(CC) -o testApp testApp.o $(LIBS) $(STDLIBS)
65
66 ########## OBJECTS #########################################################
67
68 appGetStatus.o : $(SRC)/appGetStatus.c
69 $(RM) appGetStatus.o
70 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/appGetStatus.c
71
72 appRecvData.o : $(SRC)/appRecvData.c
73 $(RM) appRecvData.o
74 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/appRecvData.c
75
76 appRegister.o : $(SRC)/appRegister.c
77 $(RM) appRegister.o
78 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/appRegister.c
79
80 appSendData.o : $(SRC)/appSendData.c
81 $(RM) appSendData.o
82 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/appSendData.c
83
84 appUnRegister.o : $(SRC)/appUnRegister.c
85 $(RM) appUnRegister.o
86 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/appUnRegister.c
87
88 msArbiterMonitor.o : $(SRC)/msArbiterMonitor.c
89 $(RM) msArbiterMonitor.o
90 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/msArbiterMonitor.c
91
92 msArbiterState.o : $(SRC)/msArbiterState.c
93 $(RM) msArbiterState.o
94 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/msArbiterState.c
95
96 testApp.o : $(SRC)/testApp.c
97 $(RM) testApp.o
98 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/testApp.c
99
100 install : msLibrary.a msArbiterState msArbiterMonitor
101 cp -p msLibrary.a ../bin
102 cp -p msArbiterState ../bin
103 cp -p msArbiterMonitor ../bin
104
105 clean :
106 $(RM) $(MSLOBJS)
107 $(RM) $(OTHEROBJS)
108 $(RM) msLibrary.a
109 $(RM) msArbiterState
110 $(RM) msArbiterMonitor
111 $(RM) testApp
112 $(RM) Makefile.depend
113
114 depend: Makefile.depend
115
116 Makefile.depend: $(SRCS) Makefile
117 $(RM) Makefile.depend
118 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
119
120 include Makefile.depend
121

  ViewVC Help
Powered by ViewVC 1.1.30