2 @echo Makefile for compiling pineappletracker.exe with MinGW
5 set LIB_CURSES=-lpdcurses
6 set LIB_SDL=-lSDLmain -lSDL
12 set CFLAGS=-march=pentiumpro -mthreads -std=c99 -O2 %INCLUDES% %DEFINES%
13 set LIBS=%LIB_CURSES% %LIB_SDL% %LIB_CACA%
15 set COMPILE_CMD=%CC% -c %CFLAGS%
19 rem This is for making the icon.. got it from http://blog.stranadurakov.com/2009/04/27/icon-and-version-information-resource-file/
20 windres resource.rc -O coff -o resource.o
22 %COMPILE_CMD% actions.c
24 echo "\ _ / _. _ _|_ o _ ._ _ _"
25 echo " \ (_) / (_| (_ |_ | (_) | | _> o (_"
28 echo "\ _ / ._ _ _ _| _ _ _"
29 echo " \ (_) / | | | (_) (_| (/_ _> o (_"
33 echo " \ (_) / (_| |_| | o (_"
36 %COMPILE_CMD% musicchip_file.c
39 echo "\ _ / _ |_ o ._ _"
40 echo " \ (_) / (_ | | | |_) o (_"
43 rem %COMPILE_CMD% player.c %LIB_SDL% %LIB_CACA%
44 rem echo "\ _ / ._ | _. _ ._ _"
45 rem echo " \ (_) / |_) | (_| \/ (/_ | o (_"
48 rem %CC% -s -o player.exe *.o %CFLAGS% %LIB_SDL% %LIB_CACA%
49 rem rem figfont: speed
50 rem echo ___ _________ ______
51 rem echo __ \ ____________/_ ___________ ______ _____ ______________
52 rem echo ___ \ _ __ ____/_/ ___ __ __ /_ __ `__ / / _ _ __ ___/
53 rem echo ____ \/ /_/ __/_/ __ /_/ _ / / /_/ /_ /_/ // ___ /
54 rem echo ______\____//_/ _ .___//_/ \__,_/ _\__, / \___//_/
58 echo "\ _ / ._ _ _. o ._ _"
59 echo " \ (_) / | | | (_| | | | o (_"
61 set WORKAROUND=-Wl,-u,_WinMain@16
62 %CC% -s -o pppt.exe main.o gui.o chip.o modes.o actions.o musicchip_file.o resource.o %WORKAROUND% %CFLAGS% %LIB_SDL% %LIB_CURSES%
63 echo ___ _________ _____
64 echo __ \ ____________/_ __________________________ /_
65 echo ___ \ _ __ ____/_/ ___ __ ___ __ ___ __ _ __/
66 echo ____ \/ /_/ __/_/ __ /_/ __ /_/ __ /_/ / /_
67 echo ______\____//_/ _ .___/_ .___/_ .___/\__/