| 1 |
root |
1.7 |
CXX = @CXX@ |
| 2 |
|
|
LIBS = @LIBS@ |
| 3 |
|
|
CXXFLAGS = @CXXFLAGS@ |
| 4 |
|
|
SH_EXT = .so |
| 5 |
root |
1.1 |
|
| 6 |
root |
1.7 |
all: Makefile libcpjit$(SH_EXT) # TODO, ELF only |
| 7 |
root |
1.3 |
|
| 8 |
root |
1.4 |
clean: |
| 9 |
|
|
rm -f *$(SH_EXT) *.o |
| 10 |
|
|
|
| 11 |
root |
1.7 |
Makefile: Makefile.in |
| 12 |
|
|
./config.status |
| 13 |
|
|
|
| 14 |
root |
1.4 |
libcpjit$(SH_EXT): cpjit.C |
| 15 |
root |
1.7 |
$(CXX) $(CXXFLAGS) -o $@ -shared -rdynamic -fPIC $^ -ldl |
| 16 |
root |
1.3 |
|
| 17 |
root |
1.6 |
test: test.C cpjit.h libcpjit$(SH_EXT) |
| 18 |
root |
1.7 |
$(CXX) $(CXXFLAGS) -o $@ $^ libcpjit$(SH_EXT) |
| 19 |
root |
1.6 |
|
| 20 |
root |
1.3 |
cpjit.C: cpjit.h |
| 21 |
|
|
|
| 22 |
root |
1.1 |
cpjit.h: cpjit.h.PL |
| 23 |
|
|
./cpjit.h.PL |