diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-13 00:07:14 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-13 00:07:14 +0800 |
commit | c2c6fd8b981f39cc2c0696f3dc9ea44bea79fbb4 (patch) | |
tree | 61af6346b5444798734d2dd819dfa5b8c251595a /cacheserver/Makefile | |
parent | 573d0b00e773b410447d633fdc7e05345632a8d9 (diff) | |
download | pttbbs-c2c6fd8b981f39cc2c0696f3dc9ea44bea79fbb4.tar pttbbs-c2c6fd8b981f39cc2c0696f3dc9ea44bea79fbb4.tar.gz pttbbs-c2c6fd8b981f39cc2c0696f3dc9ea44bea79fbb4.tar.bz2 pttbbs-c2c6fd8b981f39cc2c0696f3dc9ea44bea79fbb4.tar.lz pttbbs-c2c6fd8b981f39cc2c0696f3dc9ea44bea79fbb4.tar.xz pttbbs-c2c6fd8b981f39cc2c0696f3dc9ea44bea79fbb4.tar.zst pttbbs-c2c6fd8b981f39cc2c0696f3dc9ea44bea79fbb4.zip |
list the dependency explicitly.
(I have to say, pttbbs build system is so ugly.)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3282 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'cacheserver/Makefile')
-rw-r--r-- | cacheserver/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cacheserver/Makefile b/cacheserver/Makefile index 05a0cd07..e09edcca 100644 --- a/cacheserver/Makefile +++ b/cacheserver/Makefile @@ -2,6 +2,7 @@ .include "../pttbbs.mk" PROGRAMS= utmpserver utmpsync +UTILOBJ= ../util/util_stuff.o ../util/util_var.o ../util/util_file.o ../util/util_cache.o ../util/util_passwd.o ../util/util_record.o all: ${PROGRAMS} @@ -9,10 +10,10 @@ all: ${PROGRAMS} .c.o: $(CCACHE) $(CC) $(CFLAGS) -c $*.c -.for fn in ${PROGRAMS} -${fn}: ${fn}.o - ${CC} ${CFLAGS} ${LDFLAGS} -o ${fn} ${fn}.o ../util/util_*.o -.endfor +utmpserver: utmpserver.o $(UTILOBJ) + ${CC} ${CFLAGS} ${LDFLAGS} -o $* $*.o $(UTILOBJ) +utmpsync: utmpsync.o $(UTILOBJ) + ${CC} ${CFLAGS} ${LDFLAGS} -o $* $*.o $(UTILOBJ) clean: rm -f *~ ${PROGRAMS} |