blob: 99086258bf8aadaf83a6c4d7ccefdbc1105865ba (
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
26
|
SRCROOT= ../..
.include "$(SRCROOT)/pttbbs.mk"
OBJS= log.o file.o money.o names.o path.o time.o string.o
# record.o
TARGET= libcmbbs.a
.SUFFIXES: .c .o
.c.o: $(SRCROOT)/include/var.h
$(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $*.c
all: $(TARGET)
install:
$(SRCROOT)/include/var.h: $(SRCROOT)/mbbsd/var.c
perl $(SRCROOT)/util/parsevar.pl < $(SRCROOT)/mbbsd/var.c > $(SRCROOT)/include/var.h
$(TARGET): $(OBJS)
$(AR) cru $@ $(OBJS)
ranlib $@
clean:
rm -f $(OBJS) $(TARGET)
|