From 3ef6719f47b734b12c0b11c725b7f12e3fb3c08a Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Tue, 23 May 2017 14:19:26 +0200 Subject: fs layout updated --- code/core/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 code/core/Makefile (limited to 'code/core/Makefile') diff --git a/code/core/Makefile b/code/core/Makefile new file mode 100644 index 0000000..d3610bf --- /dev/null +++ b/code/core/Makefile @@ -0,0 +1,19 @@ +MAKE=make +CFLAGS = -I. -pthread -O3 -DECP_DEBUG +obj = core.o timer.o msgq.o +subdirs = crypto posix htable + +%.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