From 25de5e761daab8b897a4f09ff8503e6f43c299f9 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 3 May 2017 21:10:08 +0200 Subject: initial commit --- code/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 code/Makefile (limited to 'code/Makefile') diff --git a/code/Makefile b/code/Makefile new file mode 100644 index 0000000..023fa7a --- /dev/null +++ b/code/Makefile @@ -0,0 +1,19 @@ +MAKE=make +CFLAGS = -I. -pthread -O3 -DECP_DEBUG +obj = core.o timer.o msgq.o init.o +subdirs = crypto posix htable test + +%.o: %.c %.h + $(CC) $(CFLAGS) -c $< + +all: $(obj) + $(AR) rcs libecpcore.a $(obj) + for i in $(subdirs); do \ + (cd $$i && $(MAKE) && cd ..) || exit; \ + done + +clean: + for i in $(subdirs); do \ + (cd $$i && $(MAKE) clean && cd ..) || exit; \ + done + rm -f *.o *.a \ No newline at end of file -- cgit v1.2.3