summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-02-14 18:03:09 (EST)
committer P. J. McDermott <pjm@nac.net>2013-02-14 18:03:09 (EST)
commit80191b41352ad20493fb62e8f3683d69133d0d24 (patch)
treecb77e93dfe476d9535ca48e732a98aae9a780ba4 /Makefile
downloadoverworld-rpg-80191b41352ad20493fb62e8f3683d69133d0d24.zip
overworld-rpg-80191b41352ad20493fb62e8f3683d69133d0d24.tar.gz
overworld-rpg-80191b41352ad20493fb62e8f3683d69133d0d24.tar.bz2
Initial commit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3efdec5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+.SUFFIXES =
+.SUFFIXES = .c .h .o
+
+CC = gcc
+CFLAGS = -Wall -Wextra -Werror -g
+
+SRCS = src/main.c src/init.c src/logging.c src/image.c \
+ src/base64.c src/compression.c src/tmx.c
+OBJS = $(SRCS:.c=.o)
+LIBS = sdl SDL_image zlib expat
+
+all: sdlex
+
+sdlex: $(OBJS)
+ $(CC) $(LDFLAGS) -o sdlex $$(pkg-config --libs $(LIBS)) $(OBJS)
+
+.c.o:
+ $(CC) -c $(CFLAGS) -o $*.o $$(pkg-config --cflags $(LIBS)) $<
+
+clean:
+ rm -f $(OBJS) sdlex