Skip to content
Snippets Groups Projects
Commit ae6d0962 authored by YANG TIANYI's avatar YANG TIANYI
Browse files

Makefile pour install_dir et sdl2.o

parent b68c65b1
Branches
No related merge requests found
CFLAGS += -Wall -Wextra -std=c99
LDFLAGS += -lm
LDFLAGS += -lm -lSDL2
main: main.o grid.o player.o
gcc main.o grid.o player.o $(LDFLAGS) -o main
main: main.o grid.o player.o sdl2.o
gcc main.o grid.o player.o sdl2.o $(LDFLAGS) -o $@
main.o: main.c grid.h player.h
gcc main.c $(CFLAGS) -c -o main.o
gcc main.c $(CFLAGS) -c -g -o $@
grid.o: grid.c grid.h player.h
gcc grid.c $(CFLAGS) -c -o grid.o
gcc grid.c $(CFLAGS) -c -g -o $@
player.o: player.c grid.h player.h
gcc player.c $(CFLAGS) -c -o player.o
gcc player.c $(CFLAGS) -c -g -o $@
sdl2.o: sdl2.c sdl2.h
gcc sdl2.c $(CFLAGS) -c -g -o $@
clean:
rm -r *.o main html *.gz
......@@ -19,5 +22,9 @@ clean:
doc:
doxygen
SDL:
cd SDL2 && ./configure --prefix=$PWD/../install_dir
cd SDL2 && make install -j16
archive:
tar -cf sokoban.tar.gz Doxyfile grid.c grid.h level1.txt main.c makefile player.c player.h README.md
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment