-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.win
42 lines (31 loc) · 1.15 KB
/
Makefile.win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Project: Projet1
# Makefile created by Dev-C++ 4.9.9.2
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES = Projet1_private.res
OBJ = main.o jeu.o level.o edit.o $(RES)
LINKOBJ = main.o jeu.o level.o edit.o $(RES)
LIBS = -L"C:/Dev-Cpp/lib" -mwindows -lmingw32 -lSDLmain -lSDL -lSDL_image
INCS = -I"C:/Dev-Cpp/include"
CXXINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
BIN = Projet1.exe
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)
RM = rm -f
.PHONY: all all-before all-after clean clean-custom
all: all-before Projet1.exe all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CC) $(LINKOBJ) -o "Projet1.exe" $(LIBS)
main.o: main.c
$(CC) -c main.c -o main.o $(CFLAGS)
jeu.o: jeu.c
$(CC) -c jeu.c -o jeu.o $(CFLAGS)
level.o: level.c
$(CC) -c level.c -o level.o $(CFLAGS)
edit.o: edit.c
$(CC) -c edit.c -o edit.o $(CFLAGS)
Projet1_private.res: Projet1_private.rc
$(WINDRES) -i Projet1_private.rc --input-format=rc -o Projet1_private.res -O coff