# # Makefile for P2 # # Instructions: # # 0. Before doing anything more, type at the seva prompt 'touch Makefile.dep'. # 1. Add only .cc files to the line beginning with SRCS = main.cc. # Each file should be separated with spaces. # 2. To build the dependency list, type 'make depend'. You'll need to # do this whenever you add a new .cc or .h file to your project. # 3. To build the project, type 'make'. # 4. To start over, type 'make clean', which does not clean the # dependency list. # # N.B. If you're using files with .cpp extensions, then you need to search # and replace cc with cpp. # CC = g++ CFLAGS = -Wall -g SRCS = main.cc pasta.cc OBJS = ${SRCS:.cc=.o} a.out: $(OBJS) $(CC) $(CFLAGS) $(OBJS) $(OBJS): $(CC) $(CFLAGS) -c $*.cc depend: $(CC) -MM $(SRCS) > Makefile.dep clean: rm -f $(OBJS) a.out core include Makefile.dep