-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.sol
254 lines (235 loc) · 7.62 KB
/
Makefile.sol
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
253
254
#
# Makefile to compile under Solaris
#
# define for big endian machine like Sun Sparc, the x86 stuff is little endian
# solaris on sparcs: ENDIAN = -DBIGEND
# linux/solaris on x86 systems: ENDIAN =
ENDIAN = -DBIGEND
# Define the Operating System here, possible choices are:
# -DUNIX
# -DMSDOS
OS = -DUNIX
# use GNU C under Solaris
CC = gcc
CFLAGS = '-O2 -Wall $(ENDIAN) $(OS)'
#CFLAGS = '-g -Wall $(ENDIAN) $(OS)'
# and use GNU C++ too
CPP = g++
CPPFLAGS = '-O -Wall $(ENDIAN) $(OS)'
# solaris make
MAKE = make
# your local include files and libs, like for xforms
# leave these directories empty for solaris
# the definition of LINCDIR = -I/usr/include will NOT work with gcc
# please specify the full option for example -I/usr/local/include
LINCDIR = -I/usr/local/include
LLIBDIR = -L/usr/local/lib
# Uncomment the next line to use xforms
# USE_XFORMS = xforms
# If USE_XFORMS is uncommented set up correct X11 path
#
# X11 include directory and X11 directory
# For older solaris systems (< solaris 2.6) this is
# XINCDIR = -I/usr/openwin/include
# XLIBDIR = -L/usr/openwin/lib
# Since solaris 2.6 X11 is also in /usr/lib and /usr/include.
# This is also true for linux. Both directories should be
# buildin defaults for the compiler and there should be no need
# to define the dirs here
# XINCDIR = -I/usr/include
# XLIBDIR = -L/usr/lib
# Indeed the solaris gnu compiler will NOT compile if -I/usr/include
# is defined together with -I/usr/ucbinclude
#
# Solaris < 2.6: use this:
# XINCDIR = -I/usr/openwin/include
# XLIBDIR = -I/usr/openwin/lib
# Solaris >= 2.6: do not define XINCDIR and XLIBDIR
# the X11 library. This should be -lX11 for all systems
X11LIB = -lX11
# need socket library to link X11 apps?
SOLIB =
# Uncomment the next line to use curses.
USE_CURSES = curses
# Uncomment the next line to use ncurses.
# USE_NCURSES = ncurses
# If USE_CURSES or USE_NCURSES is uncommented, specify the locations for
# curses
#
# where to find curses and/or ncurses
CSINCDIR = -I/usr/ucbinclude
CSLIBDIR = -L/usr/ucblib
# your installation directories
BINDIR = /usr/local/bin
LIBDIR = /usr/local/lib
MANDIR = /usr/local/man/man6
#-----------------------------------------------------------------------------
CCOPT = '$(LINCDIR) $(XINCDIR) $(CSINCDIR)'
LIBOPT = '$(LLIBDIR) $(XLIBDIR) $(CSLIBDIR) $(X11LIB) $(SOLIB)'
all:
cd lib; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd mkwad; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd lswad; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd mktran; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadps; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadwhat; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd qmus2mid; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadtxls; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd bsp; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd idbsp; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadlc; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadldc; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadgc; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadext; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadtex; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadflat; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadsprit; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadpat; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd wadcat; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd idmultigen; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd raw2ppm; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd raw2sfx; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd reject; $(MAKE) CPP=$(CPP) CPPFLAGS=$(CPPFLAGS)
cd warm; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd slige; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd pal2c; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd mkxppal; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd mkgipal; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd mkpopal; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd mkqmap; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd dmpsmu/source; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd swantbls; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd acc; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS) LIBDIR=$(LIBDIR)
#cd xew; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS) CCOPT=$(CCOPT) LIBOPT=$(LIBOPT) $(USE_NCURSES) $(USE_CURSES) $(USE_XFORMS)
cd deutex; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd listacs; $(MAKE) CPP=$(CPP) CPPFLAGS=$(CPPFLAGS)
cd dm2au; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
cd trigcalc; $(MAKE) CC=$(CC) CFLAGS=$(CFLAGS)
install:
-mkdir -p $(LIBDIR)
-mkdir -p $(BINDIR)
-mkdir -p $(MANDIR)
cp mkwad/mkwad $(BINDIR)
cp mkwad/mkwad.6 $(MANDIR)
cp lswad/lswad $(BINDIR)
cp lswad/lswad.6 $(MANDIR)
cp mktran/mktran $(BINDIR)
cp mktran/mktran.6 $(MANDIR)
cp wadps/wadps $(BINDIR)
cp wadps/wadps.6 $(MANDIR)
cp wadwhat/wadwhat $(BINDIR)
cp wadwhat/wadwhat.6 $(MANDIR)
cp qmus2mid/qmus2mid $(BINDIR)
cp qmus2mid/qmus2mid.6 $(MANDIR)
cp wadtxls/wadtxls $(BINDIR)
cp wadtxls/wadtxls.6 $(MANDIR)
cp bsp/bsp $(BINDIR)
cp bsp/bsp.6 $(MANDIR)
cp idbsp/idbsp $(BINDIR)
cp idbsp/idbsp.6 $(MANDIR)
cp idbsp/waddwd $(BINDIR)
cp idbsp/waddwd.6 $(MANDIR)
cp wadlc/wadlc $(BINDIR)
cp wadlc/wadlc.6 $(MANDIR)
cp wadldc/wadldc $(BINDIR)
cp wadldc/wadldc.6 $(MANDIR)
cp wadgc/wadgc $(BINDIR)
cp wadgc/wadgc.6 $(MANDIR)
cp wadext/wadext $(BINDIR)
cp wadext/wadext.6 $(MANDIR)
cp wadtex/wadtex $(BINDIR)
cp wadtex/wadtex.6 $(MANDIR)
cp wadflat/wadflat $(BINDIR)
cp wadflat/wadflat.6 $(MANDIR)
cp wadpat/wadpat $(BINDIR)
cp wadpat/wadpat.6 $(MANDIR)
cp wadsprit/wadsprit $(BINDIR)
cp wadsprit/wadsprit.6 $(MANDIR)
cp wadcat/wadcat $(BINDIR)
cp wadcat/wadcat.6 $(MANDIR)
cp idmultigen/idmultigen $(BINDIR)
cp raw2ppm/raw2ppm $(BINDIR)
cp raw2ppm/raw2ppm.6 $(MANDIR)
cp raw2sfx/raw2sfx $(BINDIR)
cp raw2sfx/raw2sfx.6 $(MANDIR)
cp reject/wreject $(BINDIR)
cp reject/wreject.6 $(MANDIR)
cp warm/warm $(BINDIR)
cp warm/warm.6 $(MANDIR)
cp slige/slige $(BINDIR)
cp slige/slige.6 $(MANDIR)
cp pal2c/pal2c $(BINDIR)
cp pal2c/pal2c.6 $(MANDIR)
cp mkxppal/mkxppal $(BINDIR)
cp mkxppal/mkxppal.6 $(MANDIR)
cp mkgipal/mkgipal $(BINDIR)
cp mkgipal/mkgipal.6 $(MANDIR)
cp mkpopal/mkpopal $(BINDIR)
cp mkpopal/mkpopal.6 $(MANDIR)
cp mkqmap/mkqmap $(BINDIR)
cp mkqmap/mkqmap.6 $(MANDIR)
cp dmpsmu/source/dmpsmu $(BINDIR)
cp dmpsmu/dmpsmu.6 $(MANDIR)
cp dmpsmu/source/dmpsmap $(BINDIR)
cp dmpsmu/dmpsmap.6 $(MANDIR)
cp swantbls/swantbls $(BINDIR)
cp swantbls/swantbls.6 $(MANDIR)
cp acc/acc $(BINDIR)
cp acc/acc.6 $(MANDIR)
-mkdir -p $(LIBDIR)/acc/hexen
cp acc/common.acs $(LIBDIR)/acc/hexen
cp acc/defs.acs $(LIBDIR)/acc/hexen
cp acc/specials.acs $(LIBDIR)/acc/hexen
#cp xew/*ew $(BINDIR)
#cp xew/xew.6 $(MANDIR)
cp deutex/deutex $(BINDIR)
cp deutex/deusf $(BINDIR)
cp deutex/deutex.6 $(MANDIR)
cp listacs/listacs $(BINDIR)
cp listacs/listacs.6 $(MANDIR)
cp dm2au/dm2au $(BINDIR)
cp dm2au/dm2au.6 $(MANDIR)
cp trigcalc/trigcalc $(BINDIR)
cp trigcalc/trigcalc.6 $(MANDIR)
cp doc/xwadtools.6 $(MANDIR)
cp tkwadcad/tkwadcad.6 $(MANDIR)
clean:
cd lib; $(MAKE) clean
cd mkwad; $(MAKE) clean
cd lswad; $(MAKE) clean
cd mktran; $(MAKE) clean
cd wadps; $(MAKE) clean
cd wadwhat; $(MAKE) clean
#cd xew; $(MAKE) clean
cd qmus2mid; $(MAKE) clean
cd wadtxls; $(MAKE) clean
cd bsp; $(MAKE) clean
cd idbsp; $(MAKE) clean
cd wadlc; $(MAKE) clean
cd wadldc; $(MAKE) clean
cd wadgc; $(MAKE) clean
cd wadext; $(MAKE) clean
cd wadtex; $(MAKE) clean
cd wadflat; $(MAKE) clean
cd wadsprit; $(MAKE) clean
cd wadpat; $(MAKE) clean
cd wadcat; $(MAKE) clean
cd wadgc; $(MAKE) clean
cd idmultigen; $(MAKE) clean
cd raw2ppm; $(MAKE) clean
cd raw2sfx; $(MAKE) clean
cd reject; $(MAKE) clean
cd warm; $(MAKE) clean
cd slige; $(MAKE) clean
cd pal2c; $(MAKE) clean
cd mkxppal; $(MAKE) clean
cd mkgipal; $(MAKE) clean
cd mkpopal; $(MAKE) clean
cd mkqmap; $(MAKE) clean
cd dmpsmu/source; $(MAKE) clean
cd swantbls; $(MAKE) clean
cd acc; $(MAKE) clean
cd deutex; $(MAKE) clean
cd listacs; $(MAKE) clean
cd dm2au; $(MAKE) clean
cd trigcalc; $(MAKE) clean