summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2019-09-01 21:54:50 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2019-09-01 21:54:50 +0200
commit235cbc46a64ac63fd53df8a39a8681a8fcea2848 (patch)
tree3d792f5e4a1bb7f8054948b74b389be1a128b342 /Makefile
downloaddemoscene-eo-235cbc46a64ac63fd53df8a39a8681a8fcea2848.tar.gz
demoscene-eo-235cbc46a64ac63fd53df8a39a8681a8fcea2848.tar.bz2
demoscene-eo-235cbc46a64ac63fd53df8a39a8681a8fcea2848.zip
Initial import. First working main loop.
Switching from scene to scene is done. Loading image to SDL, download SDL texture from VRAM to RAM is done. caca background from SDL texture is "done". GL drawing is not yet tried. Considering OpenGL3 + shaders.
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..41a09e5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+CFLAGS=-Wall -Werror -g
+PKGLIBS=caca sdl2 glu
+
+all: demoscene-eo
+
+server: demoscene-eo
+ CACA_DRIVER=raw CACA_GEOMETRY=80x25 ./demoscene-eo | cacaserver
+
+demoscene-eo: src/main.c src/main.h $(wildcard src/scene*.[ch]) Makefile
+ pkg-config --libs --cflags $(PKGLIBS)
+ gcc $(CFLAGS) `pkg-config --libs --cflags $(PKGLIBS)` src/main.c $(wildcard src/scene*.c) -o $@
+
+clean:
+ rm -f demoscene-eo
+
+.PHONY=all clean run