summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2014-02-24 03:14:53 +0100
committerDirk Engling <erdgeist@erdgeist.org>2014-02-24 03:14:53 +0100
commit2a185f889470f9bfa049b1610900536309aded5a (patch)
treed127a4d9b38adf9f8aa0c65abb8f10320f18a220 /Makefile
parent2f724b60ce0a8323dd4173b4651661d04b0c94f9 (diff)
Use make the way it was intended
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..65d7bc7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
1OBJECTS=extract_version_1 extract_version_2 extract_version_3 split_version_2 map_coords convert_coords
2BINARIES=$(addprefix bin/,$(OBJECTS))
3CFLAGS+=-Wextra -O3
4LDFLAGS+=-lz -lm
5VPATH=src/export
6
7.SUFFIXES: .c
8
9all: $(BINARIES)
10
11bin/% : %.c mystdlib.c
12 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
13
14.PHONY: clean
15clean:
16 @rm -f $(BINARIES)