1 |
################################################################# |
2 |
# # |
3 |
# This software is the proprietary property of Tate # |
4 |
# Integrated Systems, L.P. Patents and copyrights are # |
5 |
# pending. # |
6 |
# # |
7 |
# This software is furnished under a license and may # |
8 |
# be used and copied only in accordance with the terms # |
9 |
# of such license and with the inclusion of the above # |
10 |
# notice. This software or any other copies thereof # |
11 |
# may not be provided or otherwise made available to # |
12 |
# any other person. No title to and ownership of the # |
13 |
# software is hereby transferred. # |
14 |
# # |
15 |
# The information in this software is subject to # |
16 |
# change without notice and should not be construed # |
17 |
# as a commitment by Tate Integrated Systems L.P. or # |
18 |
# its third party suppliers. # |
19 |
# # |
20 |
# Tate Integrated Systems, L.P. (TIS) and its third # |
21 |
# party suppliers assume no responsibility for the # |
22 |
# use or inability to use any of its software. TIS # |
23 |
# software is provided "as is" without warranty of # |
24 |
# any kind and TIS expressly disclaims all implied # |
25 |
# warranties, including but not limited to the implied # |
26 |
# warranties of merchantability and fitness for a # |
27 |
# particular purpose. # |
28 |
# # |
29 |
# Notice: Notwithstanding any other lease or license # |
30 |
# that may pertain to or accompany the delivery of this # |
31 |
# computer software, the rights of the Government # |
32 |
# regarding its use, reproduction, and disclosure are # |
33 |
# as set forth in Section 52.227-19 of the FARS # |
34 |
# Computer Software-Restricted Rights clause. # |
35 |
# # |
36 |
################################################################# |
37 |
############################################################################### |
38 |
# @(#)Makefile.S$(CPLUS)S 1.1 5/24/91 |
39 |
# Makefile for Gina++ demo applications |
40 |
############################################################################### |
41 |
|
42 |
TOP = ../../.. |
43 |
SHAREPATH = $(TOP)/share |
44 |
SRCROOT = $(TOP)/share/src |
45 |
SRC = $(SRCROOT)/operator |
46 |
|
47 |
RM = rm -f |
48 |
|
49 |
CPLUS = g++ -I/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/include -I/usr/include -DSOLARIS -DUSE_PROTOTYPES |
50 |
CC = gcc -I/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/include -I/usr/include -DSOLARIS -DUSE_PROTOTYPES |
51 |
CFLAGS = -c -g -Wunused -DCONTRACTS -DUNIX -DATT -DMOTIF2 -D__EXTENSIONS__ |
52 |
CPPFLAGS = -c -g -DCONTRACTS -DUNIX -DATT -DMOTIF2 -D__EXTENSIONS__ |
53 |
LDFLAGS = |
54 |
# -g |
55 |
|
56 |
# Gina include files |
57 |
GINA_HOME = /tools/GINA1.7.2 |
58 |
OWNDIR = -I$(GINA_HOME)/bitmaps -I$(GINA_HOME)/include |
59 |
|
60 |
X11HOME = |
61 |
MOTIF_HOME = |
62 |
|
63 |
#include files for compilation in the yp domain F3SERVER |
64 |
MOTIFDIR = |
65 |
X11INCDIR = |
66 |
MOTIFLIBDIR = |
67 |
X11LIBDIR = |
68 |
XMMOTIFLIBDIR = |
69 |
|
70 |
CCINCLUDES = -I$(SRC) -I$(SHAREPATH)/epicsH |
71 |
INCLUDES = $(CCINCLUDES) $(OWNDIR) $(X11INCDIR) $(MOTIFDIR) |
72 |
|
73 |
# no need to include other than tis stuff |
74 |
ALLDEFINES = $(CCINCLUDES) -I$(GINA_HOME)/include -DSOLARIS |
75 |
|
76 |
GINALIB_DIR = $(GINA_HOME)/lib |
77 |
GINALIB_NAME = -L$(GINALIB_DIR) -lGINA |
78 |
|
79 |
#libs for compilation in the yp domain F3SERVER |
80 |
WINDOW_LIBS = -lXm -lXt -lX11 |
81 |
LIBTIS = ../bin/libtis.a |
82 |
LIBTLM = ../bin/libtlm.a |
83 |
LIBMSG = ../bin/tisMsgLib.a |
84 |
LIBCA = ../bin/libca.a |
85 |
LIBUNIX = ../bin/libUnix.a |
86 |
TISLIBS = $(LIBTIS) $(LIBTLM) $(LIBMSG) $(LIBCA) $(LIBUNIX) |
87 |
LIBS = $(MALLOC) $(GINALIB_NAME) $(WINDOW_LIBS) -lm -lsocket -lnsl -lgen -lg++ |
88 |
|
89 |
SRCS = \ |
90 |
$(SRC)/autoLogoutWarning.c \ |
91 |
$(SRC)/loginShell.C \ |
92 |
$(SRC)/loginDiag.C \ |
93 |
$(SRC)/logutils.c \ |
94 |
$(SRC)/tisCard.c \ |
95 |
$(SRC)/tisLogin.C \ |
96 |
$(SRC)/tisLogout.c \ |
97 |
$(SRC)/tisLogoutAll.c \ |
98 |
$(SRC)/utilDialogs.C |
99 |
|
100 |
LOGIN_OBJS = \ |
101 |
tisLogin.o \ |
102 |
loginShell.o \ |
103 |
loginDiag.o \ |
104 |
utilDialogs.o \ |
105 |
logutils.o |
106 |
|
107 |
LOGOUT_OBJS = \ |
108 |
tisLogout.o \ |
109 |
logutils.o |
110 |
|
111 |
LOGOUTALL_OBJS = \ |
112 |
tisLogoutAll.o \ |
113 |
logutils.o |
114 |
|
115 |
TISCARD_OBJS = \ |
116 |
tisCard.o \ |
117 |
logutils.o |
118 |
|
119 |
OBJS = \ |
120 |
autoLogoutWarning.o \ |
121 |
loginShell.o \ |
122 |
loginDiag.o \ |
123 |
logutils.o \ |
124 |
tisCard.o \ |
125 |
tisLogin.o \ |
126 |
tisLogout.o \ |
127 |
tisLogoutAll.o \ |
128 |
utilDialogs.o |
129 |
|
130 |
all: depend tisLogin tisLogout tisLogoutAll tisCard autoLogoutWarning |
131 |
|
132 |
########## TARGETS ################################################################## |
133 |
|
134 |
tisLogin : $(LOGIN_OBJS) $(LIBTIS) $(LIBTLM) |
135 |
$(RM) tisLogin |
136 |
$(CPLUS) $(LDFLAGS) -o tisLogin $(LOGIN_OBJS) \ |
137 |
$(LIBS) $(TISLIBS) |
138 |
|
139 |
tisLogout : $(LOGOUT_OBJS) $(TISLIBS) |
140 |
$(RM) tisLogout |
141 |
$(CC) $(LDFLAGS) -o tisLogout $(LOGOUT_OBJS) $(TISLIBS) -lm -lsocket -lnsl |
142 |
|
143 |
tisLogoutAll : $(LOGOUTALL_OBJS) $(TISLIBS) |
144 |
$(RM) tisLogoutAll |
145 |
$(CC) $(LDFLAGS) -o tisLogoutAll $(LOGOUTALL_OBJS) $(TISLIBS) -lm -lsocket -lnsl |
146 |
|
147 |
tisCard : $(TISCARD_OBJS) $(TISLIBS) |
148 |
$(RM) tisCard |
149 |
$(CC) $(LDFLAGS) -o tisCard $(TISCARD_OBJS) $(TISLIBS) -lm -lsocket -lnsl |
150 |
|
151 |
autoLogoutWarning : autoLogoutWarning.o $(LIBTIS) $(LIBTLM) |
152 |
$(RM) autoLogoutWarning |
153 |
$(CC) $(LDFLAGS) -o autoLogoutWarning autoLogoutWarning.o $(LIBS) $(LIBTIS) $(LIBTLM) |
154 |
|
155 |
########## OBJECTS ######################################################################## |
156 |
|
157 |
loginShell.o : $(SRC)/loginShell.C |
158 |
$(RM) loginShell.o |
159 |
$(CPLUS) -o loginShell.o $(CPPFLAGS) $(INCLUDES) $(SRC)/loginShell.C |
160 |
|
161 |
loginDiag.o : $(SRC)/loginDiag.C |
162 |
$(RM) loginDiag.o |
163 |
$(CPLUS) -o loginDiag.o $(CPPFLAGS) $(INCLUDES) $(SRC)/loginDiag.C |
164 |
|
165 |
tisCard.o : $(SRC)/tisCard.c |
166 |
$(RM) tisCard.o |
167 |
$(CC) $(CPPFLAGS) $(INCLUDES) $(SRC)/tisCard.c -c |
168 |
|
169 |
tisLogin.o : $(SRC)/tisLogin.C |
170 |
$(RM) tisLogin.o |
171 |
$(CPLUS) -o tisLogin.o $(CPPFLAGS) $(INCLUDES) $(SRC)/tisLogin.C |
172 |
|
173 |
tisLogout.o : $(SRC)/tisLogout.c |
174 |
$(RM) tisLogout.o |
175 |
$(CC) $(CPPFLAGS) $(INCLUDES) $(SRC)/tisLogout.c -c |
176 |
|
177 |
tisLogoutAll.o : $(SRC)/tisLogoutAll.c |
178 |
$(RM) tisLogoutAll.o |
179 |
$(CC) $(CPPFLAGS) $(INCLUDES) $(SRC)/tisLogoutAll.c -c |
180 |
|
181 |
utilDialogs.o : $(SRC)/utilDialogs.C |
182 |
$(RM) utildialogs.o |
183 |
$(CPLUS) $(CPPFLAGS) $(INCLUDES) $(SRC)/utilDialogs.C -c |
184 |
|
185 |
logutils.o : $(SRC)/logutils.c $(SRC)/logutils.h |
186 |
$(RM) logutils.o |
187 |
$(CC) $(CPPFLAGS) $(INCLUDES) $(SRC)/logutils.c -c |
188 |
|
189 |
autoLogoutWarning.o : $(SRC)/autoLogoutWarning.c |
190 |
$(RM) autoLogoutWarning.o |
191 |
$(CC) -o autoLogoutWarning.o $(CPPFLAGS) $(INCLUDES) $(SRC)/autoLogoutWarning.c |
192 |
|
193 |
##################################################################################### |
194 |
|
195 |
install:: |
196 |
cp -p tisLogin ../bin |
197 |
cp -p tisLogout ../bin |
198 |
cp -p tisCard ../bin |
199 |
cp -p tisLogoutAll ../bin |
200 |
cp -p autoLogoutWarning ../bin |
201 |
clean: |
202 |
$(RM) $(OBJS) |
203 |
$(RM) tisLogin |
204 |
$(RM) tisLogout |
205 |
$(RM) tisCard |
206 |
$(RM) tisLogoutAll |
207 |
$(RM) autoLogoutWarning |
208 |
$(RM) Makefile.depend |
209 |
|
210 |
depend: Makefile.depend |
211 |
|
212 |
Makefile.depend: $(SRCS) Makefile |
213 |
$(RM) Makefile.depend |
214 |
$(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend |
215 |
|
216 |
include Makefile.depend |
217 |
|