tweak Makefiles to use correct libpEpTransportUDP for testing

unencrypted_transport
Gernot Kranz 4 weeks ago
parent 4e8828254c
commit 2412dee138
  1. 9
      Makefile
  2. 5
      Makefile.conf
  3. 9
      src/Makefile
  4. 5
      test/Makefile

@ -1,11 +1,14 @@
.PHONY: src test install uninstall clean
.PHONY: src src-debug test install uninstall clean
all: src
src:
$(MAKE) -C src
$(MAKE) -C src DEBUG=0
test: src
src-debug:
$(MAKE) -C src DEBUG=1
test: src-debug
$(MAKE) -C test
clean:

@ -41,9 +41,4 @@ else ifneq (,$(findstring clang,$(CXX)))
CXXFLAGS+=-fcolor-diagnostics
endif
ifeq ($(DEBUG),1)
CXXFLAGS+=-g -O0
else
CXXFLAGS+=-DNDEBUG=1 -O3
endif

@ -22,6 +22,13 @@ CXXFLAGS+= -MMD -MP
# LDFLAGS+=-lpEpAdapter
#endif
DEBUG ?= 1
ifeq ($(DEBUG), 1)
CFLAGS +=-DDEBUG -g -O0
else
CFLAGS+=-DNDEBUG
endif
LDFLAGS+=-lpEpEngine
CFLAGS+= -I$(PREFIX)/include
@ -33,7 +40,7 @@ ifneq ($(MAKECMDGOALS),clean)
endif
.PHONY: all install uninstall clean
.DEFAULT_GOAL := all
.DEFAULT_GOAL := install
all: $(TARGETS)

@ -5,11 +5,12 @@
include ../Makefile.conf
LDFLAGS:=-L../src $(LDFLAGS)
LDFLAGS:=-L../src/ $(LDFLAGS)
LDLIBS=-lpEpTransportUDP -lpEpEngine
CFLAGS:=-I../src/ $(CFLAGS)
CFLAGS:= -I../src/ $(CFLAGS)
CFLAGS+= -I$(PREFIX)/include
CFLAGS+= -I$(PREFIX)/include/pEp
CFLAGS+= -DDEBUG -g
# Test
SRC_TEST=$(wildcard *.c)

Loading…
Cancel
Save