[go: up one dir, main page]

Menu

[r9]: / log / Makefile  Maximize  Restore  History

Download this file

24 lines (15 with data), 295 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
include ../Makefile.common
CCFLAGS +=
LDFLAGS += -llog
OBJS = log.o kb.o
all: liblog.so liblog.a
%.o: %.cpp %.h
$(C++) -fPIC $(CCFLAGS) $< -c
liblog.so: $(OBJS)
$(C++) -shared -o $@ $^
liblog.a: $(OBJS)
ar -rcs $@ $^
clean:
rm -f *.o *.so *.a
install:
mv liblog.so liblog.a ../lib