# NOTE: DO NOT DOWNLOAD THIS MAKEFILE FROM THE WEB BECAUSE NECESSARY TABS # WILL BE REPLACED BY SPACES. YOU CAN LOOK AT IT HERE, BUT GET YOUR OWN # COPY FROM /home/cec/class/cs333/makefiles/Makefile ######################################################################### # Playground Generic Makefile # # Paul McCartney, November 1996 # # DESCRIPTION: # # This is a generic makefile for use with the Playground system. Modify # this file in the following way to make your own Playground modules: # # 1) Application Name: set the value of "EXECUTABLE". # (e.g. EXECUTABLE = myapp) # # 2) Source files: list the ".cc" files of your application # next to the "SRCS = " assignment. # (e.g. SRCS = foo.cc bar.cc) # # After these changes are complete, save this file in the directory that # contains your source files. # # Whenever you add source files or add "#include" to any source file, # you should execute: make depend # # To compile and link your program, execute: make ######################################################################### EXECUTABLE = SRCS = OBJS = $(SRCS:.cc=.o) PG = /home/cec/class/cs333 PGLIBDIR = $(PG)/lib PGINCDIR = $(PG)/include PGOBJDIR = $(PG)/lib STLDIR = $(PG)/stl CCC = CC MAINFLAGS = -g -xildoff DEFFLAGS = -DOUTLINE -D_REENTRANT -DUNIX -DNETWORKBYTEORDER LIBS = -lsocket -lnsl -lposix4 -L$(PGLIBDIR) -lplayground -lm INCCFLAGS = -I$(PGINCDIR) -I$(STLDIR) SUNFLAGS = -D$(OSVERSION) CCFLAGS = $(DEFFLAGS) $(SUNFLAGS) $(MAINFLAGS) $(INCCFLAGS) PROOBJS = \ $(PGOBJDIR)/ConnectionMessage.o \ $(PGOBJDIR)/ConnectionProtocol.o \ $(PGOBJDIR)/ConnectionReactor.o \ $(PGOBJDIR)/ConnectRequestMessage.o \ $(PGOBJDIR)/ConnectStatusMessage.o \ $(PGOBJDIR)/ControlMessage.o \ $(PGOBJDIR)/DisconnectMessage.o \ $(PGOBJDIR)/DisconnectRequestMessage.o \ $(PGOBJDIR)/EndOfStreamMessage.o \ $(PGOBJDIR)/Message.o \ $(PGOBJDIR)/NegotiatedLinkMessage.o \ $(PGOBJDIR)/OperatingSystem.o \ $(PGOBJDIR)/ProposedLinkMessage.o \ $(PGOBJDIR)/SendReadyMessage.o \ $(PGOBJDIR)/UNIXOperatingSystem.o ### # Targets ### $(EXECUTABLE): $(OBJS) $(CCC) -o $(EXECUTABLE) $(CCFLAGS) $(OBJS) $(PROOBJS) $(LIBS) .cc.o: $(CCC) $(CCFLAGS) -c -o $@ $< clean: -rm -f $(OBJS) -rm -f $(EXECUTABLE) -rm -f core -rm -f *.bak -rm -f *~ -rm -rf Templates.DB depend: -rm -f ccdep -rm -f eddep $(CCC) -xM1 $(CCFLAGS) $(INCCFLAGS) $(SRCS) > ccdep sed -n '1,/^# DO NOT DELETE THIS LINE/p' Makefile > eddep echo \#\#\# >> eddep cat ccdep >> eddep cp Makefile Makefile.bak mv eddep Makefile rm ccdep ### # OBJECT FILE DEPENDENCIES FOLLOW. # # DO NOT DELETE THIS LINE -- make depend uses it ###