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

Contents of /sun2.4/bld/Makefile

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


Revision 1.2 - (show annotations)
Tue Aug 17 18:30:58 1999 UTC (24 years, 6 months ago) by tis4000
Branch: MAIN
Changes since 1.1: +9 -174 lines
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

1 CC = gcc
2 RM = rm -f
3 TOP = ../../..
4 LIBDIR = ../bin
5 SRCROOT = $(TOP)/share/src
6 SRC = $(SRCROOT)/bld
7 DEPLIBS = $(LIBDIR)/libCom.a $(LIBDIR)/libUnix.a
8 LOCAL_LIBRARIES = $(DEPLIBS)
9 CODEBASEPATH = /tools/codebase63/source
10 INCLUDES = \
11 -I/usr/include \
12 -I$(SRC) \
13 -I$(TOP)/share/epicsH \
14 -I$(SRCROOT)/dataVuCC \
15 -I$(CODEBASEPATH)
16 ALLDEFINES = $(INCLUDES) -DUSECB63
17 DEFINES = -DUNIX -UvxWorks -DUSECB63
18 CFLAGS = -g -Wunused $(DEFINES) $(INCLUDES)
19
20 SRCS = \
21 $(SRC)/bldDbRecType.c $(SRC)/bldRecDef.c \
22 $(SRC)/bldDevSup.c $(SRC)/bldCvtTable.c \
23 $(SRC)/bldDrvSup.c $(SRC)/bldRecChoice.c \
24 $(SRC)/bldGblChoice.c $(SRC)/getSdrLine.c
25
26 OBJ = getSdrLine.o
27 OBJ7 = bldCvtTable.o $(OBJ)
28 OBJ6 = bldDrvSup.o $(OBJ)
29 OBJ5 = bldRecChoice.o $(OBJ)
30 OBJ4 = bldGblChoice.o $(OBJ)
31 OBJ3 = bldDevSup.o $(OBJ)
32 OBJ2 = bldRecDef.o $(OBJ)
33 OBJ1 = bldDbRecType.o $(OBJ)
34
35 UTILS = bldDbRecType bldRecDef bldDevSup bldCvtTable \
36 bldDrvSup bldRecChoice bldGblChoice
37
38 all:: depend $(UTILS)
39
40 bldDbRecType: $(OBJ1) $(DEPLIBS)
41 $(RM) $@
42 $(CC) -o $@ $(OBJ1) $(LOCAL_LIBRARIES)
43
44 clean::
45 $(RM) bldDbRecType
46 $(RM) bldDbRecType.o
47
48 install:: bldDbRecType
49 @cd $(TOP)/share/bin/sun4; $(RM) bldDbRecType
50
51 bldRecDef: $(OBJ2) $(DEPLIBS) $(LIBDIR)/dbLibrary.a $(CODEBASEPATH)/libcb.a
52 $(RM) $@
53 $(CC) -o $@ $(OBJ2) \
54 $(LIBDIR)/dbLibrary.a \
55 $(LOCAL_LIBRARIES) \
56 $(CODEBASEPATH)/libcb.a -ldl -lm
57
58 clean::
59 $(RM) bldRecDef
60 $(RM) bldRecDef.o
61
62 install:: bldRecDef
63 @cd $(TOP)/share/bin/sun4; $(RM) bldRecDef
64
65 bldDevSup: $(OBJ3) $(DEPLIBS)
66 $(RM) $@
67 $(CC) -o $@ $(OBJ3) $(LOCAL_LIBRARIES)
68
69 clean::
70 $(RM) bldDevSup
71 $(RM) bldDevSup.o
72
73 install:: bldDevSup
74 @cd $(TOP)/share/bin/sun4; $(RM) bldDevSup
75
76 bldGblChoice: $(OBJ4) $(DEPLIBS)
77 $(RM) $@
78 $(CC) -o $@ $(OBJ4) $(LOCAL_LIBRARIES)
79
80 clean::
81 $(RM) bldGblChoice
82 $(RM) bldGblChoice.o
83
84 install:: bldGblChoice
85 @cd $(TOP)/share/bin/sun4; $(RM) bldGblChoice
86
87 bldRecChoice: $(OBJ5) $(DEPLIBS)
88 $(RM) $@
89 $(CC) -o $@ $(OBJ5) $(LOCAL_LIBRARIES)
90
91 clean::
92 $(RM) bldRecChoice
93 $(RM) bldRecChoice.o
94
95 install:: bldRecChoice
96 @cd $(TOP)/share/bin/sun4; $(RM) bldRecChoice
97
98 bldDrvSup: $(OBJ6) $(DEPLIBS)
99 $(RM) $@
100 $(CC) -o $@ $(OBJ6) $(LOCAL_LIBRARIES)
101
102 clean::
103 $(RM) bldDrvSup
104 $(RM) bldDrvSup.o
105
106 install:: bldDrvSup
107 @cd $(TOP)/share/bin/sun4; $(RM) bldDrvSup
108
109 bldCvtTable: $(OBJ7) $(DEPLIBS)
110 $(RM) $@
111 $(CC) -o $@ $(OBJ7) $(LOCAL_LIBRARIES)
112
113 clean::
114 $(RM) bldCvtTable
115 $(RM) bldCvtTable.o
116
117 install:: bldCvtTable
118 @cd $(TOP)/share/bin/sun4; $(RM) bldCvtTable
119
120 getSdrLine.o: $(SRC)/getSdrLine.c
121 $(RM) $@
122 $(CC) -c $(CFLAGS) $(SRC)/getSdrLine.c
123
124 clean::
125 $(RM) getSdrLine.o
126
127 bldCvtTable.o: $(SRC)/bldCvtTable.c
128 $(RM) $@
129 $(CC) -c $(CFLAGS) $(SRC)/bldCvtTable.c
130
131 bldDrvSup.o: $(SRC)/bldDrvSup.c
132 $(RM) $@
133 $(CC) -c $(CFLAGS) $(SRC)/bldDrvSup.c
134
135 bldRecChoice.o: $(SRC)/bldRecChoice.c
136 $(RM) $@
137 $(CC) -c -g $(CFLAGS) $(SRC)/bldRecChoice.c
138
139 bldGblChoice.o: $(SRC)/bldGblChoice.c
140 $(RM) $@
141 $(CC) -c $(CFLAGS) $(SRC)/bldGblChoice.c
142
143 bldDbRecType.o: $(SRC)/bldDbRecType.c
144 $(RM) $@
145 $(CC) -c $(CFLAGS) $(SRC)/bldDbRecType.c
146
147 bldRecDef.o: $(SRC)/bldRecDef.c
148 $(RM) $@
149 $(CC) -c $(CFLAGS) $(SRC)/bldRecDef.c
150
151 bldDevSup.o: $(SRC)/bldDevSup.c
152 $(RM) $@
153 $(CC) -c $(CFLAGS) $(SRC)/bldDevSup.c
154
155 depend: Makefile.depend
156
157 Makefile.depend: $(SRCS)
158 $(RM) Makefile.depend
159 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
160
161 clean::
162 $(RM) Makefile.depend
163
164 include Makefile.depend
165

  ViewVC Help
Powered by ViewVC 1.1.30