targets.mk 3.7 KB
Newer Older
rswindell's avatar
rswindell committed
1
2
3
4
5
6
# targets.mk

# Make 'include file' defining targets for Synchronet project

# $Id$

7
8
9
10
11
12
13
14
15
16
# LIBODIR, EXEODIR, DIRSEP, LIBFILE, EXEFILE, and DELETE must be pre-defined

SBBS		= $(LIBODIR)$(DIRSEP)$(LIBPREFIX)sbbs$(SOFILE)
FTPSRVR		= $(LIBODIR)$(DIRSEP)$(LIBPREFIX)ftpsrvr$(SOFILE)
WEBSRVR		= $(LIBODIR)$(DIRSEP)$(LIBPREFIX)websrvr$(SOFILE)
MAILSRVR	= $(LIBODIR)$(DIRSEP)$(LIBPREFIX)mailsrvr$(SOFILE)
SERVICES	= $(LIBODIR)$(DIRSEP)$(LIBPREFIX)services$(SOFILE)
SBBSCON		= $(EXEODIR)$(DIRSEP)sbbs$(EXEFILE)
SBBSMONO	= $(EXEODIR)$(DIRSEP)sbbsmono$(EXEFILE)
JSEXEC		= $(EXEODIR)$(DIRSEP)jsexec$(EXEFILE)
17
JSDOOR		= $(EXEODIR)$(DIRSEP)jsdoor$(EXEFILE)
18
19
NODE		= $(EXEODIR)$(DIRSEP)node$(EXEFILE)
BAJA		= $(EXEODIR)$(DIRSEP)baja$(EXEFILE)
20
UNBAJA		= $(EXEODIR)$(DIRSEP)unbaja$(EXEFILE)
21
22
23
24
25
26
27
28
29
30
FIXSMB		= $(EXEODIR)$(DIRSEP)fixsmb$(EXEFILE)
CHKSMB		= $(EXEODIR)$(DIRSEP)chksmb$(EXEFILE)
SMBUTIL		= $(EXEODIR)$(DIRSEP)smbutil$(EXEFILE)
SBBSECHO	= $(EXEODIR)$(DIRSEP)sbbsecho$(EXEFILE)
ECHOCFG		= $(EXEODIR)$(DIRSEP)echocfg$(EXEFILE)
ADDFILES	= $(EXEODIR)$(DIRSEP)addfiles$(EXEFILE)
FILELIST	= $(EXEODIR)$(DIRSEP)filelist$(EXEFILE)
MAKEUSER	= $(EXEODIR)$(DIRSEP)makeuser$(EXEFILE)
ANS2ASC		= $(EXEODIR)$(DIRSEP)ans2asc$(EXEFILE)
ASC2ANS		= $(EXEODIR)$(DIRSEP)asc2ans$(EXEFILE)
deuce's avatar
deuce committed
31
SEXYZ		= $(EXEODIR)$(DIRSEP)sexyz$(EXEFILE)
deuce's avatar
deuce committed
32
QWKNODES	= $(EXEODIR)$(DIRSEP)qwknodes$(EXEFILE)
deuce's avatar
deuce committed
33
SLOG		= $(EXEODIR)$(DIRSEP)slog$(EXEFILE)
34
ALLUSERS	= $(EXEODIR)$(DIRSEP)allusers$(EXEFILE)
deuce's avatar
deuce committed
35
DELFILES	= $(EXEODIR)$(DIRSEP)delfiles$(EXEFILE)
deuce's avatar
deuce committed
36
DUPEFIND	= $(EXEODIR)$(DIRSEP)dupefind$(EXEFILE)
deuce's avatar
deuce committed
37
SMBACTIV	= $(EXEODIR)$(DIRSEP)smbactiv$(EXEFILE)
38
DSTSEDIT	= $(EXEODIR)$(DIRSEP)dstsedit$(EXEFILE)
deuce's avatar
deuce committed
39
READSAUCE	= $(EXEODIR)$(DIRSEP)readsauce$(EXEFILE)
40
SHOWSTAT	= $(EXEODIR)$(DIRSEP)showstat$(EXEFILE)
rswindell's avatar
rswindell committed
41

42
43
44
45
46
47
UTILS		= $(FIXSMB) $(CHKSMB) \
			  $(SMBUTIL) $(BAJA) $(NODE) \
			  $(SBBSECHO) $(ECHOCFG) \
			  $(ADDFILES) $(FILELIST) $(MAKEUSER) \
			  $(ANS2ASC) $(ASC2ANS)  $(UNBAJA) \
			  $(QWKNODES) $(SLOG) $(ALLUSERS) \
48
			  $(DELFILES) $(DUPEFIND) $(SMBACTIV) \
49
			  $(SEXYZ) $(DSTSEDIT) $(READSAUCE) $(SHOWSTAT)
rswindell's avatar
rswindell committed
50

51
all:	dlls utils console scfg uedit umonitor
52

deuce's avatar
deuce committed
53
console:	$(JS_DEPS) xpdev-mt smblib \
54
55
		$(MTOBJODIR) $(LIBODIR) $(EXEODIR) \
		dlls \
56
		$(SBBSCON) $(JSEXEC)
rswindell's avatar
rswindell committed
57

58
59
60
61
utils:	smblib xpdev-mt xpdev ciolib-mt uifc-mt \
		$(LIBODIR) $(OBJODIR) $(MTOBJODIR) $(EXEODIR) \
		$(UTILS)

deuce's avatar
deuce committed
62
dlls:	$(JS_DEPS) smblib xpdev-mt \
63
		$(MTOBJODIR) $(LIBODIR) \
rswindell's avatar
rswindell committed
64
65
		$(SBBS) $(FTPSRVR) $(MAILSRVR) $(SERVICES)

66
67
68
mono:	xpdev-mt smblib \
		$(MTOBJODIR) $(EXEODIR) \
		$(SBBSMONO)
69

70
71
.PHONY: scfg
scfg:
72
	$(MAKE) -C scfg
73
74
75

.PHONY: uedit
uedit:
76
	$(MAKE) -C uedit
77
78
79

.PHONY: umonitor
umonitor:
80
	$(MAKE) -C umonitor
81
82


83
84
ifdef SBBSEXEC
.PHONY: install
85
install: all
86
87
88
89
	install $(EXEODIR)/* $(SBBSEXEC)
	install $(LIBODIR)/* $(SBBSEXEC)

.PHONY: symlinks
90
symlinks: all
91
92
93
94
	ln -sfr $(EXEODIR)/* $(SBBSEXEC)
	ln -sfr $(LIBODIR)/* $(SBBSEXEC)
endif

95
96
97
.PHONY: sexyz
sexyz:	$(SEXYZ)

98
.PHONY: jsdoor
deuce's avatar
deuce committed
99
jsdoor: $(JSDOOR)
100
101
102
103
104
105
106
107
108
109

# Library dependencies
$(SBBS): 
$(FTPSRVR): 
$(WEBSRVR):
$(MAILSRVR):
$(SERVICES): 
$(SBBSCON): $(XPDEV-MT_LIB) $(SMBLIB)
$(SBBSMONO): $(XPDEV-MT_LIB) $(SMBLIB)
$(JSEXEC): $(XPDEV-MT_LIB) $(SMBLIB)
110
$(JSDOOR): $(XPDEV-MT_LIB)
111
112
$(NODE): $(XPDEV_LIB)
$(BAJA): $(XPDEV_LIB) $(SMBLIB)
deuce's avatar
deuce committed
113
$(UNBAJA): $(XPDEV_LIB)
114
115
116
117
118
119
120
121
122
123
$(FIXSMB): $(XPDEV_LIB) $(SMBLIB)
$(CHKSMB): $(XPDEV_LIB) $(SMBLIB)
$(SMBUTIL): $(XPDEV_LIB) $(SMBLIB)
$(SBBSECHO): $(XPDEV_LIB) $(SMBLIB)
$(ECHOCFG): $(XPDEV-MT_LIB) $(SMBLIB) $(UIFCLIB-MT) $(CIOLIB-MT)
$(ADDFILES): $(XPDEV_LIB)
$(FILELIST): $(XPDEV_LIB)
$(MAKEUSER): $(XPDEV_LIB)
$(ANS2ASC):
$(ASC2ANS):
deuce's avatar
deuce committed
124
$(SEXYZ): $(XPDEV-MT_LIB) $(SMBLIB)
deuce's avatar
deuce committed
125
$(QWKNODES): $(XPDEV_LIB)
deuce's avatar
deuce committed
126
$(SLOG): $(XPDEV_LIB)
127
$(ALLUSERS): $(XPDEV_LIB)
deuce's avatar
deuce committed
128
$(DELFILES): $(XPDEV_LIB)
deuce's avatar
deuce committed
129
$(DUPEFIND): $(XPDEV_LIB) $(SMBLIB)
deuce's avatar
deuce committed
130
$(SMBACTIV): $(XPDEV_LIB) $(SMBLIB)
131
$(DSTSEDIT): $(XPDEV_LIB)
deuce's avatar
deuce committed
132
$(READSAUCE): $(XPDEV_LIB)
133
$(SHOWSTAT): $(XPDEV_LIB)