diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-02 20:37:27 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-02 20:37:27 +0800 |
commit | 157b1d72211ffacf8614d6a5e96e8cf536f93e78 (patch) | |
tree | 145874e134c1e8957fdd26976548da11beef35e2 /mbbsd/Makefile | |
parent | f7b95c5ed07e5ca5bf330d9646cba88c89abe128 (diff) | |
download | pttbbs-157b1d72211ffacf8614d6a5e96e8cf536f93e78.tar pttbbs-157b1d72211ffacf8614d6a5e96e8cf536f93e78.tar.gz pttbbs-157b1d72211ffacf8614d6a5e96e8cf536f93e78.tar.bz2 pttbbs-157b1d72211ffacf8614d6a5e96e8cf536f93e78.tar.lz pttbbs-157b1d72211ffacf8614d6a5e96e8cf536f93e78.tar.xz pttbbs-157b1d72211ffacf8614d6a5e96e8cf536f93e78.tar.zst pttbbs-157b1d72211ffacf8614d6a5e96e8cf536f93e78.zip |
- refine Makefile to fit conditional compile in a better way
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3773 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/Makefile')
-rw-r--r-- | mbbsd/Makefile | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile index 850d3cfa..1917f87b 100644 --- a/mbbsd/Makefile +++ b/mbbsd/Makefile @@ -3,26 +3,43 @@ SRCROOT= .. .include "$(SRCROOT)/pttbbs.mk" -.if defined(WITH_BLOG) +# conditional configurations + +.if !defined(WITHOUT_BLOG) && defined(WITH_BLOG) CFLAGS+= -DBLOG LDFLAGS+= -L/usr/local/lib/mysql -lmysqlclient .endif -.if defined(WITH_PFTERM) +.if !defined(WITHOUT_EMAIL_DB) && defined(WITH_EMAIL_DB) +CFLAGS+= -DUSE_EMAIL_DB +LDFLAGS+= -L/usr/local/lib/sqlite3 -lsqlite3 +.endif + +.if !defined(WITHOUT_PFTERM) && defined(WITH_PFTERM) CFLAGS+= -DUSE_PFTERM #CFLAGS+= -DDBG_OUTRPT .endif +# common modules + PROG= mbbsd OBJS= admin.o announce.o args.o assess.o bbs.o board.o cache.o cal.o card.o\ chat.o chicken.o convert.o crypt.o edit.o fav.o friend.o gamble.o\ guess.o indict.o io.o kaede.o lovepaper.o mail.o mbbsd.o menu.o\ more.o name.o osdep.o read.o record.o register.o\ - screen.o stuff.o talk.o term.o topsong.o user.o brc.o vice.o vote.o\ + stuff.o talk.o term.o topsong.o user.o brc.o vice.o vote.o\ xyz.o voteboard.o syspost.o var.o passwd.o calendar.o file.o \ - pmore.o telnet.o pfterm.o \ + pmore.o telnet.o \ chc.o chc_tab.o chess.o go.o gomo.o dark.o reversi.o othello.o +# optional modules + +.if !defined(WITHOUT_PFTERM) && defined(WITH_PFTERM) +OBJS+= pfterm.o +.else +OBJS+= screen.o +.endif + .if defined(DIET) OBJS+= random.o time.o alloc.o DIETCC= diet -Os |