summaryrefslogtreecommitdiffstats
path: root/src/libbbsutil/Makefile
blob: f3ad56525638b5efbeacfcc4174bda56b5b3feae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

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

CFLAGS+=    -I$(SRCROOT)/include

OBJS=   file.o  lock.o  log.o   net.o   sort.o  string.o    time.o
TARGET= libbbsutil.a


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

all: $(TARGET)

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

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