GNUmakefile 11.6 KB
Newer Older
1
# GNUmakefile
2
3

#########################################################################
4
# Makefile for Synchronet BBS for Unix									#
5
# For use with GNU make and GNU C Compiler or Borland Kylix C++			#
6
7
# @format.tab-size 4, @format.use-tabs true								#
#																		#
8
9
# gcc: gmake															#
# Borland (still in testing/debuging stage): gmake bcc=1				#
10
11
12
13
14
15
16
#																		#
# Optional build targets: dlls, utils, mono, all (default)				#
#########################################################################

# $Id$

# Macros
17
18
19
20
21
22
ifndef DEBUG
 ifndef RELEASE
  DEBUG	:=	1
 endif
endif

deuce's avatar
deuce committed
23
#USE_DIALOG =   1       # Dialog vesrion of UIFC
24
#USE_FLTK =     1       # Use Windowed version
deuce's avatar
deuce committed
25
26
USE_CURSES      =       1       # Curses version of UIFC

27
ifdef DEBUG
28
 BUILD	=	debug
29
else
30
 BUILD	=	release
31
32
endif

33
ifdef bcc
34
35
36
37
 CC		=	bc++ -q
 CCPRE	:=	bcc
 CCPP	=	bc++ -q
 LD		=	ilink -q
38
 CFLAGS +=	-mm -md -D__unix__ -w-csu -w-pch -w-ccc -w-rch -w-par -w-aus
39
else
40
 CFLAGS	+=	-MMD -Wall
deuce's avatar
deuce committed
41
 CCPRE	:=	gcc
42
43
44
45
46
47
48
 ifdef BUILD_DEPENDS
  CC		=	../build/mkdep -a
  CCPP	=	../build/mkdep -a
  LD		=	echo
  COMPILE_MSG	:= Depending
 else
  CC		=	gcc
deuce's avatar
deuce committed
49
  CCPP	=	g++
50
51
52
  LD		=	ld
  COMPILE_MSG	:= Compiling
 endif
53
endif
54
55
56
57
SLASH	=	/
OFILE	=	o

LIBFILE	=	.a
rswindell's avatar
rswindell committed
58
UIFC	=	../uifc/
59
XPDEV	=	../xpdev/
60

61
62
ifndef os
 os		:=	$(shell uname)
63
endif
64
65
66
# this line wont work with solaris unless awk in path is actually gawk 
os      :=	$(shell echo $(os) | tr "[A-Z]" "[a-z]")
#os      :=	$(shell echo $(os) | awk '/.*/ { print tolower($$1)}')
67
68
# remove '/' from "os/2"
os      :=  $(shell echo $(os) | tr -d "/")
69

70
71
ifeq ($(os),freebsd)
 BSD	=	1
72
else
73
74
75
 ifeq ($(os),openbsd)
  BSD	=	1
 endif
76
endif
77

78
79
LIBODIR :=	$(CCPRE).$(os).lib.$(BUILD)
EXEODIR :=	$(CCPRE).$(os).exe.$(BUILD)
80

81
DELETE	=	rm -f
82

83
CFLAGS	+=	-DJAVASCRIPT -I../../include/mozilla/js -I$(XPDEV) -I$(UIFC)
84

85
86
87
ifdef BSD	# BSD
 # Math libraries needed and uses pthread
 LFLAGS	:=	-lm -pthread -lutil
88
else			# Linux / Other UNIX
89
90
91
92
93
94
 # Math and pthread libraries needed
 ifdef bcc
  LFLAGS	:=	libpthread.so
 else
  LFLAGS	:=	-lm -lpthread -lutil
 endif
95
endif
96

97
98
ifeq ($(os),linux)    # Linux
 CFLAGS	+= -D_THREAD_SUID_BROKEN
99
100
endif

101
102
103
104
105
ifeq ($(os),sunos)    # Solaris
 CFLAGS	+= -D_REENTRANT -D__solaris__ -DNEEDS_DAEMON -D_POSIX_PTHREAD_SEMANTICS -DNEEDS_FORKPTY
 LFLAGS := -lm -lpthread -lsocket -lnsl -lrt
endif

106
ifeq ($(os),netbsd)
107
 CFLAGS += -D_REENTRANT -D__unix__ -I/usr/pkg/include -DNEEDS_FORKPTY
108
109
110
 LFLAGS := -lm -lpthread -L/usr/pkg/lib
endif

111
# So far, only QNX has sem_timedwait()
112
113
ifeq ($(os),qnx)
 LFLAGS := -lm -lsocket
114
115
116
else
 CFLAGS	+=	-DUSE_XP_SEMAPHORES
 USE_XP_SEMAPHORES	:=	1
117
118
endif

119
ifdef DEBUG
120
121
122
123
124
125
 ifdef bcc
  CFLAGS	+=	-y -v -Od
 else
  CFLAGS	+=	-ggdb
 endif
 CFLAGS  +=	-D_DEBUG
126
127
else
 CFLAGS	+= -O3
128
endif
129

130
131
132
133
ifdef JSLIB
 LIBS	+=	$(JSLIB)
else
 LIBS	+=	../../lib/mozilla/js/$(os).$(BUILD)/libjs.a
134
135
endif

136
137
# The following are needed for echocfg (uses UIFC)
UIFC_OBJS =	$(EXEODIR)/uifcx.o
138
ifdef USE_FLTK
139
140
141
 CFLAGS +=	-DUSE_FLTK -I../../include/fltk
 UIFC_LFLAGS += -L../../lib/fltk/$(os) -L/usr/X11R6/lib -lm -lfltk -lX11
 UIFC_OBJS+=	$(EXEODIR)/uifcfltk.o
142
endif
deuce's avatar
deuce committed
143
ifdef USE_CURSES
144
 CFLAGS +=	-DUSE_CURSES
145
146
147
148
149
 ifeq ($(os),qnx)
  UIFC_LFLAGS += -lncurses
 else
  UIFC_LFLAGS += -lcurses
 endif
150
 UIFC_OBJS +=	$(EXEODIR)/uifcc.o
deuce's avatar
deuce committed
151
endif
152

rswindell's avatar
rswindell committed
153
154
155
include targets.mk		# defines all targets
include objects.mk		# defines $(OBJS)
include sbbsdefs.mk		# defines $(SBBSDEFS)
156

157
158
ifeq ($(USE_XP_SEMAPHORES),1)
 OBJS	+=	$(LIBODIR)$(SLASH)xpsem.$(OFILE)
159
160
endif

161
SBBSLIB	=	$(LIBODIR)/sbbs.a
162

rswindell's avatar
rswindell committed
163
vpath %.c $(XPDEV) $(UIFC)
164
vpath %.cpp $(UIFC)
rswindell's avatar
rswindell committed
165

166
# Implicit C Compile Rule for utils
deuce's avatar
deuce committed
167
$(EXEODIR)/%.o : %.c $(BUILD_DEPENDS)
168
   ifndef bcc
169
	@echo $(COMPILE_MSG) $<
170
   endif
171
	@$(CC) $(CFLAGS) -o $@ -c $<
172

173
# Implicit C++ Compile Rule for utils
deuce's avatar
deuce committed
174
$(EXEODIR)/%.o : %.cpp $(BUILD_DEPENDS)
175
   ifndef bcc
176
	@echo $(COMPILE_MSG) $<
177
   endif
178
	@$(CCPP) $(CFLAGS) -o $@ -c $<
179

180
# Implicit C Compile Rule for SBBS
deuce's avatar
deuce committed
181
$(LIBODIR)/%.o : %.c $(BUILD_DEPENDS)
182
   ifndef bcc
183
	@echo $(COMPILE_MSG) $<
184
   endif
185
	@$(CC) $(CFLAGS) $(SBBSDEFS) -o $@ -c $<
186
187

# Implicit C++ Compile Rule for SBBS
deuce's avatar
deuce committed
188
$(LIBODIR)/%.o : %.cpp $(BUILD_DEPENDS)
189
   ifndef bcc
190
	@echo $(COMPILE_MSG) $<
191
   endif
192
	@$(CCPP) $(CFLAGS) $(SBBSDEFS) -o $@ -c $<
193
194
195
196
197
198
199

$(LIBODIR):
	mkdir $(LIBODIR)

$(EXEODIR):
	mkdir $(EXEODIR)

200
CON_OBJS	= $(EXEODIR)/sbbscon.o $(EXEODIR)/conwrap.o \
201
		  $(EXEODIR)/sbbs_ini.o
202
FTP_OBJS	= $(LIBODIR)/ftpsrvr.o
203
MAIL_OBJS	= $(LIBODIR)/mailsrvr.o $(LIBODIR)/mxlookup.o \
deuce's avatar
deuce committed
204
 		  $(LIBODIR)/mime.o $(LIBODIR)/base64.o
deuce's avatar
deuce committed
205
WEB_OBJS	= $(LIBODIR)/websrvr.o $(LIBODIR)/sockwrap.o $(LIBODIR)/base64.o
206
207
SERVICE_OBJS= $(LIBODIR)/services.o

rswindell's avatar
rswindell committed
208
209
MONO_OBJS	= $(CON_OBJS) $(FTP_OBJS) $(WEB_OBJS) \
			$(MAIL_OBJS) $(SERVICE_OBJS)
210
211

# Monolithic Synchronet executable Build Rule
deuce's avatar
deuce committed
212
213
214
215
FORCE$(SBBSMONO): \
	$(MONO_OBJS) $(OBJS) $(LIBS) $(LIBODIR)/ver.o

$(SBBSMONO): $(MONO_OBJS) $(OBJS) $(LIBS) $(LIBODIR)/ver.o
216
	@echo Linking $@
217
	@$(CCPP) -o $@ $(LFLAGS) $^
218
219

# Synchronet BBS library Link Rule
deuce's avatar
deuce committed
220
221
222
223
FORCE$(SBBS): \
	$(OBJS) $(LIBS) $(LIBODIR)/ver.o

$(SBBS): $(OBJS) $(LIBS) $(LIBODIR)/ver.o
224
225
226
	$(LD) $(LFLAGS) -S -o $(SBBS) $^ $(LIBS) -o $@

# FTP Server Link Rule
deuce's avatar
deuce committed
227
228
229
230
FORCE$(FTPSRVR): \
	$(LIBODIR)/ftpsrvr.o $(SBBSLIB)

$(FTPSRVR): $(LIBODIR)/ftpsrvr.o $(SBBSLIB)
231
232
233
	$(LD) $(LFLAGS) -S $^ $(LIBS) -o $@ 

# Mail Server Link Rule
deuce's avatar
deuce committed
234
235
236
FORCE$(MAILSRVR): $(MAIL_OBJS) $(SBBSLIB)

$(MAILSRVR): $(MAIL_OBJS) $(SBBSLIB)
237
238
239
	$(LD) $(LFLAGS) -S $^ $(LIBS) -o $@

# Synchronet Console Build Rule
deuce's avatar
deuce committed
240
241
242
243
FORCE$(SBBSCON): \
	$(CON_OBJS) $(SBBSLIB)

$(SBBSCON): $(CON_OBJS) $(SBBSLIB)
244
	@$(CC) $(CFLAGS) -o $@ $^
245
246

# Specifc Compile Rules
deuce's avatar
deuce committed
247
$(LIBODIR)/ftpsrvr.o: ftpsrvr.c ftpsrvr.h $(BUILD_DEPENDS)
248
	@echo $(COMPILE_MSG) $<
249
	@$(CC) $(CFLAGS) -DFTPSRVR_EXPORTS -o $@ -c $<
250

deuce's avatar
deuce committed
251
$(LIBODIR)/mailsrvr.o: mailsrvr.c mailsrvr.h $(BUILD_DEPENDS)
252
	@echo $(COMPILE_MSG) $<
253
	@$(CC) $(CFLAGS) -DMAILSRVR_EXPORTS -o $@ -c $<
254

deuce's avatar
deuce committed
255
$(LIBODIR)/mxlookup.o: mxlookup.c $(BUILD_DEPENDS)
256
	@echo $(COMPILE_MSG) $<
257
	@$(CC) $(CFLAGS) -DMAILSRVR_EXPORTS -o $@ -c $<
258

deuce's avatar
deuce committed
259
$(LIBODIR)/mime.o: mime.c $(BUILD_DEPENDS)
260
	@echo $(COMPILE_MSG) $<
261
	@$(CC) $(CFLAGS) -DMAILSRVR_EXPORTS -o $@ -c $<		
262

deuce's avatar
deuce committed
263
$(LIBODIR)/websrvr.o: websrvr.c websrvr.h $(BUILD_DEPENDS)
264
	@echo $(COMPILE_MSG) $<
deuce's avatar
deuce committed
265
266
	@$(CC) $(CFLAGS) -DWEBSRVR_EXPORTS -o $@ -c $<

deuce's avatar
deuce committed
267
$(LIBODIR)/base64.o: base64.c base64.h $(BUILD_DEPENDS)
268
	@echo $(COMPILE_MSG) $<
rswindell's avatar
rswindell committed
269
270
	@$(CC) $(CFLAGS) -DWEBSRVR_EXPORTS -o $@ -c $<

deuce's avatar
deuce committed
271
$(LIBODIR)/services.o: services.c services.h $(BUILD_DEPENDS)
272
	@echo $(COMPILE_MSG) $<
273
	@$(CC) $(CFLAGS) -DSERVICES_EXPORTS -o $@ -c $<
274
275

# Baja Utility
deuce's avatar
deuce committed
276
277
278
279
FORCE$(BAJA): \
	$(EXEODIR)/baja.o $(EXEODIR)/ars.o $(EXEODIR)/crc32.o \
	$(EXEODIR)/genwrap.o $(EXEODIR)/filewrap.o

280
$(BAJA): $(EXEODIR)/baja.o $(EXEODIR)/ars.o $(EXEODIR)/crc32.o \
deuce's avatar
deuce committed
281
	$(EXEODIR)/genwrap.o $(EXEODIR)/filewrap.o
282
	@echo Linking $@
283
	@$(CC) -o $@ $^
284
285

# Node Utility
deuce's avatar
deuce committed
286
287
288
289
FORCE$(NODE): \
	$(EXEODIR)/node.o $(EXEODIR)/genwrap.o $(EXEODIR)/filewrap.o

$(NODE): $(EXEODIR)/node.o $(EXEODIR)/genwrap.o $(EXEODIR)/filewrap.o
290
	@echo Linking $@
291
	@$(CC) -o $@ $^ 
292

293
SMBLIB = $(EXEODIR)/smblib.o $(EXEODIR)/filewrap.o $(EXEODIR)/crc16.o
rswindell's avatar
rswindell committed
294

295
# FIXSMB Utility
deuce's avatar
deuce committed
296
297
298
299
FORCE$(FIXSMB): \
	$(EXEODIR)/fixsmb.o $(SMBLIB) $(EXEODIR)/genwrap.o $(EXEODIR)/str_util.o

$(FIXSMB): $(EXEODIR)/fixsmb.o $(SMBLIB) $(EXEODIR)/genwrap.o $(EXEODIR)/str_util.o
300
	@echo Linking $@
301
	@$(CC) -o $@ $^
302
303

# CHKSMB Utility
deuce's avatar
deuce committed
304
305
306
307
FORCE$(CHKSMB): \
	$(EXEODIR)/chksmb.o $(SMBLIB) $(EXEODIR)/conwrap.o $(EXEODIR)/dirwrap.o $(EXEODIR)/genwrap.o

$(CHKSMB): $(EXEODIR)/chksmb.o $(SMBLIB) $(EXEODIR)/conwrap.o $(EXEODIR)/dirwrap.o $(EXEODIR)/genwrap.o
308
	@echo Linking $@
309
	@$(CC) -o $@ $^
310
311

# SMB Utility
deuce's avatar
deuce committed
312
313
314
315
316
FORCE$(SMBUTIL): \
	$(EXEODIR)/smbutil.o $(SMBLIB) $(EXEODIR)/conwrap.o $(EXEODIR)/dirwrap.o \
	$(EXEODIR)/genwrap.o $(EXEODIR)/smbtxt.o $(EXEODIR)/crc32.o $(EXEODIR)/lzh.o \
	$(EXEODIR)/date_str.o $(EXEODIR)/str_util.o

317
$(SMBUTIL): $(EXEODIR)/smbutil.o $(SMBLIB) $(EXEODIR)/conwrap.o $(EXEODIR)/dirwrap.o \
318
	$(EXEODIR)/genwrap.o $(EXEODIR)/smbtxt.o $(EXEODIR)/crc32.o $(EXEODIR)/lzh.o \
deuce's avatar
deuce committed
319
	$(EXEODIR)/date_str.o $(EXEODIR)/str_util.o
320
	@echo Linking $@
321
	@$(CC) -o $@ $^
322

rswindell's avatar
rswindell committed
323
# SBBSecho (FidoNet Packet Tosser)
deuce's avatar
deuce committed
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
FORCE$(SBBSECHO): \
	$(EXEODIR)/sbbsecho.o \
	$(EXEODIR)/ars.o \
	$(EXEODIR)/crc32.o \
	$(EXEODIR)/date_str.o \
	$(EXEODIR)/load_cfg.o \
	$(EXEODIR)/scfglib1.o \
	$(EXEODIR)/scfglib2.o \
	$(EXEODIR)/nopen.o \
	$(EXEODIR)/str_util.o \
	$(EXEODIR)/dat_rec.o \
	$(EXEODIR)/userdat.o \
	$(EXEODIR)/rechocfg.o \
	$(EXEODIR)/conwrap.o \
	$(EXEODIR)/dirwrap.o \
	$(EXEODIR)/genwrap.o \
	$(SMBLIB) \
	$(EXEODIR)/smbtxt.o \
	$(EXEODIR)/lzh.o

rswindell's avatar
rswindell committed
344
345
346
347
348
349
350
351
$(SBBSECHO): \
	$(EXEODIR)/sbbsecho.o \
	$(EXEODIR)/ars.o \
	$(EXEODIR)/crc32.o \
	$(EXEODIR)/date_str.o \
	$(EXEODIR)/load_cfg.o \
	$(EXEODIR)/scfglib1.o \
	$(EXEODIR)/scfglib2.o \
352
353
	$(EXEODIR)/nopen.o \
	$(EXEODIR)/str_util.o \
354
	$(EXEODIR)/dat_rec.o \
rswindell's avatar
rswindell committed
355
356
	$(EXEODIR)/userdat.o \
	$(EXEODIR)/rechocfg.o \
357
	$(EXEODIR)/conwrap.o \
rswindell's avatar
rswindell committed
358
359
360
361
	$(EXEODIR)/dirwrap.o \
	$(EXEODIR)/genwrap.o \
	$(SMBLIB) \
	$(EXEODIR)/smbtxt.o \
deuce's avatar
deuce committed
362
	$(EXEODIR)/lzh.o
rswindell's avatar
rswindell committed
363
	@echo Linking $@
364
	@$(CC) -o $@ $^
rswindell's avatar
rswindell committed
365

rswindell's avatar
rswindell committed
366
# SBBSecho Configuration Program
deuce's avatar
deuce committed
367
368
369
370
371
372
373
374
375
376
377
FORCE$(ECHOCFG): \
	$(EXEODIR)/echocfg.o \
	$(EXEODIR)/rechocfg.o \
	$(UIFC_OBJS) \
	$(EXEODIR)/nopen.o \
	$(EXEODIR)/crc16.o \
	$(EXEODIR)/str_util.o \
	$(EXEODIR)/filewrap.o \
	$(EXEODIR)/genwrap.o \
	$(EXEODIR)/dirwrap.o

rswindell's avatar
rswindell committed
378
379
380
$(ECHOCFG): \
	$(EXEODIR)/echocfg.o \
	$(EXEODIR)/rechocfg.o \
381
	$(UIFC_OBJS) \
rswindell's avatar
rswindell committed
382
	$(EXEODIR)/nopen.o \
383
	$(EXEODIR)/crc16.o \
384
385
	$(EXEODIR)/str_util.o \
	$(EXEODIR)/filewrap.o \
rswindell's avatar
rswindell committed
386
	$(EXEODIR)/genwrap.o \
deuce's avatar
deuce committed
387
	$(EXEODIR)/dirwrap.o
rswindell's avatar
rswindell committed
388
	@echo Linking $@
389
	@$(CC) -o $@ $^ $(UIFC_LFLAGS)
rswindell's avatar
rswindell committed
390

rswindell's avatar
rswindell committed
391
# ADDFILES
deuce's avatar
deuce committed
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
FORCE$(ADDFILES): \
	$(EXEODIR)/addfiles.o \
	$(EXEODIR)/ars.o \
	$(EXEODIR)/date_str.o \
	$(EXEODIR)/load_cfg.o \
	$(EXEODIR)/scfglib1.o \
	$(EXEODIR)/scfglib2.o \
	$(EXEODIR)/nopen.o \
	$(EXEODIR)/crc16.o \
	$(EXEODIR)/str_util.o \
	$(EXEODIR)/dat_rec.o \
	$(EXEODIR)/filedat.o \
	$(EXEODIR)/filewrap.o \
	$(EXEODIR)/dirwrap.o \
	$(EXEODIR)/genwrap.o

rswindell's avatar
rswindell committed
408
409
410
411
412
413
414
415
$(ADDFILES): \
	$(EXEODIR)/addfiles.o \
	$(EXEODIR)/ars.o \
	$(EXEODIR)/date_str.o \
	$(EXEODIR)/load_cfg.o \
	$(EXEODIR)/scfglib1.o \
	$(EXEODIR)/scfglib2.o \
	$(EXEODIR)/nopen.o \
416
	$(EXEODIR)/crc16.o \
rswindell's avatar
rswindell committed
417
	$(EXEODIR)/str_util.o \
418
	$(EXEODIR)/dat_rec.o \
rswindell's avatar
rswindell committed
419
420
421
	$(EXEODIR)/filedat.o \
	$(EXEODIR)/filewrap.o \
	$(EXEODIR)/dirwrap.o \
deuce's avatar
deuce committed
422
	$(EXEODIR)/genwrap.o
rswindell's avatar
rswindell committed
423
424
425
	@echo Linking $@
	@$(CC) -o $@ $^

426
# FILELIST
deuce's avatar
deuce committed
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
FORCE$(FILELIST): \
	$(EXEODIR)/filelist.o \
	$(EXEODIR)/ars.o \
	$(EXEODIR)/date_str.o \
	$(EXEODIR)/load_cfg.o \
	$(EXEODIR)/scfglib1.o \
	$(EXEODIR)/scfglib2.o \
	$(EXEODIR)/nopen.o \
	$(EXEODIR)/crc16.o \
	$(EXEODIR)/str_util.o \
	$(EXEODIR)/dat_rec.o \
	$(EXEODIR)/filedat.o \
	$(EXEODIR)/filewrap.o \
	$(EXEODIR)/dirwrap.o \
	$(EXEODIR)/genwrap.o

443
444
445
446
447
448
449
450
$(FILELIST): \
	$(EXEODIR)/filelist.o \
	$(EXEODIR)/ars.o \
	$(EXEODIR)/date_str.o \
	$(EXEODIR)/load_cfg.o \
	$(EXEODIR)/scfglib1.o \
	$(EXEODIR)/scfglib2.o \
	$(EXEODIR)/nopen.o \
451
	$(EXEODIR)/crc16.o \
452
453
454
455
456
	$(EXEODIR)/str_util.o \
	$(EXEODIR)/dat_rec.o \
	$(EXEODIR)/filedat.o \
	$(EXEODIR)/filewrap.o \
	$(EXEODIR)/dirwrap.o \
deuce's avatar
deuce committed
457
	$(EXEODIR)/genwrap.o
458
459
460
	@echo Linking $@
	@$(CC) -o $@ $^

461
# MAKEUSER
deuce's avatar
deuce committed
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
FORCE$(MAKEUSER): \
	$(EXEODIR)/makeuser.o \
	$(EXEODIR)/ars.o \
	$(EXEODIR)/date_str.o \
	$(EXEODIR)/load_cfg.o \
	$(EXEODIR)/scfglib1.o \
	$(EXEODIR)/scfglib2.o \
	$(EXEODIR)/nopen.o \
	$(EXEODIR)/crc16.o \
	$(EXEODIR)/str_util.o \
	$(EXEODIR)/dat_rec.o \
	$(EXEODIR)/userdat.o \
	$(EXEODIR)/filewrap.o \
	$(EXEODIR)/dirwrap.o \
	$(EXEODIR)/genwrap.o

478
479
480
481
482
483
484
485
$(MAKEUSER): \
	$(EXEODIR)/makeuser.o \
	$(EXEODIR)/ars.o \
	$(EXEODIR)/date_str.o \
	$(EXEODIR)/load_cfg.o \
	$(EXEODIR)/scfglib1.o \
	$(EXEODIR)/scfglib2.o \
	$(EXEODIR)/nopen.o \
486
	$(EXEODIR)/crc16.o \
487
488
489
490
491
	$(EXEODIR)/str_util.o \
	$(EXEODIR)/dat_rec.o \
	$(EXEODIR)/userdat.o \
	$(EXEODIR)/filewrap.o \
	$(EXEODIR)/dirwrap.o \
deuce's avatar
deuce committed
492
	$(EXEODIR)/genwrap.o
493
494
	@echo Linking $@
	@$(CC) -o $@ $^
deuce's avatar
deuce committed
495
496
497
498

FORCE$(ANS2MSG): $(ANS2MSG).o

FORCE$(MSG2ANS): $(MSG2ANS).o
499

500
501
502
depend:
	@$(DELETE) $(LIBODIR)/.depend
	@$(DELETE) $(EXEODIR)/.depend
deuce's avatar
deuce committed
503
	$(MAKE) BUILD_DEPENDS=FORCE
deuce's avatar
deuce committed
504

deuce's avatar
deuce committed
505
FORCE:
506

507
508
-include $(LIBODIR)/.depend
-include $(EXEODIR)/.depend
509
510
-include $(LIBODIR)/*.d
-include $(EXEODIR)/*.d