Commit bd0bff8b authored by Ivo Júnior's avatar Ivo Júnior
Browse files

Makefile terminado, programa completo

parent f7eb74ff
all: utils.o timehelper.o firefly.o menu.o physics.o rockford.o maps.o game.o main.o
gcc utils.o timehelper.o firefly.o menu.o physics.o rockford.o maps.o game.o main.o -o BoulderDash -l curses -Wall
main.o: src/main.c
gcc -c src/main.c
game.o: src/game.c
gcc -c src/game.c
maps.o: src/maps.c
gcc -c src/maps.c
timehelper.o: src/timehelper.c
gcc -c src/timehelper.c
firefly.o: src/firefly.c
gcc -c src/firefly.c
menu.o: src/menu.c
gcc -c src/menu.c
physics.o: src/physics.c
gcc -c src/physics.c
rockford.o: src/rockford.c
gcc -c src/rockford.c
utils.o: src/utils.c
gcc -c src/utils.c
clean:
rm -fr *.o
CFLAGS = -Wall
LFLAGS = -l curses
OBJS = utils.o entity.o timehelper.o firefly.o menu.o physics.o rockford.o maps.o game.o main.o
PROG = BoulderDash
CXX = gcc
all: $(PROG)
%.o: src/%.c
$(CXX) $(CFLAGS) -c -s $<
$(PROG): $(OBJS)
$(CXX) $(OBJS) -o $(PROG) $(LFLAGS)
clean:
rm $(PROG) *.o
......@@ -6,9 +6,7 @@ export TERM=xterm-256color
xdotool key Ctrl+minus
xdotool key Ctrl+minus
gcc src/*.c -Wall -o temp -l curses
./temp
rm temp
./BoulderDash
xdotool key Ctrl+0
......
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 to comment