# Makefile for MasterMind
#
# (Adapted from makefile by Bill Kendrick)

SRC=./src/
TMP=./tmp/

all:	host mips

ws/Makefile : src/Makefile
	cp src/Makefile ws/Makefile

vr3/Makefile : src/Makefile
	cp src/Makefile vr3/Makefile



host:	ws/Makefile
	make -C./ws/
	cp ws/mastermind ./mastermind.host


mips:	vr3/Makefile
	make -C./vr3/
	cp vr3/mastermind ./mastermind.mips
	mipsel-linux-strip ./mastermind.mips


clean:
	-rm mastermind.host mastermind.mips ws/mastermind vr3/mastermind


# Build the program:
#
#$(TARGET):	$(SRC)mastermind.cpp $(SRC)mm_fltk.cpp 
#	$(CC) $(CFLAGS) \
#		$(SRC)mastermind.cpp $(SRC)mm_fltk.cpp  \
#		$(XLIB) -o $@
#	$(STRIP) $(TARGET)
#	$(STRIP) --remove-section .compact_rel $(TARGET)
#	$(STRIP) --remove-section .note $(TARGET)
#	$(STRIP) --remove-section .comment $(TARGET)
