summaryrefslogtreecommitdiff
path: root/Makefile
blob: b655db00372e50685f11c8daeae299e45b50e359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS=-Wall -Werror -g -DDEBUG
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) -pthread -o $@

clean:
	rm -f demoscene-eo

.PHONY=all clean run