a.exe : main.o ship.o bullet.o FlightPattern.o 
	g++ -o a.exe main.o ship.o bullet.o FlightPattern.o  -laldmd -ldumbd -lalleg
main.o : main.cpp FlightPattern.h
	g++ -c main.cpp -Wall
ship.o : ship.cpp ship.h FlightPattern.h
	g++ -c ship.cpp -Wall
bullet.o : bullet.cpp bullet.h FlightPattern.h
	g++ -c bullet.cpp -Wall
FlightPattern.o : FlightPattern.cpp FlightPattern.h
	g++ -c FlightPattern.cpp -Wall
all : objects
	g++ -o a.exe main.o ship.o bullet.o FlightPattern.o -lalleg
release : objects graphics help
	g++ -o Planetfell.exe main.o ship.o bullet.o FlightPattern.o -lalleg
	move Planetfell.exe h:\Planetfell
objects :
	g++ -c main.cpp -Wall
	g++ -c ship.cpp -Wall
	g++ -c bullet.cpp -Wall
	g++ -c FlightPattern.cpp -Wall
	
graphics :
	del h:\planetfell\graphics.bmp
	copy graphics.bmp h:\planetfell
help :
	del h:\planetfell\help.txt
	copy help.txt h:\planetfell
joy : joycon.c
	gcc -c joycon.c
	gcc -o joycon.exe joycon.o -lalleg
