| 1 |
# |
| 2 |
# WARNING: do not run this directly, it should be run by the main Makefile |
| 3 |
|
| 4 |
include ../../Makefile.defs |
| 5 |
auto_gen= |
| 6 |
NAME=phonenum.so |
| 7 |
|
| 8 |
CXX?=g++ |
| 9 |
LD?=g++ |
| 10 |
CSTDVER?="c++17" |
| 11 |
|
| 12 |
LIBS+=-L$(LOCALBASE)/lib cphonenumber.o -lphonenumber -lgeocoding |
| 13 |
DEFS+=-I$(LOCALBASE)/include |
| 14 |
|
| 15 |
CXXFLAGS=$(CFLAGS:-Wno-deprecated option=) |
| 16 |
CXXFLAGS+=-Wno-write-strings -Wno-deprecated -Wno-unused-function -Wno-sign-compare -Wno-strict-aliasing |
| 17 |
|
| 18 |
include ../../Makefile.modules |
| 19 |
|
| 20 |
cphonenumber.o: cphonenumber.cpp cphonenumber.h |
| 21 |
@echo "Compiling $<" |
| 22 |
$(CXX) -std=$(CSTDVER) $(CXXFLAGS) $(CFLAGS) $(C_DEFS) $(DEFS) -c $< -o $@ |
| 23 |
|
| 24 |
phonenum.so: cphonenumber.o |
| 25 |
|
| 26 |
modclean: |
| 27 |
-@rm -f cphonenumber.o |
| 28 |
|
| 29 |
clean clean-modules: modclean |
| 30 |
|
| 31 |
proper realclean distclean maintainer-clean: modclean |