2016-04-06 15:10:55 +02:00
|
|
|
CC=gcc
|
2016-04-22 12:00:29 +02:00
|
|
|
CFLAGS=-Wall -g -std=c99 -c
|
|
|
|
#-lm `sdl-config --cflags --libs` -lSDL_ttf
|
|
|
|
LDFLAGS=-std=c99 -lm `sdl-config --cflags --libs` -lSDL_ttf -lSDL_gfx -lSDL_mixer
|
2016-04-06 15:10:55 +02:00
|
|
|
EXEC=bin/hex
|
2016-04-22 12:00:29 +02:00
|
|
|
SRC=src/hex.c src/affichage_plateau.c src/action_plateau.c src/affichage_menu_principal.c src/window.c src/param.c src/en_jeu.c src/menu_principal.c src/draw.c src/action_menu_principal.c
|
2016-04-06 15:10:55 +02:00
|
|
|
#$(wildcard src/*.c)
|
|
|
|
OBJ=$(SRC:.c=.o)
|
|
|
|
|
|
|
|
all: $(EXEC)
|
|
|
|
|
|
|
|
src/%.o: src/%.c
|
|
|
|
$(CC) -o $@ $< $(CFLAGS)
|
|
|
|
|
|
|
|
$(EXEC): $(OBJ)
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
mv src/*.o obj/
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf src/*.o $(EXEC)
|