Makefile


#helpon
#########################################################################
#                                                                       #
# Makefile for the DAGH applications                                    #
#                                                                       #
# Allowable external targets:                                           #
#                                                                       #
#       - help                  print out this top banner message       #
#       - clean                 remove all files generated by the make  #
#                                                                       #
# Author:  Manish Parashar <parashar@cs.utexas.edu>                     #
#                                                                       #
#########################################################################
#helpoff

help:
	@awk '/#helpon/, /#helpoff/' Makefile |         \
	egrep -v "(helpon|helpoff)" | more


# Top directory for the DAGH system !!
DAGH_HOME = /u8/mitra/NDAGH

# Include architecture specific makefile
include make.defn

#########################################################################
# Application Makefile !!!                                              #
#########################################################################

.SUFFIXES: .C .c .F .o .a .f .f9 .cpp

# Define application FORTRAN sources & objects
APP_F_SRC = transport.f tportutil.f grid.f 
APP_F_OBJ = $(APP_F_SRC:.f=.o)

# Define application C++ sources & objects
APP_CC_SRC = tportamr.C truncation.C Cluster3.C Cluster1.C
APP_CC_OBJ = $(APP_CC_SRC:.C=.o)

APPOBJ = $(APP_F_OBJ) $(APP_CC_OBJ)

# Application specific Flags
C++APPFLAGS = -g 
CAPPFLAGS = -g 
F77APPFLAGS = -g
F90APPFLAGS = -g

# Application specific libraries
APPLIB =

EXEC =		tportamr	

$(EXEC):	$(APPOBJ)
		$(RM) $(EXEC)
		$(C++LINK) $(C++FLAGS) -o $@ \
                $(APPOBJ) $(APPLIB) $(LDLIBS)
		

#########################################################################
#                                                                       #
# Clean up the application files, any core files, the compiler created  #
# template repository !                                                 #
#                                                                       #
#########################################################################

clean:
		$(RM) *.o core $(EXEC)
		$(RM) -r $(REPOSITORY)

Return to: Tutorial