###################################################################### ## $Id: Makefile,v 1.7 1998/02/05 21:04:59 dmartin Exp $ ###################################################################### # # 'gmake' : create program $(PROG) # 'gmake clean' : clean directory # 'gmake submit' : submit all sources to TA via email # ###################################################################### # list your source/assembly files in SRCS SRCS := matmul.c # (?) other options to try: # -x03 | -xO4 | -xO5 # -xdepend -xcrossfile -xprofile -xspace -xsafe=mem CFLAGS := -xO2 -dalign -xlibmil -native -xarch=v8plusa -xchip=ultra -xCC ###################################################################### # NO CHANGES BELOW THIS LINE PROG := matmul DRIVER := driver MATMULCC := cc $(CFLAGS) -fsimple=0 DRIVERCC := $(CC) -xO2 -dalign -xlibmil -native -xarch=v8plusa -xchip=ultra -xCC .PHONY: default clean submit default: $(PROG) $(PROG): $(SRCS) $(DRIVER).o $(MATMULCC) -o $@ $^ $(DRIVER).o: $(DRIVER).c $(DRIVERCC) -o $@ -c $^ clean: rm -f *~ *.o $(PROG) submit: @tar cf - Makefile $(SRCS) | gzip | uuencode $(USER).tar.gz | \ mhmail fredwong -subject "CS267 HW2 Submission" @echo mailed to fredwong: Makefile $(SRCS) ###################################################################### ## $Log: Makefile,v $ ## Revision 1.7 1998/02/05 21:04:59 dmartin ## proper seperate compilation of the driver ## ## Revision 1.6 1998/01/27 02:09:02 dmartin ## *** empty log message *** ## ## Revision 1.5 1998/01/27 01:41:25 dmartin ## *** empty log message *** ## ## Revision 1.4 1998/01/27 00:46:29 dmartin ## *** empty log message *** ## ## Revision 1.3 1998/01/27 00:40:35 dmartin ## separate compilation of driver.c ## ## Revision 1.2 1998/01/27 00:24:31 dmartin ## added submit ## ## Revision 1.1 1998/01/19 00:49:45 dmartin ## Initial revision ## ######################################################################