at last sprites "work"
[ld45_start_nothing] / tools / csprite / Makefile
diff --git a/tools/csprite/Makefile b/tools/csprite/Makefile
new file mode 100644 (file)
index 0000000..fa1448d
--- /dev/null
@@ -0,0 +1,13 @@
+src = $(wildcard src/*.c)
+obj = $(src:.c=.o)
+bin = csprite
+
+CFLAGS = -pedantic -Wall -g
+LDFLAGS = -lpng -lz
+
+$(bin): $(obj)
+       $(CC) -o $@ $(obj) $(LDFLAGS)
+
+.PHONY: clean
+clean:
+       rm -f $(obj) $(bin)