-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
48 lines (39 loc) · 2.69 KB
/
Copy pathmakefile
File metadata and controls
48 lines (39 loc) · 2.69 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
##############################################################################
################################ makefile ####################################
##############################################################################
# #
# makefile of TemplateBlock #
# #
# 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 #
# TemplateBlock. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(SMS++INC) = the -I$( core SMS++ directory ) #
# $(SMS++OBJ) = the libSMS++ library itself #
# $(TmpBkSDR) = the directory where the source is #
# #
# Output: $(TmpBkOBJ) = the final object(s) / library #
# $(TmpBkH) = the .h files to include #
# $(TmpBkINC) = the -I$( source directory ) #
# #
# Antonio Frangioni #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
TmpBkOBJ = $(TmpBkSDR)/obj/TemplateBlock.o
TmpBkINC = -I$(TmpBkSDR)/include
TmpBkH = $(TmpBkSDR)/include/TemplateBlock.h
# clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean::
rm -f $(TmpBkOBJ) $(TmpBkSDR)/*~
# dependencies: every .o from its .cpp + every recursively included .h- - - -
$(TmpBkSDR)/obj/TemplateBlock.o: $(TmpBkSDR)/src/TemplateBlock.cpp \
$(TmpBkSDR)/include/TemplateBlock.h $(SMS++H) $(SMS++OBJ)
$(CC) -c $(TmpBkSDR)/src/TemplateBlock.cpp -o $@ \
$(TmpBkINC) $(SMS++INC) $(SW)
########################## End of makefile ###################################