From a93c561921b79e5f27b986292fe70dce1879f91e Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 21 Feb 2020 18:09:22 +0300 Subject: [magi] --- examples/Makefile | 11 +++-------- examples/fcgi.c | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'examples') diff --git a/examples/Makefile b/examples/Makefile index 8f5282c..28e9bed 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -2,14 +2,14 @@ # Compilation Options # Debug mode (allowing to debug the examples via gdb): # DEBUG = yes +# Examples to build by default: +EXAMPLES = append cookie upload echo # Specify your favourite C compiler here (e.g. tcc): CC = gcc # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Preparations -EXAMPLES = append cookie upload echo - # Compile under the most strict conditions: CFLAGS = -xc -ansi -pedantic -Wall # Debug and optimisation are not compatible: @@ -22,8 +22,7 @@ endif # Including magi library headers and setting linker to use it: INCLUDE = -I ../include LFLAGS = -L.. -lmagi - -# Specification of library file to produce it, if not provided: +# Specify library file to set it as a prerequisite for compilation: MAGI = ../libmagi.a @@ -42,7 +41,3 @@ clean: # Compile executables from corresponding sources and library: %: %.c $(MAGI) $(CC) $(CFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@ - -# Run make for library to produce it: -$(MAGI): - cd ..; $(MAKE) diff --git a/examples/fcgi.c b/examples/fcgi.c index bb5645e..de2f525 100644 --- a/examples/fcgi.c +++ b/examples/fcgi.c @@ -1,4 +1,4 @@ -/* * * TODO * * */ +/* * * TODO -- not valid yet * * */ #include #include #include -- cgit v1.2.3