summaryrefslogtreecommitdiffstats
path: root/innbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-29 23:44:26 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-29 23:44:26 +0800
commitbf317a83fd06ffd9a0cf90e15c4f708458d0b496 (patch)
tree01522144a238acce99db8b238499c9a921a820fd /innbbsd
parent4d1d40e94f273af30d4ca56477bf69132f5294a0 (diff)
downloadpttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar
pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar.gz
pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar.bz2
pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar.lz
pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar.xz
pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar.zst
pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.zip
Make makefile work under linux.
Edit FAQ about -liconv, -lhz and shmmax. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1573 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd')
-rw-r--r--innbbsd/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/innbbsd/Makefile b/innbbsd/Makefile
index 1422ec65..61f97361 100644
--- a/innbbsd/Makefile
+++ b/innbbsd/Makefile
@@ -25,17 +25,21 @@ OPT= -O -s -pipe -fomit-frame-pointer
BBS_DEP = MapleBBS
BBS_UTIL = $(BBS_SRC)/util
-BBS_REC = $(BBS_UTIL)/util_record.o $(BBS_UTIL)/util_cache.o $(BBS_UTIL)/util_passwd.o $(BBS_UTIL)/util_stuff.o $(BBS_UTIL)/util_var.o
+BBS_REC = $(BBS_UTIL)/util_record.o $(BBS_UTIL)/util_cache.o \
+ $(BBS_UTIL)/util_passwd.o $(BBS_UTIL)/util_stuff.o \
+ $(BBS_UTIL)/util_var.o $(BBS_REC_EXTRA_$(OSTYPE))
+
+BBS_REC_EXTRA_Linux = $(BBS_UTIL)/util_osdep.o
#########################
#
###############
DEBUGOBJ = /usr/lib/debug/mallocmap.o
CFLAGS+= -c -I. -I$(BBS_SRC)/include -I$(BBS_SRC)/mbbsd -D$(BBS_DEP) \
--I/usr/local/include -L/usr/local/lib \
-$(EXTRAFLAGS) -DDBZDEBUG -DBBSHOME='"$(BBSHOME)"' \
--D_PATH_BBSHOME=\"$(BBSHOME)\" \
--DVERSION=\"$(VERSION)\" -DADMINUSER=\"$(ADMINUSER)\"
+ -I/usr/local/include -L/usr/local/lib \
+ $(EXTRAFLAGS) -DDBZDEBUG -DBBSHOME='"$(BBSHOME)"' \
+ -D_PATH_BBSHOME=\"$(BBSHOME)\" \
+ -DVERSION=\"$(VERSION)\" -DADMINUSER=\"$(ADMINUSER)\"
LDFLAGS+= -liconv
#
####################################################
@@ -79,7 +83,7 @@ sun:
aix:
@$(MAKE) CC=cc EXTRAFLAGS="-DMMAP -DGETRUSAGE -DAIX -DSYSV" target
-linux:
+Linux:
@$(MAKE) EXTRAFLAGS="-DLINUX -DGETRUSAGE" target
hpux: