[go: up one dir, main page]

Menu

[r2]: / sql / Makefile  Maximize  Restore  History

Download this file

27 lines (17 with data), 372 Bytes

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