summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-18 11:11:18 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-18 11:11:18 +0800
commit0f7ab3bfa1a3e76b14b0824a3e5c8938c6b3930f (patch)
treeb15e13cf4cf7946b608f5e703bc6214ceb972c4d
parente628bf7e42c8430e149ae546d421285228eb7e9a (diff)
downloadpttbbs-0f7ab3bfa1a3e76b14b0824a3e5c8938c6b3930f.tar
pttbbs-0f7ab3bfa1a3e76b14b0824a3e5c8938c6b3930f.tar.gz
pttbbs-0f7ab3bfa1a3e76b14b0824a3e5c8938c6b3930f.tar.bz2
pttbbs-0f7ab3bfa1a3e76b14b0824a3e5c8938c6b3930f.tar.lz
pttbbs-0f7ab3bfa1a3e76b14b0824a3e5c8938c6b3930f.tar.xz
pttbbs-0f7ab3bfa1a3e76b14b0824a3e5c8938c6b3930f.tar.zst
pttbbs-0f7ab3bfa1a3e76b14b0824a3e5c8938c6b3930f.zip
fix r2315
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2337 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--innbbsd/Makefile46
1 files changed, 21 insertions, 25 deletions
diff --git a/innbbsd/Makefile b/innbbsd/Makefile
index c99f549b..89902462 100644
--- a/innbbsd/Makefile
+++ b/innbbsd/Makefile
@@ -1,13 +1,4 @@
# $Id$
-# ------------------------------------------------------- #
-# innbbsd/Makefile ( NTHU CS MapleBBS Ver 2.36 ) #
-# ------------------------------------------------------- #
-# target : Makefile for Âà«Hµ{¦¡ innbbsd by skhuang #
-# create : 95/03/29 #
-# update : 95/12/15 #
-# ------------------------------------------------------- #
-# stdarg.h patch for pttbbs by in2 03/05/05 #
-
.include "../pttbbs.mk"
VERSION= 0.50-pttpatch
@@ -25,16 +16,16 @@ inn_LDFLAGS_Linux=
inn_CFLAGS_Solaris= -DMMAP -DSolaris -DSYSV -I/usr/local/include/
inn_LDFLAGS_Solaris= -L/usr/local/lib -liconv -lsocket -lnsl -lkstat
-CFLAGS+= -DVERSION=\"$(VERSION)\" \
- -DADMINUSER=\"$(ADMINUSER)\" \
+CFLAGS+= -DVERSION=\"${VERSION}\" \
+ -DADMINUSER=\"${ADMINUSER}\" \
-DMapleBBS -DDBZDEBUG -I. \
- $(inn_CFLAGS_$(OSTYPE))
-LDFLAGS+= $(inn_LDFLAGS_$(OSTYPE))
+ ${inn_CFLAGS_${OSTYPE}}
+LDFLAGS+= ${inn_LDFLAGS_${OSTYPE}}
PROGS= bbslink bbsnnrp ctlinnbbsd \
innbbsd mkhistory
-all: $(PROGS)
+all: ${PROGS}
# bbs util
UTIL_DIR= ../util
@@ -50,25 +41,30 @@ ${UTIL_DIR}/${fn}: # FIXME: dependency
.endfor
-innbbsd: inndchannel.o innbbsd.o connectsock.o rfc931.o daemon.o file.o pmain.o his.o dbz.o closeonexec.o dbztool.o inntobbs.o receive_article.o echobbslib.o str_decode.o nocem.o
- $(CCACHE) ${CC} -o $@ ${LDFLAGS} $? ${LINK_UTIL_OBJS}
+echobbslib.o: echobbslib.c
+ ${CC} ${CFLAGS} -DWITH_ECHOMAIL -c echobbslib.c
+
+innbbsd: inndchannel.o innbbsd.o connectsock.o rfc931.o daemon.o \
+ file.o pmain.o his.o dbz.o closeonexec.o dbztool.o \
+ inntobbs.o receive_article.o echobbslib.o str_decode.o nocem.o
+ ${CCACHE} ${CC} -o $@ ${LDFLAGS} $? ${LINK_UTIL_OBJS}
-bbslink: bbslink.o pmain.o inntobbs.o echobbslib.o connectsock.o \
+bbslink: bbslink.o pmain.o inntobbs.o echobbslib.o connectsock.o \
file.o port.o str_decode.o
- $(CCACHE) ${CC} -o $@ ${LDFLAGS} $? ${LINK_UTIL_OBJS}
+ ${CCACHE} ${CC} -o $@ ${LDFLAGS} $? ${LINK_UTIL_OBJS}
bbsnnrp: bbsnnrp.o pmain.o bbslib.o connectsock.o file.o
- $(CCACHE) ${CC} -o $@ ${LDFLAGS} $? ${LINK_UTIL_OBJS}
+ ${CCACHE} ${CC} -o $@ ${LDFLAGS} $? ${LINK_UTIL_OBJS}
ctlinnbbsd: ctlinnbbsd.o pmain.o bbslib.o connectsock.o file.o
- $(CCACHE) ${CC} -o $@ ${LDFLAGS} $? ${LINK_UTIL_OBJS}
+ ${CCACHE} ${CC} -o $@ ${LDFLAGS} $? ${LINK_UTIL_OBJS}
mkhistory: mkhistory.o bbslib.o file.o his.o dbz.o port.o closeonexec.o
- $(CCACHE) ${CC} -o $@ ${LDFLAGS} $? ${LINK_UTIL_OBJS}
+ ${CCACHE} ${CC} -o $@ ${LDFLAGS} $? ${LINK_UTIL_OBJS}
-install: $(PROGS)
- install -d $(BBSHOME)/innd/
- install -c -m 755 $(PROGS) $(BBSHOME)/innd/
+install: ${PROGS}
+ install -d ${BBSHOME}/innd/
+ install -c -m 755 ${PROGS} ${BBSHOME}/innd/
clean:
- rm -f *.o $(PROGS) core *.core
+ rm -f *.o ${PROGS} core *.core