summaryrefslogtreecommitdiff
path: root/meme/Makefile
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2014-09-12 02:54:30 (GMT)
committerWerner Almesberger <werner@almesberger.net>2014-09-12 03:13:49 (GMT)
commit2bc5b2f3ab23a4f75bbb8c23cf437519bb332808 (patch)
treeae092628f305c449572ce3f5304e6b3164e77e68 /meme/Makefile
parente41c8e654bbe68360aec22b35b424a8849947a98 (diff)
downloadmisc-2bc5b2f3ab23a4f75bbb8c23cf437519bb332808.zip
misc-2bc5b2f3ab23a4f75bbb8c23cf437519bb332808.tar.gz
misc-2bc5b2f3ab23a4f75bbb8c23cf437519bb332808.tar.bz2
measmesh/: renamed to meme/
Too much typing ;-)
Diffstat (limited to 'meme/Makefile')
-rw-r--r--meme/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/meme/Makefile b/meme/Makefile
new file mode 100644
index 0000000..be00b3b
--- /dev/null
+++ b/meme/Makefile
@@ -0,0 +1,31 @@
+#
+# Makefile - Build Measmesh
+#
+# Written 2014 by Werner Almesberger
+# Copyright 2014 by Werner Almesberger
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+
+include Makefile.c-common
+
+CFLAGS = -Wall -Wshadow -g -O9
+OBJS = main.o stl.o mesh.o gui.o
+CFLAGS += $(shell sdl-config --cflags)
+LDLIBS = $(shell sdl-config --libs) -lSDL_gfx -lm
+
+NAME = meme
+
+
+.PHONY: all clean spotless
+
+all:: $(NAME)
+
+$(NAME): $(OBJS)
+ $(CC) $(LDFLAGS) -o $(NAME) $(OBJS) $(LDLIBS)
+
+spotless: clean
+ rm -f $(NAME)