]>
Commit | Line | Data |
---|---|---|
4a61305d RD |
1 | |
2 | CXX = c++ | |
3 | CXXFLAGS = `wx-config --cxxflags` -fPIC -I. | |
4 | LDFLAGS = `wx-config --libs` | |
5 | ||
6 | ||
7 | all: test_prg test_dll.so | |
8 | ||
9 | test_prg: dllwidget.o test_prg.o | |
10 | $(CXX) $(LDFLAGS) -o $@ dllwidget.o test_prg.o | |
11 | ||
12 | test_dll.so: test_dll.o | |
13 | $(CXX) $(LDFLAGS) -shared -o $@ $< | |
14 | ||
15 | %.o : %.cpp | |
16 | $(CXX) -c $(CXXFLAGS) -o $@ $< | |
17 | ||
18 | clean: | |
19 | rm -f *.o *.so test_prg |