forked from bmybbs/bmybbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.Base.in
71 lines (59 loc) · 2.66 KB
/
Makefile.Base.in
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
#################################################################
# Makefile for FIREBIRD BBS v3.0K #
#################################################################
# 1. This package is derived from Firebird BBS 1.5, which was
# developed by the Department of Computer Science & Information
# Engineering, Chung Chen University of Taiwan, ROC.
# This package is developed by the Board of System Administrators,
# Malaysian Students' Association In Taiwan.
#
# 2. Our BBS location is at MSIA.pine.ncu.edu.tw (140.115.210.77)
#
# 3. The developers of this package can be reached by
#
# 4. This Makefile is for "@systype@"
#############################################################
#### Setup the following site-specific information ####
#############################################################
.PHONY:1st
# The home directory for user 'bbs'
BBSHOME=@BBS_HOME@
# The uid/gid info for user 'bbs'
BBSUID=@BBS_UID@
BBSGRP=@BBS_GID@
OS_DEF = @OS_DEF@
CC = @CC@
CFLAGS = -Wall @CFLAGS@ -I$(BASEPATH)/include -I$(BASEPATH)/ythtlib -I$(BASEPATH)/libythtbbs
CPPFLAGS = @CPPFLAGS@
CFLAGSTEST = -Wall @CTESTFLAGS@ -I$(BASEPATH)/include -I$(BASEPATH)/ythtlib -I$(BASEPATH)/libythtbbs -g
#CFLAGSTEST = @CTESTFLAGS@ -I$(BASEPATH)/include -I$(BASEPATH)/ythtlib -I$(BASEPATH)/libythtbbs -g -pg -static
BBSLIB = -L$(BBSHOME)/bin -lythtbbs -lytht
LIBS = @LIBS@
LIBSTEST = @LIBS@
LIBSQL = @LIBSQL@
CGIPATH = @CGIPATH@
HTMPATH = @HTMPATH@
WWW_LIBS = @WWW_LIBS@
WWW_CPPFLAGS= @WWW_CPPFLAGS@
INSTALL = @INSTALL@
CSIE_DEF = @CSIE_DEF@
$(BBSHOME)/bin/%:%
cp $< [email protected]
-rm -f [email protected]
-mv $@ [email protected]
mv [email protected] $@
1st:all
bbsconfig:=$(shell if test -f $(BASEPATH)/site/bbsconfig;then echo $(BASEPATH)/site/bbsconfig;else echo $(BASEPATH)/bbsconfig;fi)
$(BASEPATH)/Makefile.Base: $(BASEPATH)/Makefile.Base.in $(BASEPATH)/configure $(bbsconfig)
@echo $(BASEPATH)/Makefile.Base is newer than $(BASEPATH)/Makefile or $(BASEPATH)/configure or $(bbsconfig), run $(BASEPATH)/configure first.
@false
$(BASEPATH)/Makefile: $(BASEPATH)/Makefile.in $(BASEPATH)/configure
@echo $(BASEPATH)/Makefile is older than $(BASEPATH)/Makefile.in or $(BASEPATH)/configure, run $(BASEPATH)/configure first.
@false
$(BASEPATH)/configure: $(BASEPATH)/configure.in $(BASEPATH)/makedist.sh
@echo $(BASEPATH)/configure is older than $(BASEPATH)/configure.in or $(BASEPATH)/makedist.sh, run $(BASEPATH)/makedist.sh first.
@false
$(BASEPATH)/include/config.h: $(BASEPATH)/include/config.h.in $(BASEPATH)/configure
@echo $(BASEPATH)/include/config.h is older than $(BASEPATH)/include/config.h.in or $(BASEPATH)/configure, run configure first.
@false