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