Commit 085298db by gerann

Update Makefile

parent 33f6c6c3
Showing with 9 additions and 3 deletions
......@@ -13,9 +13,9 @@ CFLAGS = $(STD) -Wall -Wextra -Wconversion -g -Wno-implicit-function-declaration
all: game
game: main.o gameBase.o
game: main.o gameBase.o loader.o
@echo "Linking and producing the final application"
$(CC) -o $(CFLAGS) main.o gameBase.o -o game
$(CC) -o $(CFLAGS) main.o gameBase.o loader.o -o game
@chmod +x game
main.o: main.c Header.h
......@@ -24,6 +24,12 @@ main.o: main.c Header.h
gameBase.o: gameBase.c Header.h
$(CC) $(CFLAGS) -c gameBase.c
loader.o: loader.c Header.h
$(CC) $(CFLAGS) -c loader.c
clean:
@echo "Removing everything but the source files!"
rm main.o gameBase.o game
rm main.o gameBase.o loader.o game
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment