From 7060b54d2385018fc5f7c081dfd0630db3b402e2 Mon Sep 17 00:00:00 2001 From: Benedict Date: Thu, 4 Aug 2016 21:08:41 +0200 Subject: updated Makefile structure Copy Makefile just in all setX directories and it should all work fine. Get rid of the nasty "adding each target seperatly". --- .Makefile.common | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .Makefile.common (limited to '.Makefile.common') diff --git a/.Makefile.common b/.Makefile.common new file mode 100644 index 0000000..b4c5ab3 --- /dev/null +++ b/.Makefile.common @@ -0,0 +1,10 @@ +## define variables used in all makefiles +LIB=../lib/lib2.c ../lib/lib.c ../lib/lib3.c +CC=gcc +CFLAGS := -g $(CFLAGS) +CLIBS=`pkg-config --cflags --libs libcrypto` + +%: %.c + @echo -e "\tCC\t $<" + @$(CC) $(CFLAGS) $< $(LIB) $(CLIBS) -o $* + -- cgit v1.2.3-70-g09d2