test/Makefile
branchsync
changeset 3169 86b78a45d1e9
parent 3166 fe040af3f305
child 3180 f7ce02c58571
     1.1 --- a/test/Makefile	Fri Nov 30 18:21:59 2018 +0100
     1.2 +++ b/test/Makefile	Mon Dec 03 12:26:02 2018 +0100
     1.3 @@ -17,13 +17,14 @@
     1.4  OBJS := $(addsuffix .o,$(basename $(SRCS)))
     1.5  DEPS := $(OBJS:.o=.d)
     1.6  
     1.7 -INC_DIRS := ./include /usr/local/include 
     1.8 +INC_DIRS := ./include /usr/local/include ../src ../sync ../asn.1
     1.9  INC_FLAGS := $(addprefix -I,$(INC_DIRS)) $(GPGME_INC) $(CPPUNIT_INC)
    1.10  
    1.11  LDFLAGS += -L/usr/local/lib
    1.12  
    1.13  CFLAGS += -Wno-deprecated
    1.14  CXXFLAGS += -Wno-deprecated
    1.15 +CFLAGS:=$(filter-out -Wall,$(CFLAGS))
    1.16  
    1.17  LDFLAGS+= $(ETPAN_LIB) $(CPPUNIT_LIB) -L../asn.1 -L../src
    1.18  LDLIBS+= -letpan -lpEpEngine -lstdc++ -lasn1
    1.19 @@ -34,6 +35,7 @@
    1.20  
    1.21  ifeq ($(OPENPGP),NETPGP)
    1.22  	LDLIBS+= -lnetpgp
    1.23 +	CFLAGS+= -DUSE_NETPGP
    1.24  ifeq ($(BUILD_FOR),Linux)
    1.25  	LDLIBS+= -ltre
    1.26  endif
    1.27 @@ -88,8 +90,11 @@
    1.28  
    1.29  all: suitemaker $(TARGET) test_home_ scripts
    1.30  	
    1.31 +%.o: %.cc
    1.32 +	$(CXX) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
    1.33 +
    1.34  $(TARGET): $(OBJS)
    1.35 -	$(CXX) $(CPPFLAGS) $(LDFLAGS) $(OBJS) $(LDFLAGS) $(LDLIBS) -o $@
    1.36 +	$(CXX) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(OBJS) $(LDFLAGS) $(LDLIBS) -o $@
    1.37  
    1.38  .PHONY: suitemaker
    1.39  suitemaker: