1 |
root |
1.7 |
CXX = @CXX@ |
2 |
|
|
LIBS = @LIBS@ |
3 |
|
|
CXXFLAGS = @CXXFLAGS@ |
4 |
|
|
SH_EXT = .so |
5 |
root |
1.10 |
PERL = perl |
6 |
root |
1.1 |
|
7 |
root |
1.7 |
all: Makefile libcpjit$(SH_EXT) # TODO, ELF only |
8 |
root |
1.3 |
|
9 |
root |
1.11 |
force: |
10 |
|
|
|
11 |
root |
1.4 |
clean: |
12 |
|
|
rm -f *$(SH_EXT) *.o |
13 |
|
|
|
14 |
root |
1.7 |
Makefile: Makefile.in |
15 |
|
|
./config.status |
16 |
|
|
|
17 |
root |
1.9 |
libcpjit$(SH_EXT): cpjit.C md5.C |
18 |
|
|
$(CXX) $(CXXFLAGS) -o $@ -shared -rdynamic -fPIC cpjit.C md5.C -ldl |
19 |
root |
1.3 |
|
20 |
root |
1.11 |
test: test.C cpjit.h libcpjit$(SH_EXT) force |
21 |
|
|
$(CXX) $(CXXFLAGS) -o $@ $< libcpjit$(SH_EXT) |
22 |
root |
1.8 |
LD_LIBRARY_PATH=. ./test |
23 |
root |
1.6 |
|
24 |
root |
1.3 |
cpjit.C: cpjit.h |
25 |
|
|
|
26 |
root |
1.10 |
cpjit.h: cpjit.h.in prep.pl |
27 |
|
|
$(PERL) ./prep.pl $< >$@ |