diff options
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 $* + |
