From e5f83c17cb1d4edddad05aa3bf2ae84b8da739f6 Mon Sep 17 00:00:00 2001 From: Benedict Date: Sat, 3 Dec 2016 23:20:14 +0100 Subject: set6: added libs and Makefile --- .Makefile.common | 2 +- lib/lib6.c | 0 lib/lib6.h | 0 set6/Makefile | 9 +++++++++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 lib/lib6.c create mode 100644 lib/lib6.h create mode 100644 set6/Makefile diff --git a/.Makefile.common b/.Makefile.common index 01e3f6c..08b3161 100644 --- a/.Makefile.common +++ b/.Makefile.common @@ -1,5 +1,5 @@ ## define variables used in all makefiles -LIB=../lib/lib2.c ../lib/lib.c ../lib/lib3.c ../lib/lib4.c ../lib/sha1.c ../lib/md4.c ../lib/lib5.c +LIB=../lib/lib2.c ../lib/lib.c ../lib/lib3.c ../lib/lib4.c ../lib/sha1.c ../lib/md4.c ../lib/lib5.c ../lib/lib6.c CC=gcc CFLAGS := -g -fPIC $(CFLAGS) CLIBS=`pkg-config --cflags --libs libcrypto` -lgmp -lm diff --git a/lib/lib6.c b/lib/lib6.c new file mode 100644 index 0000000..e69de29 diff --git a/lib/lib6.h b/lib/lib6.h new file mode 100644 index 0000000..e69de29 diff --git a/set6/Makefile b/set6/Makefile new file mode 100644 index 0000000..8b0ffbd --- /dev/null +++ b/set6/Makefile @@ -0,0 +1,9 @@ +include ../.Makefile.common +COBJS=$(shell find . -type f -name "task*.c" | sed "s/\(.*\)\.c/\1.o/g") +TARGETS=$(shell find . -type f -name "task*.c" | sed "s/\(.*\)\.c/\1/g") + +all: $(TARGETS) + +clean: + @echo -e "\tDEL\t$(TARGETS)" + @rm $(TARGETS) -- cgit v1.2.3-70-g09d2