CFLAGS := -Wall $(CFLAGS) #CFLAGS := -Wall -Werror -g -DDEBUG $(CFLAGS) PKGLIBS:= caca sdl2 glu all: demoscene-eo server: demoscene-eo xterm -e $(SHELL) -c "sleep 1; nc -v localhost 51914; exec $(SHELL)" & CACA_DRIVER=raw CACA_GEOMETRY=80x24 ./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