[go: up one dir, main page]

Menu

[r52]: / util / Makefile  Maximize  Restore  History

Download this file

23 lines (14 with data), 305 Bytes

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