From 449d862fbbbde494e94ba0bbc4689b91ca986175 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 15 Aug 2003 10:40:13 +0000 Subject: new developed service git-svn-id: http://opensvn.csie.org/pttbbs/branches/bank@1102 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..c0050312 --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ + +CFLAGS = -O2 -Os -fomit-frame-pointer -fstrength-reduce -fthread-jumps -fexpensive-optimizations -pipe -I../include -DLinux -DBANK_ONLY +#CFLAGS = -O2 -Os -fomit-frame-pointer -fstrength-reduce -fthread-jumps -fexpensive-optimizations -Wall -pipe -I../include -DLinux -DBANK_ONLY + +.if defined(DEBUG) +CFLAGS += -g +.endif + +.if !defined(NOTPTT) +CFLAGS += -DPTTBBS +.endif + +SERVEROBJ = server.o bankstuff.o money.o +CLIENTOBJ = client.o bankstuff.o +EXTFILE = cache passwd stuff +EXTOBJ = cache.o passwd.o stuff.o +PROG = client server + +.SUFFIXES: .c .o +.c.o: ; $(CC) $(CFLAGS) -c $*.c + +all: $(PROG) + +.if !defined(NOTPTT) + +cache: ../mbbsd/cache.c + $(CC) $(CFLAGS) -c ../mbbsd/cache.c + +passwd: ../mbbsd/passwd.c + $(CC) $(CFLAGS) -c ../mbbsd/passwd.c + +stuff: ../mbbsd/stuff.c + $(CC) $(CFLAGS) -c ../mbbsd/stuff.c + +.else +# define your rules here. + +.endif + +server: $(SERVEROBJ) $(EXTFILE) + $(CC) $(CFLAGS) -o server $(SERVEROBJ) $(EXTOBJ) + +client: $(CLIENTOBJ) + $(CC) $(CFLAGS) -o client $(CLIENTOBJ) + +clean: + rm -rf *.o $(PROG) -- cgit v1.2.3