-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmakefile
41 lines (34 loc) · 2.25 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
##############################################################################
################################## makefile ##################################
##############################################################################
# #
# makefile of RelaxIV #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(MCFClH) = the include files for MCFClass #
# $(MCFClINC) = the -I$( MCFClass.h directory ) #
# $(MCFR4DIR) = the directory where the source is #
# #
# Output: $(MCFR4OBJ) = the final object(s) / library #
# $(MCFR4LIB) = external libraries + -L< libdirs > #
# $(MCFR4H) = the .h files to include #
# $(MCFR4INC) = the -I$( include directories ) #
# #
# Antonio Frangioni #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean::
rm -f $(MCFR4DIR)/*.o $(MCFR4DIR)/*~
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
MCFR4OBJ = $(MCFR4DIR)/RelaxIV.o
MCFR4LIB =
MCFR4H = $(MCFR4DIR)/RelaxIV.h
MCFR4INC = -I$(MCFR4DIR)
# dependencies: every .o from its .C + every recursively included .h- - - - -
$(MCFR4OBJ): $(MCFR4DIR)/RelaxIV.C $(MCFR4H) $(MCFClH)
$(CC) -c $*.C -o $@ $(MCFClINC) $(SW)
############################# End of makefile ################################