summaryrefslogtreecommitdiffstats
path: root/common/bbs/Makefile
blob: 6ed3e554bd495d907782256258c24ce34b52b31e (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

SRCROOT=    ../..
.include "$(SRCROOT)/pttbbs.mk"

CFLAGS+=    -I$(SRCROOT)/include

OBJS=   log.o   string.o money.o
TARGET= libcmbbs.a


.SUFFIXES: .c .o
.c.o:
    $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $*.c

all: $(TARGET)

install:

$(TARGET): $(OBJS)
    $(AR) cru $@ $(OBJS)
    ranlib $@

clean:
    rm -f $(OBJS) $(TARGET)