#***************************************************** # CS225 General Makefile # # File originally written by Matt Buchanan in Fall 1995 # #***************************************************** #************************************************************************** # List of .o files that EXENAME depends on. Edit as appropriate for MP. OBJS = \ asserts.o vehicle.o string.o main.o #************************************************************************** # Change this line if you don't like 'a.out'. EXENAME = mp2 #************************************************************************** # Macros defining the C/C++ compiler and linker. CC = g++ CCOPTS = -g LINK = g++ LINKOPTS = -o $(EXENAME) #************************************************************************** # Rules for building EXENAME from OBJS and OBJS from your source. $(EXENAME): $(OBJS) $(LINK) $(LINKOPTS) $(OBJS) clean: -rm *.o $(EXENAME) -rm -rf SunWS_cache asserts.o : asserts.h asserts.C $(CC) -c $(CCOPTS) asserts.C vehicle.o : vehicle.h vehicle.C $(CC) -c $(CCOPTS) vehicle.C string.o : string.h string.C asserts.h $(CC) -c $(CCOPTS) string.C main.o : main.C vehicle.h numbered.h string.h maptests.h $(CC) -c $(CCOPTS) main.C