-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
21 lines (18 loc) · 744 Bytes
/
makefile
File metadata and controls
21 lines (18 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: game.o
cd library && make
cd graphics && make
gcc -o program $(files) -lSDL2 -lSDL2_image
files = ./graphics/classes/fighterIdle.o ./graphics/classes/mageIdle.o ./graphics/classes/rogueIdle.o ./graphics/classes/knightIdle.o \
./graphics/enemies/galactaIdle.o ./graphics/enemies/dededeIdle.o ./graphics/enemies/waddledeeIdle.o ./graphics/enemies/waddledooIdle.o ./graphics/enemies/knucklejoeIdle.o \
./graphics/enemies/bonkersIdle.o ./graphics/enemies/chefIdle.o \
./graphics/gui.o ./graphics/background.o ./graphics/display.o \
./library/characters.o ./library/items.o ./library/gameflow.o \
game.o
game.o: game.c
gcc -c game.c
run:
./program
clean:
cd library && make clean
cd graphics && make clean
rm -r -f *.o *.gch