File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ libosmpbf.a: fileformat.pb.o osmformat.pb.o
19
19
$(AR ) -cr $@ fileformat.pb.o osmformat.pb.o
20
20
21
21
libosmpbf.so : fileformat.pb.o osmformat.pb.o
22
- $(CXX ) -shared -Wl,-soname,$(SONAME ) -o $@ fileformat.pb.o osmformat.pb.o
22
+ $(CXX ) $( CPPFLAGS ) $( LDFLAGS ) -shared -Wl,-soname,$(SONAME ) -o $@ fileformat.pb.o osmformat.pb.o
23
23
24
24
% .pb.o : % .pb.cc
25
- $(CXX ) $(CXXFLAGS ) -fPIC -c -o $@ $<
25
+ $(CXX ) $(CPPFLAGS ) $( CXXFLAGS ) -fPIC -c -o $@ $<
26
26
27
27
% .pb.cc ../include/osmpbf/% .pb.h : % .proto
28
28
$(PROTOC ) --proto_path=. --cpp_out=. $<
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ LDFLAGS += -L../src -pthread -lz -lprotobuf -losmpbf
12
12
all : osmpbf-outline
13
13
14
14
osmpbf-outline : osmpbf-outline.cpp
15
- $(CXX ) $(CXXFLAGS ) -o $@ $< $(LDFLAGS )
15
+ $(CXX ) $(CPPFLAGS ) $( CXXFLAGS ) -o $@ $< $(LDFLAGS )
16
16
17
17
install :
18
18
install -m 755 -d $(DESTDIR )$(PREFIX ) /bin
You can’t perform that action at this time.
0 commit comments