summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-14 15:22:10 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-14 15:22:10 +0800
commit994b9559295f9d5bd19581e71027b3a74fff2403 (patch)
treefb20ff5d673890dbbdd29ea3710537364b7686f5
parenta9113c230287f83e7a30541940060ee41363659e (diff)
downloadpttbbs-994b9559295f9d5bd19581e71027b3a74fff2403.tar
pttbbs-994b9559295f9d5bd19581e71027b3a74fff2403.tar.gz
pttbbs-994b9559295f9d5bd19581e71027b3a74fff2403.tar.bz2
pttbbs-994b9559295f9d5bd19581e71027b3a74fff2403.tar.lz
pttbbs-994b9559295f9d5bd19581e71027b3a74fff2403.tar.xz
pttbbs-994b9559295f9d5bd19581e71027b3a74fff2403.tar.zst
pttbbs-994b9559295f9d5bd19581e71027b3a74fff2403.zip
for porting to linux
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1051 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/pttbbs.mk7
-rw-r--r--pttbbs/util/Makefile14
2 files changed, 12 insertions, 9 deletions
diff --git a/pttbbs/pttbbs.mk b/pttbbs/pttbbs.mk
index 6822c537..3d138fe5 100644
--- a/pttbbs/pttbbs.mk
+++ b/pttbbs/pttbbs.mk
@@ -1,8 +1,8 @@
-# $Id: pttbbs.mk,v 1.5 2003/06/28 08:55:40 kcwu Exp $
+# $Id: pttbbs.mk,v 1.6 2003/07/14 07:22:09 victor Exp $
# 定義基本初值
BBSHOME?= $(HOME)
BBSHOME?= /home/bbs
-OSTYPE?= FreeBSD
+OSTYPE?= Linux
CC?= gcc
CCACHE!= which ccache|sed -e 's/^.*\///'
PTT_CFLAGS= -Wall -pipe -DBBSHOME='"$(BBSHOME)"' -I../include
@@ -18,7 +18,8 @@ LDFLAGS_FreeBSD=
LIBS_FreeBSD= -lkvm
# Linux特有的環境
-CFLAGS_linux= -DHAVE_DES_CRYPT -DLinux
+# CFLAGS_linux= -DHAVE_DES_CRYPT -DLinux
+CFLAGS_linux= -DLinux
LDFLAGS_linux= -pipe -Wall
LIBS_linux=
diff --git a/pttbbs/util/Makefile b/pttbbs/util/Makefile
index baf0bf6a..5bd45409 100644
--- a/pttbbs/util/Makefile
+++ b/pttbbs/util/Makefile
@@ -1,19 +1,18 @@
-# $Id: Makefile,v 1.32 2003/07/11 09:03:21 in2 Exp $
+# $Id: Makefile,v 1.33 2003/07/14 07:22:10 victor Exp $
.include "../pttbbs.mk"
UTIL_OBJS= \
- util_cache.o util_record.o util_passwd.o
+ util_cache.o util_record.o util_passwd.o
# 下面這些程式, 會被 compile 並且和 $(UTIL_OBJS) 聯結
CPROG_WITH_UTIL= \
- bbsmail BM_money post poststat \
+ boardlist BM_money post poststat \
jungo account birth deluserfile \
expire mandex rmuid horoscope \
openvice parse_news openticket topusr \
indexuser yearsold toplazyBM toplazyBBM \
- reaper buildAnnounce inndBM shmctl \
- boardlist
+ reaper buildAnnounce inndBM shmctl
# 下面這些程式, 會直接被 compile
CPROG_WITHOUT_UTIL= \
@@ -30,13 +29,16 @@ PROGS= ${UTIL_OBJS} ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} \
dailybackup.pl tarqueue.pl waterball.pl filtermail.pl \
getbackup.pl udnnews.pl rebuildaloha.pl railway_wrapper.pl
-all: ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} ${PROGS}
+all: ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} ${PROGS} bbsmail
.for fn in ${CPROG_WITH_UTIL}
${fn}: ${fn}.c ${UTIL_OBJS}
${CC} ${CFLAGS} -o ${fn} ${fn}.c ${UTIL_OBJS}
.endfor
+bbsmail: bbsmail.c ${CPROG_WITH_UTIL} ../mbbsd/osdep.o
+ ${CC} ${CFLAGS} -o bbsmail bbsmail.c ${UTIL_OBJS} ../mbbsd/osdep.o
+
xchatd: xchatd.c $(UTIL_OBJS) descrypt.c
$(CC) $(CFLAGS) -o $@ $@.c $(UTIL_OBJS) descrypt.c $(LIBCHAT)