0
|
1 @SET_MAKE@
|
|
2 CC = @CC@
|
|
3 CXX = @CXX@
|
|
4 LD = @CXX@
|
|
5 AR = ar
|
|
6 RANLIB = @RANLIB@
|
|
7
|
|
8 CFLAGS= -I.. $(LOCAL_DEF) @CFLAGS@ @DEFS@ -pthread -O2
|
|
9 CXXFLAGS = $(CFLAGS)
|
|
10 LDFLAGS = @LDFLAGS@ @LIBS@ -pthread
|
|
11
|
|
12 SRCS = file.cc \
|
|
13 system_config.cc
|
|
14
|
|
15 OBJS = ${SRCS:.cc=.o}
|
|
16
|
|
17 all: visarc libsystem.a
|
|
18
|
|
19 libsystem.a: ${OBJS}
|
|
20 rm -f libsystem.a
|
|
21 ${AR} clq libsystem.a ${OBJS}
|
|
22 $(RANLIB) libsystem.a
|
|
23
|
|
24 visarc: visarc.o libsystem.a
|
|
25 $(LD) -o visarc visarc.o libsystem.a $(LDFLAGS)
|
|
26
|
|
27 clean:
|
|
28 rm -f visarc libsystem.a ${OBJS} *.bak
|
|
29
|
|
30 .c.o:
|
|
31 $(CC) -c $(CFLAGS) -o $@ $<
|
|
32
|
|
33 .cc.o:
|
|
34 $(CXX) -c $(CFLAGS) -o $@ $<
|
|
35
|