* Wrote about that one time I got really drunk and tried to put every global variable...
[pineappletracker.git] / Makefile
blob7354393b7babd6400ac4a61c92bd099770f61486
1 CC = gcc
2 VERSION = alpha-mega
3 CFLAGS = -std=c99 -O2 -Wall $(SDL_CFLAGS) $(NCURSES_CFLAGS)
5 SDL_CFLAGS := $(shell pkg-config --cflags sdl)
6 NCURSES_CFLAGS := $(shell ncurses5-config --cflags)
8 LIBS := -O2 $(shell pkg-config --libs sdl) \
9 $(shell ncurses5-config --libs) \
10 $(shell pkg-config --libs caca) #\
11 #$(shell pkg-config --libs jack)
13 all: pineapple-tracker player
15 pineapple-tracker: main.o oldchip.o gui.o modes.o actions.o musicchip_file.c conf_file.c
16 $(CC) -o $@ $^ ${LIBS}
18 player: player.o oldchip.o gui.o modes.o actions.o musicchip_file.c conf_file.o
19 $(CC) -o $@ $^ ${LIBS}
21 %.o: %.c pineapple.h gui.h musicchip_file.h conf_file.h Makefile
23 .PHONY:
24 clean
25 clean:
26 @echo "clean ..."
27 @rm -f *.o