# Extreme Ataxx -- A neat way to play/observe ataxx with humans/computers.
# Copyright (C) 1999, 2000 Mark Fitzgerald.
# See main.cpp for the full copyright notice.


FLAGS = -c -O3 -Wall -pedantic
OBJS = main.o board.o
# -mwindows has user32, gdi32, IIRC and comdlg32, and makes me a GUI app.
LIBS = -mwindows -lcomctl32 -lwsock32

# No longer using perl to do build numbers -- get CVS or something working!
# To build the .BMP files needed, use GIMP for Windows (Feb.15.2000 build worked for me).
extremeAtaxx: $(OBJS) extremeAtaxx.rc
	windres -I rc -i extremeAtaxx.rc -O coff -o extremeAtaxx.coff
	g++ $(OBJS) extremeAtaxx.coff -o extremeAtaxx $(LIBS)

main.o: main.cpp resources.hpp common.hpp board.hpp
	g++ $(FLAGS) main.cpp

board.o: board.cpp board.hpp
	g++ $(FLAGS) board.cpp

clean:
	rm -rf *.o extremeAtaxx.coff extremeAtaxx.exe

veryclean: clean
	rm -rf errors *.bak
