1 | # |
---|
2 | # Framsticks SDK makefile |
---|
3 | # |
---|
4 | |
---|
5 | include frams/Makefile-SDK-files |
---|
6 | |
---|
7 | SDK_TESTS=genoconv_test genomanipulation geno_test genooper_test genooper_test_fTest neuro_test loader_test loader_test_param serial_test multiline_f0_test f0_variants_test full_props shapeconvert part_shapes neuro_layout_test geometry_apices_test geometry_info_test geometry_surface_test geometry_volume_test simil_test simil_unittests |
---|
8 | |
---|
9 | sdk_tests: $(SDK_TESTS) |
---|
10 | |
---|
11 | CXXWARNINGS=-Wall -Wno-parentheses -Wno-overloaded-virtual -Wno-format -Werror=return-type |
---|
12 | |
---|
13 | SDK_BUILD_CONFIG= -include frams/config/sdk_build_config.h |
---|
14 | CXXFLAGS= -I$(CURDIR) -std=gnu++11 $(SDK_BUILD_CONFIG) $(CXXWARNINGS) -g |
---|
15 | |
---|
16 | AR=ar |
---|
17 | ARFLAGS=rs |
---|
18 | FRAMSTICKS_SDK_LIB=libFramsticksSDK.a |
---|
19 | $(FRAMSTICKS_SDK_LIB): CXXFLAGS+= -fPIC |
---|
20 | |
---|
21 | ############################################# |
---|
22 | |
---|
23 | lib: $(FRAMSTICKS_SDK_LIB) |
---|
24 | |
---|
25 | $(FRAMSTICKS_SDK_LIB): $(SDK_LIB_OBJS) |
---|
26 | $(AR) $(ARFLAGS) $(FRAMSTICKS_SDK_LIB) $(SDK_LIB_OBJS) |
---|
27 | |
---|
28 | genomanipulation: $(GENOMANIPULATION_OBJS) |
---|
29 | $(CXX) $(GENOMANIPULATION_OBJS) $(LDFLAGS) -o $@ |
---|
30 | |
---|
31 | genoconv_test: $(GENOCONV_TEST_OBJS) |
---|
32 | $(CXX) $(GENOCONV_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
33 | |
---|
34 | geno_test: $(GENO_TEST_OBJS) |
---|
35 | $(CXX) $(GENO_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
36 | |
---|
37 | genooper_test: $(GENOOPER_TEST_OBJS) |
---|
38 | $(CXX) $(GENOOPER_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
39 | |
---|
40 | genooper_test_fTest: $(GENOOPER_TEST_FTEST_OBJS) |
---|
41 | $(CXX) $(GENOOPER_TEST_FTEST_OBJS) $(LDFLAGS) -o $@ |
---|
42 | |
---|
43 | neuro_test: $(NEURO_TEST_OBJS) |
---|
44 | $(CXX) $(NEURO_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
45 | |
---|
46 | loader_test: $(LOADER_TEST_OBJS) |
---|
47 | $(CXX) $(LOADER_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
48 | |
---|
49 | loader_test_param: $(LOADER_TEST_PARAM_OBJS) |
---|
50 | $(CXX) $(LOADER_TEST_PARAM_OBJS) $(LDFLAGS) -o $@ |
---|
51 | |
---|
52 | serial_test: $(SERIAL_TEST_OBJS) |
---|
53 | $(CXX) $(SERIAL_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
54 | |
---|
55 | multiline_f0_test: $(MULTILINE_F0_OBJS) |
---|
56 | $(CXX) $(MULTILINE_F0_OBJS) $(LDFLAGS) -o $@ |
---|
57 | |
---|
58 | f0_variants_test: $(F0_VARIANTS_OBJS) |
---|
59 | $(CXX) $(F0_VARIANTS_OBJS) $(LDFLAGS) -o $@ |
---|
60 | |
---|
61 | full_props: $(FULL_PROPS_OBJS) |
---|
62 | $(CXX) $(FULL_PROPS_OBJS) $(LDFLAGS) -o $@ |
---|
63 | |
---|
64 | shapeconvert: $(SHAPECONVERT_OBJS) |
---|
65 | $(CXX) $(SHAPECONVERT_OBJS) $(LDFLAGS) -o $@ |
---|
66 | |
---|
67 | part_shapes: $(PART_SHAPES_OBJS) |
---|
68 | $(CXX) $(PART_SHAPES_OBJS) $(LDFLAGS) -o $@ |
---|
69 | |
---|
70 | neuro_layout_test: $(NEURO_LAYOUT_TEST_OBJS) |
---|
71 | $(CXX) $(NEURO_LAYOUT_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
72 | |
---|
73 | geometry_apices_test: $(GEOMETRY_APICES_TEST_OBJS) |
---|
74 | $(CXX) $(GEOMETRY_APICES_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
75 | |
---|
76 | geometry_info_test: $(GEOMETRY_INFO_TEST_OBJS) |
---|
77 | $(CXX) $(GEOMETRY_INFO_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
78 | |
---|
79 | geometry_surface_test: $(GEOMETRY_SURFACE_TEST_OBJS) |
---|
80 | $(CXX) $(GEOMETRY_SURFACE_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
81 | |
---|
82 | geometry_volume_test: $(GEOMETRY_VOLUME_TEST_OBJS) |
---|
83 | $(CXX) $(GEOMETRY_VOLUME_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
84 | |
---|
85 | simil_test: $(SIMIL_TEST_OBJS) |
---|
86 | $(CXX) $(SIMIL_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
87 | |
---|
88 | simil_unittests: $(SIMIL_UNITTESTS_OBJS) |
---|
89 | $(CXX) $(SIMIL_UNITTESTS_OBJS) $(LDFLAGS) -o $@ |
---|
90 | |
---|
91 | ############################################# |
---|
92 | |
---|
93 | ALL_OBJS=$(GENOMANIPULATION_OBJS) $(GENOCONV_TEST_OBJS) $(GENO_TEST_OBJS) $(NEURO_TEST_OBJS) $(LOADER_TEST_OBJS) $(SERIAL_TEST_OBJS) $(MULTILINE_F0_OBJS) $(F0_VARIANTS_OBJS) $(FULL_PROPS_OBJS) $(PART_SHAPES_OBJS) $(NEURO_LAYOUT_TEST_OBJS) $(GENOOPER_TEST_OBJS) $(GEOMETRY_APICES_TEST_OBJS) $(GEOMETRY_INFO_TEST_OBJS) $(GEOMETRY_SURFACE_TEST_OBJS) $(GEOMETRY_VOLUME_TEST_OBJS) $(SIMIL_TEST_OBJS) $(SIMIL_UNITTESTS_OBJS) |
---|
94 | |
---|
95 | include common/Makefile-maintain |
---|
96 | |
---|
97 | full_clean: clean |
---|
98 | rm -f $(SDK_TESTS) $(FRAMSTICKS_SDK_LIB) |
---|