Ticket #1154: Makefile
File Makefile, 339 bytes (added by , 15 years ago) |
---|
Line | |
---|---|
1 | LDLIBS += -L../../../../lib -lboost_thread-gcc41-mt-d |
2 | CPPFLAGS += -I../../../../include |
3 | CXXFLAGS += -g -Wall |
4 | |
5 | all: main plugin.so |
6 | |
7 | main: LDLIBS += -ldl |
8 | |
9 | plugin.o: CXXFLAGS += -DPIC -fpic |
10 | |
11 | plugin.so: plugin.o |
12 | $(CXX) -shared $(LDFLAGS) -o $@ $^ |
13 | |
14 | clean: |
15 | rm -f main *.so *.o *~ |
16 | |
17 | check: all |
18 | ./main |
19 | |
20 | test: check |
21 | |
22 | .PHONY: all clean test check |