blob: 054f9224c2dc3c1f62f056660a1f93c06428d763 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# $Id$
SRCROOT= ../..
.include "$(SRCROOT)/pttbbs.mk"
PROGRAMS= fromd fromc
LDLIBS+= $(SRCROOT)/common/sys/libcmsys.a \
$(SRCROOT)/common/bbs/libcmbbs.a
all: ${PROGRAMS}
.SUFFIXES: .c .cpp .o
.c.o:
$(CCACHE) $(CC) $(CFLAGS) -c $*.c
.cpp.o:
$(CCACHE) $(CXX) $(CFLAGS) -c $*.cpp
fromd: fromd.o ip_desc_db.o
${CC} ${CFLAGS} ${LDFLAGS} -levent -o $@ $> $(LDLIBS)
fromc: fromc.o
${CC} ${CFLAGS} ${LDFLAGS} -o $@ $> $(LDLIBS)
clean:
rm -f *~ ${PROGRAMS} fromd.o ip_desc_db.o
|