ponytracker/sources/Makefile

40 lines
1.8 KiB
Makefile
Raw Normal View History

linux : ponytracker-linux clean
2014-04-08 18:30:56 +02:00
mac : ponytracker-mac clean
ponytracker-mac : main.o-mac lecture.o-mac motifs.o-mac melodie.o-mac
gcc -std=c99 -L/opt/local/lib -Wall main.o lecture.o motifs.o melodie.o -o ponytracker `pkg-config --cflags --libs gtk+-3.0 gmodule-2.0` -lSDL2 -lSDL2main -lSDL2_mixer
# gcc -std=c99 -L=/home/ebrunet/temp/SDL-2.0.3-8621/installation/lib -lsdl2 -lsdl_mixer -lsdlmain -Wall main.o lecture.o motifs.o melodie.o -o ponytracker `pkg-config --cflags --libs gtk+-3.0 gmodule-2.0`
ponytracker-linux : main.o lecture.o motif.o melodie.o
gcc -std=c99 -L/opt/local/lib -Wall main.o lecture.o motifs.o melodie.o -o ponytracker `pkg-config --cflags --libs gtk+-3.0 gmodule-2.0` -lSDL2 -lSDL2main -lSDL2_mixer
main.o-mac : main.c
gcc -std=c99 -I/opt/local/include -Wall -c main.c `pkg-config --cflags --libs gtk+-3.0 gmodule-2.0`
motifs.o-mac : motifs/motifs.c motifs/motifs.h
gcc -std=c99 -I/opt/local/include -Wall -c motifs/motifs.c
melodie.o-mac : melodie/melodie.c melodie/melodie.h
gcc -std=c99 -I/opt/local/include -Wall -c melodie/melodie.c
lecture.o-mac : lecture/lecture.c lecture/lecture.h
gcc -std=c99 -I/opt/local/include -Wall -c lecture/lecture.c
# Pour linux, modifier les chemins des librairies et des include (j'ai juste fait un copier coller des chemins sur mac, je m'ai pas de quoi tester es chemins linux)
main.o-linux : main.c
gcc -std=c99 -I/opt/local/include -Wall -c main.c `pkg-config --cflags --libs gtk+-3.0 gmodule-2.0`
motifs.o-linux : motifs/motifs.c motifs/motifs.h
gcc -std=c99 -I/opt/local/include -Wall -c motifs/motifs.c
melodie.o-linux : melodie/melodie.c melodie/melodie.h
gcc -std=c99 -I/opt/local/include -Wall -c melodie/melodie.c
lecture.o-linux : lecture/lecture.c lecture/lecture.h
gcc -std=c99 -I/opt/local/include -Wall -c lecture/lecture.c
2014-04-08 18:30:56 +02:00
clean :
rm -f *.o