Makefile 298 Bytes
SOURCES = $(wildcard *.c)
OBJETS = $(SOURCES:.c=.o)
BIBLIOTHEQUES = -L ../Liste -lListe -L ../Graphique -lgraph
EXECUTABLE = centipede
CFLAGS += -Wall -I ../Liste -I ../Graphique

all: $(EXECUTABLE)

$(EXECUTABLE): $(OBJETS)
	$(CC) -o $@ $^ $(BIBLIOTHEQUES) -lSDL

clean:
	rm -rf $(EXECUTABLE) *.o