-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
60 lines (44 loc) · 1.62 KB
/
makefile
File metadata and controls
60 lines (44 loc) · 1.62 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
##############################################################################
################################# makefile ###################################
##############################################################################
# #
# makefile of MSArbor #
# #
# 'make clean' cleans up #
# 'make' builds the module #
# #
# VERSION 1.00 #
# 06 - 10 - 2004 #
# #
# Antonio Frangioni #
# Operations Research Group #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# module name
NAME = MSArbor
# debug switches
SW = -g
# production switches
# SW = -O3
# libreries
LIB = -lm
# compiler
CC = g++
# basic directory
DIR = ./
# default target- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
default: $(NAME)
# clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean::
rm -f $(DIR)*.o $(DIR)*~ $(NAME)
# main module (linking phase) - - - - - - - - - - - - - - - - - - - - - - - -
$(NAME): $(DIR)MSArbor.o $(DIR)Main.o
$(CC) -o $(NAME) $(DIR)Main.o $(DIR)MSArbor.o $(LIB) $(SW)
# dependencies: every .o from its .C + every recursively included .h- - - - -
$(DIR)MSArbor.o: $(DIR)MSArbor.C $(DIR)MSArbor.h
$(CC) -c $*.C -o $@ $(SW)
$(DIR)Main.o: $(DIR)Main.C $(DIR)MSArbor.h
$(CC) -c $*.C -o $@ $(SW)
############################ End of makefile #################################