diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-13 16:05:51 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-13 16:05:51 +0800 |
commit | f076301f829cd83641259802d5bb9ef04f527946 (patch) | |
tree | 43c2c96c5a8237cdc358bb830d08f6b57b2689c8 /mbbsd/Makefile | |
parent | 05edd556caefcf9b30686d4d3d8c0f1d57153d36 (diff) | |
download | pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar.gz pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar.bz2 pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar.lz pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar.xz pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar.zst pttbbs-f076301f829cd83641259802d5bb9ef04f527946.zip |
Makefile cleanup
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4349 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/Makefile')
-rw-r--r-- | mbbsd/Makefile | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile index 127e6c24..b756e7f6 100644 --- a/mbbsd/Makefile +++ b/mbbsd/Makefile @@ -17,7 +17,7 @@ PAGEROBJS= more.o pmore.o PLUGOBJS = lovepaper.o calendar.o topsong.o gamble.o vice.o angel.o CHESSOBJS= chc.o chc_tab.o chess.o go.o gomo.o dark.o reversi.o GAMEOBJS = card.o guess.o chicken.o othello.o -OBJS= admin.o assess.o edit.o menu.o xyz.o var.o visio.o \ +OBJS:= admin.o assess.o edit.o menu.o xyz.o var.o visio.o \ vote.o voteboard.o \ $(COREOBJS) $(ACCOBJS) $(NETOBJS) $(TALKOBJS) $(UTILOBJS) \ $(PAGEROBJS) $(PLUGOBJS) \ @@ -73,10 +73,8 @@ OBJS+= screen.o .if defined(DIET) OBJS+= random.o time.o alloc.o -DIETCC= diet -Os +DIETCC:= diet -Os .endif -#CFLAGS+=-g -#CFLAGS+=-std=c99 # reduce .bss align overhead .if !defined(DEBUG) @@ -97,22 +95,19 @@ LDLIBS+=$(SRCROOT)/common/bbs/libcmbbs.a \ .SUFFIXES: .c .o .c.o: $(SRCROOT)/include/var.h - $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $*.c + $(CC) $(CFLAGS) -c $*.c all: $(PROG) $(PROG): $(OBJS) sh $(SRCROOT)/util/newvers.sh - $(DIETCC) $(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LDLIBS) vers.c - -$(SRCROOT)/include/var.h: var.c - perl $(SRCROOT)/util/parsevar.pl < var.c > $(SRCROOT)/include/var.h + $(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LDLIBS) vers.c $(SRCROOT)/include/banip.h: $(SRCROOT)/util/banip.pl perl $(SRCROOT)/util/banip.pl > $@ mbbsd.o: mbbsd.c $(SRCROOT)/include/var.h $(SRCROOT)/include/banip.h - $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $< + $(DIETCC) $(CC) $(CFLAGS) -c $< initemaildb: emaildb.c $(CC) -DINIT_MAIN $(CFLAGS) $(LDFLAGS) -o initemaildb emaildb.c $(LDLIBS) |