From f3f9c925687d262547d0e203ad3216fa6f46fd5d Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Sun, 22 Sep 2019 11:03:31 +0300 Subject: . --- example/makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 example/makefile (limited to 'example/makefile') diff --git a/example/makefile b/example/makefile new file mode 100644 index 0000000..de6b310 --- /dev/null +++ b/example/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