Lines 4-11
INCLUDES = -I../include -I$(JAVA_HOME)/i
Link Here
|
4 |
WARNINGS = -Wall |
4 |
WARNINGS = -Wall |
5 |
# removed "-Werror -pedantic" because of dlsym() typecast problem |
5 |
# removed "-Werror -pedantic" because of dlsym() typecast problem |
6 |
|
6 |
|
7 |
CC = g++ |
7 |
CXX ?= g++ |
8 |
CFLAGS = -fPIC $(DEFINES) $(INCLUDES) $(WARNINGS) |
8 |
AR ?= ar |
|
|
9 |
CXXFLAGS += -fPIC $(DEFINES) $(INCLUDES) $(WARNINGS) |
9 |
LIBS = -L../../bin -lzkachip-highlevel -lzkachip-lowlevel |
10 |
LIBS = -L../../bin -lzkachip-highlevel -lzkachip-lowlevel |
10 |
|
11 |
|
11 |
SOURCES = frontend.cpp |
12 |
SOURCES = frontend.cpp |
Lines 15-30
OBJECTS = ../../bin/frontend.o
Link Here
|
15 |
.SUFFIXES: .cpp .o |
16 |
.SUFFIXES: .cpp .o |
16 |
|
17 |
|
17 |
../../bin/%.o: %.cpp |
18 |
../../bin/%.o: %.cpp |
18 |
$(CC) -c -o $@ $(CFLAGS) $< |
19 |
$(CXX) -c -o $@ $(CXXFLAGS) $(LDFLAGS) $< |
19 |
|
20 |
|
20 |
all: depend ../../bin/libhbci4java-card-linux.so |
21 |
all: depend ../../bin/libhbci4java-card-linux.so |
21 |
|
22 |
|
22 |
depend: Makefile.depend |
23 |
depend: Makefile.depend |
23 |
|
24 |
|
24 |
Makefile.depend: $(SOURCES) |
25 |
Makefile.depend: $(SOURCES) |
25 |
for file in $(SOURCES); do echo -n "../../bin/"; gcc $(CFLAGS) -MM $$file; done >Makefile.depend |
26 |
for file in $(SOURCES); do echo -n "../../bin/"; $(CXX) $(CXXFLAGS) $(LDFLAGS) -MM $$file; done >Makefile.depend |
26 |
|
27 |
|
27 |
../../bin/libhbci4java-card-linux.so: $(OBJECTS) ../../bin/libzkachip-highlevel.a ../../bin/libzkachip-lowlevel.a |
28 |
../../bin/libhbci4java-card-linux.so: $(OBJECTS) ../../bin/libzkachip-highlevel.a ../../bin/libzkachip-lowlevel.a |
28 |
$(CC) -fPIC -shared -o $@ $(OBJECTS) $(LIBS) |
29 |
$(CXX) $(LDFLAGS) -fPIC -shared -o $@ $(OBJECTS) $(LIBS) |
29 |
|
30 |
|
30 |
include Makefile.depend |
31 |
include Makefile.depend |