###
# (c) James Noble
# Makefile for myrpg
###
INSTALLDIR = ./
.SUFFIXES: .c
MAKE=make
BUILD=build
CC=gcc
C89=c89
CFLAGS=-o
source = main.c fights.c print_screen.c enter_movement.c print_activity.c wanna_quit.c
program = MyRPG

myrpg:
	$(CC) $(CFLAGS) $(program) $(source)

c89:
	$(C89) $(CFLAGS) $(program) $(source)
build:
	gcc -c -o main.o main.c
	gcc -c -o enter_movement.o enter_movement.c
	gcc -c -o fights.o fights.c
	gcc -c -o print_activity.o print_activity.c
	gcc -c -o print_screen.o print_screen.c
	gcc -c -o wanna_quit.o wanna_quit.c
link:
	gcc -o MyRPG main.o enter_movement.o fights.o print_activity.o \
			print_screen.o wanna_quit.o

.DEFAULT: 
	clean
	myrpg

clean:
	rm -f $(program)
