forked from bmybbs/bmybbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.Base
71 lines (59 loc) · 2.84 KB
/
Makefile.Base
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 "LINUX"
#############################################################
#### Setup the following site-specific information ####
#############################################################
.PHONY:1st
# The home directory for user 'bbs'
BBSHOME=/home/bbs
# The uid/gid info for user 'bbs'
BBSUID=999
BBSGRP=999
OS_DEF = -DLINUX
CC = gcc
CFLAGS = -Wall -g -mmmx -msse -pipe -DCONF_HAVE_OPENPTY -I$(BASEPATH)/include -I$(BASEPATH)/ythtlib -I$(BASEPATH)/libythtbbs `xml2-config --cflags`
CPPFLAGS = -I/usr/include/mysql -DENABLE_MYSQL
CFLAGSTEST = -Wall -pipe -DCONF_HAVE_OPENPTY -I$(BASEPATH)/include -I$(BASEPATH)/ythtlib -I$(BASEPATH)/libythtbbs -g
#CFLAGSTEST = -pipe -DCONF_HAVE_OPENPTY -I$(BASEPATH)/include -I$(BASEPATH)/ythtlib -I$(BASEPATH)/libythtbbs -g -pg -static
BBSLIB = -L$(BASEPATH)/bin -lythtbbs -lytht -lmysqlclient `xml2-config --libs` -lpcre -lm
LIBS =
LIBSTEST =
LIBSQL = -L/usr/lib/mysql -lmysqlclient
CGIPATH = /home/apache/cgi-bin
HTMPATH = /home/apache/htdocs
WWW_LIBS = -lghthash
WWW_CPPFLAGS= -DENABLE_GHTHASH
INSTALL = /usr/bin/install -c
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