From 13b65f01132c41be9ab8d9f92c2c5ca605c366d8 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Sat, 29 May 2021 14:24:31 +0200 Subject: changed repo structure and commited releease files such that default docker-compose worklow commands work in testvm --- src/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/Makefile (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..d7732b3 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,21 @@ +CFLAGS = -g -I . + +# fortify source code +CFLAGS += -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 +LDFLAGS = -Wl,-z,now -Wl,-z,relro + +.PHONY: all clean + +all: build/stldoctor + +clean: + rm -rf build + +build: + mkdir build + +build/%.o: %.c %.h | build + $(CC) -c -o $@ $< $(CFLAGS) $(LDLIBS) + +build/stldoctor: build/$(PREFIX)stlfile.o build/$(PREFIX)util.o $(PREFIX)main.c | build + $(CC) -o $@ $^ $(CFLAGS) $(LDLIBS) -- cgit v1.2.3-71-gd317