# makefile for ChessPlayer # ChessPlayer has 7 source files and 1 header file (global.h) # Yet all you have to do is type 'make' to compile it PROGRAM = ChessPlayer CC = gcc CFLAGS = -c -g OBJS = chess1.o chess2.o chess3.o chess4.o chess5.o chess6.o chess7.o LIBS = -lm $(PROGRAM): $(OBJS) $(CC) -o $(PROGRAM) $(OBJS) $(LIBS) .c.o: global.h $(CC) $(CFLAGS) $<