diff options
-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} |