Repository navigation
Expand file tree
/
Copy pathmakefile
More file actions
55 lines (44 loc) · 2.9 KB
/
Copy pathmakefile
File metadata and controls
55 lines (44 loc) · 2.9 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
##############################################################################
################################ makefile ####################################
##############################################################################
# #
# makefile of CSPBlock #
# #
# Note that $(SMS++INC) is assumed to include any -I directive #
# corresponding to external libraries needed by SMS++, at least to the #
# extent in which they are needed by the parts of SMS++ used by #
# CSPBlock. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(SMS++INC) = the -I$( core SMS++ directory ) #
# $(SMS++OBJ) = the libSMS++ library itself #
# $(CSPBkSDR) = the directory where the source is #
# #
# Output: $(CSPBkOBJ) = the final object(s) / library #
# $(CSPBkH) = the .h files to include #
# $(CSPBkINC) = the -I$( source directory ) #
# #
# Antonio Frangioni #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
CSPBkOBJ = $(CSPBkSDR)/obj/CSPBlock.o
CSPBkINC = -I$(CSPBkSDR)/include
CSPBkH = $(CSPBkSDR)/include/CSPBlock.h
# the C++20 module [see makefile-mod of SMS++] - - - - - - - - - - - - - - -
# the prefixes of the modules of the dependencies (e.g., UCBck) go in place
# of SMS++
$(eval $(call SMSppMODrule,CSPBk,$(CSPBkSDR),CSPBlock,\
smspp.cspblock,SMS++))
# clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean::
rm -f $(CSPBkOBJ) $(CSPBkSDR)/*~
# dependencies: every .o from its .cpp + every recursively included .h- - - -
$(CSPBkSDR)/obj/CSPBlock.o: $(CSPBkSDR)/src/CSPBlock.cpp \
$(CSPBkSDR)/include/CSPBlock.h $(SMS++H) $(SMS++OBJ)
$(CC) -c $(CSPBkSDR)/src/CSPBlock.cpp -o $@ \
$(CSPBkINC) $(SMS++INC) $(SW)
########################## End of makefile ###################################