File: Makefile

package info (click to toggle)
dqs 3.1.8-9
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 8,908 kB
  • ctags: 9,887
  • sloc: ansic: 87,447; sh: 2,952; makefile: 442; yacc: 247; lex: 94; perl: 83; csh: 51; fortran: 24; awk: 16
file content (252 lines) | stat: -rwxr-xr-x 7,025 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
#Automatically generated by configure
INSTALL_DIR=/usr/local/DQS/bin
BIN_DIR=/usr/local/DQS/bin
CONF_DIR=/usr/local/DQS/conf
DOC_DIR=/usr/local/DQS/DOC
LIB_DIR=/usr/local/DQS/lib
MAN1_DIR=/usr/local/man/man1
MAN3_DIR=/usr/local/man/man3
ROOT=0
DQS_ROOT=0
SYSGRP=0
DQS_SYSGRP=0

CFLAGS=-O2
LFLAGS=
# the next line is a "majic-cookie" - don't remove it
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#CC=gcc
#CFLAGS=-O2
XCFLAGS=
XLIBPATH=
XINCL=
XNO=
XLIB= -lXt -lX11 

# sets up an arc dependant subdirectory under DQS/ARCS
# ans builds the default distribution

default	:
	cd SRC ; make all qidle

install: dirs
	cd SRC ; make installbin

#******************************************************
# dirs - Make Install Directories

dirs:
	-mkdir -p $(INSTALL_DIR) $(ARC_DIR) $(BIN_DIR)
	-mkdir -p $(DOC_DIR) $(LIB_DIR) $(MAN1_DIR) $(MAN3_DIR)
	-mkdir -p $(CONF_DIR)
	-chmod 755 $(CONF_DIR)

#******************************************************
# config - Configure DQS

#config:
#	cd CONFIG;make clean;make;./config;cd ..

#******************************************************
# config - Configure DQS

#host_ck:
#	$(CC) -o CONFIG/host_ck CONFIG/host_ck.c;CONFIG/host_ck

#******************************************************
# unconfig - Unconfigure DQS

#unconfig:
#	cd CONFIG;make clean;make;./config -u;cd ..

#******************************************************
# sets up an arc dependant subdirectory under DQS/ARCS
# ans builds the DQS checpointing library

#ckpt:
#	UTIL/make_arcs make -f Makefile $@

#******************************************************
# install the default distribution

#installbin: dirs
#	UTIL/make_arcs make -f Makefile $@ \
#	BIN_DIR=$(BIN_DIR) DQS_ROOT=$(DQS_ROOT) \
#	DQS_SYSGRP=$(DQS_SYSGRP)

#******************************************************
# install the sample conf files

#installconf: dirs
#	UTIL/install -o $(DQS_ROOT) -g $(DQS_SYSGRP) \
#	-m 744 SRC/conf_file $(CONF_DIR)/conf_file
#	UTIL/install -o $(DQS_ROOT) -g $(DQS_SYSGRP) \
#	-m 744 SRC/resolve_file $(CONF_DIR)/resolve_file
#	UTIL/install -o $(DQS_ROOT) -g $(DQS_SYSGRP) \
#	-m 700 SRC/key_file $(CONF_DIR)/key_file

#******************************************************
# installall

#installall: installbin installconf


#******************************************************
clean:
	rm -r -f ARCS
	cd CONFIG;	make -f Makefile clean
	cd SRC;         make -f Makefile clean
	cd UTIL;        make -f Makefile clean
	cd UTIL/TEST;   make -f Makefile clean
	rm -f *~ manifest *.out Part* *.tar *.Z *.gz OUT core typescript
	rm -r -f CVS.tar.gz CONFIG/usr

######################################################
######################################################
######################################################
# multi-architecture makes 

#******************************************************
# pall - Parrallel Make
# uses "rsh" to make binaries for multiple arcs concurrently
# see .PMakefile
# output from all makes placed in the file OUT
# ex:
# make pall
# make pdirs
# make pinstallbin
# make pinstallall

#pall:
#	@$(MAKE) -f Makefile rdist
#	@cd UTIL;$(MAKE) -f Makefile pmake
#	UTIL/pmake .PMakefile OUT

#******************************************************
# pdirs - Parallel Make Dirs

#pdirs:
#	@cd UTIL;$(MAKE) -f Makefile pmake
#	UTIL/pmake .PMakefile OUT dirs

#******************************************************
#pinstallbin - Parallel Install Bin

#pinstallbin:
#	@cd UTIL;$(MAKE) -f Makefile pmake
#	UTIL/pmake .PMakefile OUT installbin

#******************************************************
# pinstallall - Parallel Installal

#pinstallall:
#	@cd UTIL;$(MAKE) -f Makefile pmake
#	UTIL/pmake .PMakefile OUT installall

######################################################
######################################################
######################################################
# the rest of these are for development only
# read the disclaimers before using them!

#******************************************************
# builds the user_interface and design docs.
# also builds a set of DQS function man pages
# and reference docs.
# DON'T DO THIS UNLESS YOU HAVE LATEX and DVIPS!
# otherwise you will trash the preformatted docs!

#doc:
#	cd SRC; make -f Makefile $@

#******************************************************
# make the readme file(already done for distribution)
# DON'T DO THIS UNLESS YOU HAVE LATEX and DVIPS!
# otherwise you will trash the preformatted docs!

#readme:
#	cd DOC/readme; make -f Makefile $@

#******************************************************
# this is really just for development
# DON'T DO THIS UNLESS YOU HAVE LATEX and DVIPS!
# otherwise you will trash the preformatted docs!

#everything:	dqs ckpt installbin	\
#		installlib installman1	\
#		installman3 installdoc

#******************************************************
# this is really just for development
# DON'T DO THIS UNLESS YOU HAVE LATEX and DVIPS!
# otherwise you will trash the preformatted docs!

#distribution:   readme doc clean

#******************************************************

#backup:	gzip
#	cp DQS.tar.gz /ds9/a/users/queuing/DQS.tar.gz.`date +%m.%d.%y.%H:%M`

#******************************************************

#backupcvs:
#	cd /margit/c/users/dqs;tar -cvf CVS.tar CVS; \
#	rm -f CVS.tar.gz; /usr/local/bin/gzip CVS.tar; \
#	cp CVS.tar.gz /ds9/a/users/queuing/CVS.tar.gz.`date +%m.%d.%y.%H:%M`

#******************************************************

#rdist:	clean
#	cd .. ;/usr/ucb/rdist -f DQS/.distfile

#******************************************************

#manifest: clean
#	cd ..;/usr/local/bin/findsrc -dy -oDQS/manifest DQS;

#******************************************************

#tar:	manifest
#	cd ..;tar -cvf DQS.tar DQS; mv DQS.tar DQS; \
#	cd DQS;compress DQS.tar

#******************************************************

#gzip:	manifest
#	cd ..;tar -cvf DQS.tar DQS; mv DQS.tar DQS; \
#	cd DQS;/usr/local/bin/gzip DQS.tar

#******************************************************

#fd0:	gzip
#	gnutar -cvMf /dev/fd0 DQS.tar.gz

#******************************************************

#fd1:	gzip
#	gnutar -cvMf /dev/fd1 DQS.tar.gz

#******************************************************

#cvsfd0:
#	rm -f CVS.tar.gz
#	gnutar -czvf CVS.tar.gz /margit/c/users/dqs/CVS 
#	gnutar -cvMf /dev/fd0 CVS.tar.gz


irix5:
	cd SRC ; make all qidle RANLIB=true CC=cc CFLAGS='-g'

irix6:
	cd SRC ; make all qidle RANLIB=true CC=cc CFLAGS='-g -n32' LFLAGS=-n32

aix3:
	cd SRC ; make all RANLIB=true CC=cc CFLAGS='-g'

install-local:
	cd SRC ; make installbin INSTALL_DIR=/usr/local/DQS BIN_DIR=/usr/local/DQS/bin CONF_DIR=/usr/local/DQS/conf DOC_DIR=/usr/local/DQS/doc LIB_DIR=/usr/local/DQS/lib MAN1_DIR=/usr/local/DQS/man/man1 MAN3_DIR=/usr/local/DQS/man/man3

install-debian:
	cd SRC ; make installbin INSTALL_DIR=$(DESTDIR)/usr/bin BIN_DIR=$(DESTDIR)/usr/bin CONF_DIR=$(DESTDIR)/etc/dqs DOC_DIR=$(DESTDIR)/usr/doc/dqs LIB_DIR=$(DESTDIR)/usr/lib MAN1_DIR=$(DESTDIR)/usr/man/man1 MAN3_DIR=$(DESTDIR)/usr/man/man3