Makefile 449 Bytes
Newer Older
Sam Moore's avatar
Sam Moore committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
#Makefile for SilverFish agent
CXX = g++ -std=gnu++0x -Wall -Werror -pedantic -g
OBJ = qchess.o agent.o silverfish.o main.o
LIB = 

LINKOBJ = $(OBJ)

RM = rm -f
BIN = silver



$(BIN) : $(LINKOBJ)
	$(CXX) -o $(BIN) $(LINKOBJ)

%.o : %.cpp
	$(CXX) -c $<

no_main : $(OBJ)

main.o : main.cpp
	$(CXX) -c main.cpp

clean :
	$(RM) $(BIN) $(OBJ) $(LINKOBJ)

clean_full: #cleans up all backup files
	$(RM) $(BIN) $(OBJ) $(LINKOBJ)
	$(RM) *.*~
	$(RM) *~