Commit 07622118 by krkane

Add new file

parent ca016a56
Showing with 29 additions and 0 deletions
#Compiler
CC = gcc
#Compilation standard
STD = -std=c99
# flags for compilation
# -Wall "all" warnings
# -Wextra additional warnings
# -Wconversion warnings for missing type casts
# -g enable debugging symbols
CFLAGS = $(STD) -Wall -Wextra -Wconversion -g -Wno-implicit-function-declaration
all: game
game: main.o gameBase.o
@echo "Linking and producing the final application"
$(CC) -o $(CFLAGS) main.o gameBase.o -o game
@chmod +x game
main.o: main.c Header.h
$(CC) $(CFLAGS) -c main.c
gameBase.o: gameBase.c Header.h
$(CC) $(CFLAGS) -c gameBase.c
clean:
@echo "Removing everything but the source files!"
rm main.o gameBase.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