Repository navigation
Expand file tree
/
Copy pathmakefile
More file actions
113 lines (94 loc) · 5.14 KB
/
Copy pathmakefile
File metadata and controls
113 lines (94 loc) · 5.14 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
##############################################################################
################################ makefile ####################################
##############################################################################
# #
# makefile of SatellitesBlock #
# #
# 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 #
# SatellitesBlock. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(SMS++INC) = the -I$( core SMS++ directory ) #
# $(SMS++OBJ) = the libSMS++ library itself #
# $(SBkSDR) = the directory where the source is #
# #
# Output: $(SBkOBJ) = the final object(s) / library #
# $(SBkH) = the .h files to include #
# $(SBkINC) = the -I$( source directory ) #
# #
# Antonio Frangioni #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
SBkOBJ = $(SBkSDR)/obj/ConstellationBlock.o \
$(SBkSDR)/obj/DiscreteConstellationBlock.o \
$(SBkSDR)/obj/DiscreteSatelliteBlock.o \
$(SBkSDR)/obj/DiscreteSatelliteSolver.o \
$(SBkSDR)/obj/MultiTargetBlock.o \
$(SBkSDR)/obj/MultiTargetBlockv2.o \
$(SBkSDR)/obj/SatelliteBlock.o \
$(SBkSDR)/obj/SatelliteSolver.o \
$(SBkSDR)/obj/SingleTargetBlock.o
SBkINC = -I$(SBkSDR)/include
SBkH = $(SBkSDR)/include/ConstellationBlock.h \
$(SBkSDR)/include/DiscreteConstellationBlock.h \
$(SBkSDR)/include/DiscreteSatelliteBlock.h \
$(SBkSDR)/include/DiscreteSatelliteSolver.h \
$(SBkSDR)/include/MultiTargetBlock.h \
$(SBkSDR)/include/MultiTargetBlockv2.h \
$(SBkSDR)/include/SatelliteBlock.h \
$(SBkSDR)/include/SatelliteSolver.h \
$(SBkSDR)/include/SingleTargetBlock.h
# the C++20 module smspp.satellitesblock - - - - - - - - - - - - - - - - - -
# [see makefile-mod of SMS++]
$(eval $(call SMSppMODrule,SBk,$(SBkSDR),SatellitesBlock,\
smspp.satellitesblock,SMS++))
# clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean::
rm -f $(SBkOBJ) $(SBkSDR)/*~
# dependencies: every .o from its .cpp + every recursively included .h- - - -
$(SBkSDR)/obj/ConstellationBlock.o: $(SBkSDR)/src/ConstellationBlock.cpp \
$(SBkH) $(SMS++H) $(SMS++OBJ)
$(CC) -c $(SBkSDR)/src/ConstellationBlock.cpp -o $@ \
$(SBkINC) $(SMS++INC) $(SW)
$(SBkSDR)/obj/MultiTargetBlock.o: $(SBkSDR)/src/MultiTargetBlock.cpp $(SBkH) \
$(SMS++H) $(SMS++OBJ)
$(CC) -c $(SBkSDR)/src/MultiTargetBlock.cpp -o $@ \
$(SBkINC) $(SMS++INC) $(SW)
$(SBkSDR)/obj/MultiTargetBlockv2.o: $(SBkSDR)/src/MultiTargetBlockv2.cpp \
$(SBkH) $(SMS++H) $(SMS++OBJ)
$(CC) -c $(SBkSDR)/src/MultiTargetBlockv2.cpp -o $@ \
$(SBkINC) $(SMS++INC) $(SW)
$(SBkSDR)/obj/SatelliteBlock.o: $(SBkSDR)/src/SatelliteBlock.cpp $(SBkH) \
$(SMS++H) $(SMS++OBJ)
$(CC) -c $(SBkSDR)/src/SatelliteBlock.cpp -o $@ \
$(SBkINC) $(SMS++INC) $(SW)
$(SBkSDR)/obj/SatelliteSolver.o: $(SBkSDR)/src/SatelliteSolver.cpp $(SBkH) \
$(SMS++H) $(SMS++OBJ)
$(CC) -c $(SBkSDR)/src/SatelliteSolver.cpp -o $@ \
$(SBkINC) $(SMS++INC) $(SW)
$(SBkSDR)/obj/SingleTargetBlock.o: $(SBkSDR)/src/SingleTargetBlock.cpp \
$(SBkH) $(SMS++H) $(SMS++OBJ)
$(CC) -c $(SBkSDR)/src/SingleTargetBlock.cpp -o $@ \
$(SBkINC) $(SMS++INC) $(SW)
$(SBkSDR)/obj/DiscreteConstellationBlock.o: \
$(SBkSDR)/src/DiscreteConstellationBlock.cpp $(SBkH) $(SMS++H) \
$(SMS++OBJ)
$(CC) -c $(SBkSDR)/src/DiscreteConstellationBlock.cpp -o $@ \
$(SBkINC) $(SMS++INC) $(SW)
$(SBkSDR)/obj/DiscreteSatelliteBlock.o: \
$(SBkSDR)/src/DiscreteSatelliteBlock.cpp $(SBkH) $(SMS++H) \
$(SMS++OBJ)
$(CC) -c $(SBkSDR)/src/DiscreteSatelliteBlock.cpp -o $@ \
$(SBkINC) $(SMS++INC) $(SW)
$(SBkSDR)/obj/DiscreteSatelliteSolver.o: \
$(SBkSDR)/src/DiscreteSatelliteSolver.cpp $(SBkH) $(SMS++H) \
$(SMS++OBJ)
$(CC) -c $(SBkSDR)/src/DiscreteSatelliteSolver.cpp -o $@ \
$(SBkINC) $(SMS++INC) $(SW)
########################## End of makefile ###################################