mirror of https://github.com/sipwise/rtpengine.git
Required addition of include/ directory for headers shared between daemon and tests Change-Id: Ib25504f4d7f4baa917efcdc0ef78b6cc89439827pull/545/head
parent
8c770b9e05
commit
db2882ca78
@ -1,38 +0,0 @@
|
||||
|
||||
##
|
||||
## Build daemon/
|
||||
## cd tests/
|
||||
## make -f Makefile.aes, output is binary t_crypt
|
||||
## run: ./t_crypt
|
||||
|
||||
CC = gcc
|
||||
|
||||
CPPFLAGS = -I../daemon -I../lib
|
||||
OBJS_DIR = ../daemon/
|
||||
|
||||
OBJS = crypto.o log.o loglib.o
|
||||
|
||||
LDLIBS = $(shell pkg-config --libs glib-2.0)
|
||||
LDLIBS += $(shell pkg-config --libs openssl)
|
||||
|
||||
CFLAGS = -g $(shell pkg-config --cflags glib-2.0) -D_GNU_SOURCE
|
||||
|
||||
%.d: %.c
|
||||
@set -e; rm -f $@; \
|
||||
$(CC) -M $(CPPFLAGS) $(shell pkg-config --cflags glib-2.0) -D_GNU_SOURCE $< > $@.$$$$; \
|
||||
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
|
||||
rm -f $@.$$$$
|
||||
|
||||
all: t_crypt
|
||||
|
||||
sources = t_crypt.c
|
||||
|
||||
include $(sources:.c=.d)
|
||||
|
||||
t_crypt: t_crypt.o
|
||||
gcc $(LDFLAGS) -o $@ $< $(addprefix $(OBJS_DIR), $(OBJS)) $(LDLIBS)
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
-rm -f t_crypt t_crypt.o
|
||||
Loading…
Reference in new issue