From b0a358a5f2ee27c052c163606a20135f37761884 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 11 Oct 2019 14:35:34 +0300 Subject: . --- examples/makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 examples/makefile (limited to 'examples/makefile') diff --git a/examples/makefile b/examples/makefile new file mode 100644 index 0000000..de6b310 --- /dev/null +++ b/examples/makefile @@ -0,0 +1,24 @@ +# Uncomment following to enable debug mode: +# DEBUG = yes + +CC = gcc +EXAMPLES = append cookie upload + +CFLAGS = -xc -ansi -pedantic -Wall +ifeq '$(DEBUG)' 'yes' +CFLAGS += -g -O0 +else +CFLAGS += -O3 +endif + +INCLUDE = -I ../src +LFLAGS = -L.. -lmagi + + +default: $(EXAMPLES) + +%: %.c + $(CC) $(CFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@ + +clean: + rm -f $(EXAMPLES) -- cgit v1.2.3