Skip to content
Snippets Groups Projects
Commit aef58d48 authored by marouaneYATIME's avatar marouaneYATIME
Browse files

ajout de deuxieme version

parent a8c15751
No related branches found
No related tags found
No related merge requests found
Showing with 1990 additions and 0 deletions
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MakefileSettings">
<option name="linkedExternalProjectsSettings">
<MakefileProjectSettings>
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="version" value="2" />
</MakefileProjectSettings>
</option>
</component>
<component name="MakefileWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
</project>
\ No newline at end of file
{
"C_Cpp.errorSquiggles": "Disabled"
}
\ No newline at end of file
File added
V2/IMG/background.bmp

225 KiB

This diff is collapsed.
V2/IMG/bullet.bmp

330 B

V2/IMG/finish_line.bmp

7.08 KiB

V2/IMG/fire.bmp

1.36 KiB

V2/IMG/fire.png

122 KiB

V2/IMG/hills.png

10.7 KiB

V2/IMG/meteorite.bmp

3.05 KiB

V2/IMG/road.bmp

2.08 MiB

V2/IMG/seamless space.bmp

422 KiB

V2/IMG/space-background.bmp

563 KiB

V2/IMG/spaceship.bmp

3.05 KiB

V2/IMG/straight.v283.png

21.6 KiB

V2/IMG/voiture.bmp

39.2 KiB

CFLAGS = -Wall -O3 `sdl2-config --cflags`
LDFLAGS = -m64 `sdl2-config --libs` -lSDL2_ttf -lm
INC = sdl2.h logic.h graphics.h const.h data.h sdl2-ttf.h event.h
SRC = main.c sdl2.c logic.c graphics.c data.c sdl2-ttf.c event.c
OBJ = $(SRC:%.c=%.o)
PROG = fastcar
%.o: %.c $(INC)
gcc $(CFLAGS) -c $<
fastcar: $(OBJ)
gcc $(CFLAGS) $(OBJ) $(LDFLAGS) -o $@
doc: $(PROG)
doxygen ./$(PROG)
make -C latex
clean:
rm -f *~ *.o $(PROG)
rm -rf latex html
CFLAGS = -Wall -O3 -Dmain=SDL_main
LDFLAGS = -m64 -lm -lmingw32 -lSDL2main -lSDL2 -lSDL2_ttf
SDL2_INCLUDE_DIR = C:\SDL2-2.0.12\x86_64-w64-mingw32\include
SDL2_LIBRARIES_DIR = C:\SDL2-2.0.12\x86_64-w64-mingw32\lib
INC = sdl2.h logic.h graphics.h const.h data.h sdl2-ttf.h event.h
SRC = main.c sdl2.c logic.c graphics.c data.c sdl2-ttf.c event.c
OBJ = $(SRC:%.c=%.o)
PROG = fastcar.exe
%.o: %.c $(INC)
gcc $(CFLAGS) -c $< -I $(SDL2_INCLUDE_DIR)
$(PROG): $(OBJ)
gcc $(CFLAGS) $(OBJ) $(LDFLAGS) -o $@ -L $(SDL2_LIBRARIES_DIR)
doc: $(PROG)
doxygen $(PROG)
.PHONY: clean
clean:
del /f /q *.o *~ $(PROG)
rd /s /q latex html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment