# This is a gnu makefile and should be used with gnu make. Type "make # -v" to check; the output should say it's gnu make. # # See galton.uchicago.edu/~gosset/Compdocs/make.html for a short make tutorial. # See www.student.math.uwaterloo.ca/~cs-marks/resources/unix/make/tutorial/ for # a medium make tutorial. # See www.eng.hawaii.edu/Tutor/Make/index.html for a long make tutorial. # # If you use this makefile, make sure you type "touch dependencies" to create # the dependencies file included below. Then type "make depends" to create a # real dependencies file. % : /export/home/class/cs-305/pa3a/% rm -f $@ cp $< $> chmod a-w $@ ifeq ($(shell uname -s),Linux) cxxclflags = -g libs = os = linux else cxxclflags = -gstabs libs = -lsocket -lnsl os = solaris endif SHELL = /bin/sh idirs = CXXFLAGS = $(cxxclflags) -ansi -pedantic $(idirs) CXX = g++ ldcmd = $(CXX) -o $@ $(cxxclflags) $^ $(libs) # Add and remove object files to objs as necessary. objs = main.o ip-utils.o mitm.o word-scraper : $(objs) $(ldcmd) # Each time you add or remove an object file from your executable, you should # type "make depends" to regenrate an up-do-data dependencies file. depends : $(wildcard *.cc) $(CXX) -MM $(idirs) $^ > dependencies include dependencies # $Log: Makefile,v $ # Revision 1.1 2003/10/10 22:38:17 rclayton # Initial revision #