diff options
| author | Benedict <benedict@0xb8000.de> | 2016-08-04 21:08:41 +0200 |
|---|---|---|
| committer | Benedict <benedict@0xb8000.de> | 2017-02-21 13:00:25 +0100 |
| commit | 7060b54d2385018fc5f7c081dfd0630db3b402e2 (patch) | |
| tree | c2450217294a2cad61e475f71eeac11fa4387210 /.Makefile.common | |
| parent | 4e0e29f48f797206a21aa5ba7855ffde72e85cf9 (diff) | |
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".
Diffstat (limited to '.Makefile.common')
| -rw-r--r-- | .Makefile.common | 10 |
1 files changed, 10 insertions, 0 deletions
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 $* + |
