Ticket #1154: Makefile

File Makefile, 339 bytes (added by Zak Kipling <zak@…>, 15 years ago)

Makefile to build test case

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