aboutsummaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-03-16 19:33:58 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-03-16 19:33:58 +0300
commitd9f19275d0549c4b9c3402e1fd28c71627507557 (patch)
tree0f6130f1eeefc182f93c52c400f0c1b84a3a0eb9 /examples/Makefile
parentc5d69441bd43ace9d9c2b03a89aa0ed4871c288d (diff)
downloadmagi-d9f19275d0549c4b9c3402e1fd28c71627507557.tar
magi-d9f19275d0549c4b9c3402e1fd28c71627507557.tar.xz
magi-d9f19275d0549c4b9c3402e1fd28c71627507557.zip
[magi]
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile43
1 files changed, 0 insertions, 43 deletions
diff --git a/examples/Makefile b/examples/Makefile
deleted file mode 100644
index 4bf9eac..0000000
--- a/examples/Makefile
+++ /dev/null
@@ -1,43 +0,0 @@
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-# Compilation Options
-# Debug mode (allowing to debug the examples via gdb):
-# DEBUG = yes
-# Examples to build by default:
-EXAMPLES = append cookie echo upload
-# Specify your favourite C compiler here (e.g. tcc):
-CC = gcc
-
-
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-# Preparations
-# Compile under the most strict conditions:
-CFLAGS = -xc -ansi -pedantic -Wall -Wextra
-# Debug and optimisation are not compatible:
-ifeq '$(DEBUG)' 'yes'
-CFLAGS += -g -O0
-else
-CFLAGS += -O3 -static
-endif
-
-# Including magi library headers and setting linker to use it:
-INCLUDE = -I ../include
-LFLAGS = -L.. -lmagi
-# Specify library file to set it as a prerequisite for compilation:
-MAGI = ../libmagi.a
-
-
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-# Targets
-# 'make' produces all examples by default:
-default: $(EXAMPLES)
-
-# Cleaning means removing everything automatically produced:
-clean:
- rm -f $(EXAMPLES)
-
-
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-# Compilation
-# Compile executables from corresponding sources and library:
-%: %.c $(MAGI)
- $(CC) $(CFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@