[138] | 1 | # |
---|
[288] | 2 | # Framsticks SDK makefile |
---|
[138] | 3 | # |
---|
| 4 | |
---|
[288] | 5 | include frams/Makefile-SDK-files |
---|
[138] | 6 | |
---|
[1035] | 7 | SDK_TESTS=genoconv_test genomanipulation geno_test genooper_test genooper_test_fTest neuro_test loader_test_geno loader_test_param saver_test_geno serial_test multiline_f0_test f0_variants_test full_props resize_f0 shapeconvert part_shapes neuro_layout_test geometry_apices_test geometry_info_test geometry_surface_test geometry_volume_test simil_test simil_unittests paramtree_stdin_test paramtree_paramlist_test mutableparam_test evol_test |
---|
[138] | 8 | |
---|
[288] | 9 | sdk_tests: $(SDK_TESTS) |
---|
[138] | 10 | |
---|
[318] | 11 | CXXWARNINGS=-Wall -Wno-parentheses -Wno-overloaded-virtual -Wno-format -Werror=return-type |
---|
| 12 | |
---|
[1158] | 13 | SDK_BUILD_CONFIG= -include frams/config/sdk-build-config.h |
---|
[1007] | 14 | CXXFLAGS= -I$(CURDIR) -std=gnu++17 $(SDK_BUILD_CONFIG) $(CXXWARNINGS) -g |
---|
[138] | 15 | |
---|
[456] | 16 | AR=ar |
---|
| 17 | ARFLAGS=rs |
---|
| 18 | FRAMSTICKS_SDK_LIB=libFramsticksSDK.a |
---|
| 19 | $(FRAMSTICKS_SDK_LIB): CXXFLAGS+= -fPIC |
---|
| 20 | |
---|
[138] | 21 | ############################################# |
---|
| 22 | |
---|
[456] | 23 | lib: $(FRAMSTICKS_SDK_LIB) |
---|
| 24 | |
---|
| 25 | $(FRAMSTICKS_SDK_LIB): $(SDK_LIB_OBJS) |
---|
| 26 | $(AR) $(ARFLAGS) $(FRAMSTICKS_SDK_LIB) $(SDK_LIB_OBJS) |
---|
| 27 | |
---|
[288] | 28 | genomanipulation: $(GENOMANIPULATION_OBJS) |
---|
| 29 | $(CXX) $(GENOMANIPULATION_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 30 | |
---|
| 31 | genoconv_test: $(GENOCONV_TEST_OBJS) |
---|
[247] | 32 | $(CXX) $(GENOCONV_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 33 | |
---|
| 34 | geno_test: $(GENO_TEST_OBJS) |
---|
[247] | 35 | $(CXX) $(GENO_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 36 | |
---|
[194] | 37 | genooper_test: $(GENOOPER_TEST_OBJS) |
---|
[247] | 38 | $(CXX) $(GENOOPER_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[194] | 39 | |
---|
| 40 | genooper_test_fTest: $(GENOOPER_TEST_FTEST_OBJS) |
---|
[247] | 41 | $(CXX) $(GENOOPER_TEST_FTEST_OBJS) $(LDFLAGS) -o $@ |
---|
[194] | 42 | |
---|
[138] | 43 | neuro_test: $(NEURO_TEST_OBJS) |
---|
[247] | 44 | $(CXX) $(NEURO_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 45 | |
---|
[517] | 46 | loader_test_geno: $(LOADER_TEST_OBJS) |
---|
[247] | 47 | $(CXX) $(LOADER_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 48 | |
---|
[307] | 49 | loader_test_param: $(LOADER_TEST_PARAM_OBJS) |
---|
| 50 | $(CXX) $(LOADER_TEST_PARAM_OBJS) $(LDFLAGS) -o $@ |
---|
| 51 | |
---|
[517] | 52 | saver_test_geno: $(SAVER_TEST_OBJS) |
---|
| 53 | $(CXX) $(SAVER_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
| 54 | |
---|
[138] | 55 | serial_test: $(SERIAL_TEST_OBJS) |
---|
[247] | 56 | $(CXX) $(SERIAL_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 57 | |
---|
| 58 | multiline_f0_test: $(MULTILINE_F0_OBJS) |
---|
[247] | 59 | $(CXX) $(MULTILINE_F0_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 60 | |
---|
| 61 | f0_variants_test: $(F0_VARIANTS_OBJS) |
---|
[247] | 62 | $(CXX) $(F0_VARIANTS_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 63 | |
---|
| 64 | full_props: $(FULL_PROPS_OBJS) |
---|
[247] | 65 | $(CXX) $(FULL_PROPS_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 66 | |
---|
[1035] | 67 | resize_f0: $(RESIZE_F0_OBJS) |
---|
| 68 | $(CXX) $(RESIZE_F0_OBJS) $(LDFLAGS) -o $@ |
---|
| 69 | |
---|
[269] | 70 | shapeconvert: $(SHAPECONVERT_OBJS) |
---|
| 71 | $(CXX) $(SHAPECONVERT_OBJS) $(LDFLAGS) -o $@ |
---|
| 72 | |
---|
[138] | 73 | part_shapes: $(PART_SHAPES_OBJS) |
---|
[247] | 74 | $(CXX) $(PART_SHAPES_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 75 | |
---|
| 76 | neuro_layout_test: $(NEURO_LAYOUT_TEST_OBJS) |
---|
[247] | 77 | $(CXX) $(NEURO_LAYOUT_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[138] | 78 | |
---|
[191] | 79 | geometry_apices_test: $(GEOMETRY_APICES_TEST_OBJS) |
---|
[247] | 80 | $(CXX) $(GEOMETRY_APICES_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[191] | 81 | |
---|
| 82 | geometry_info_test: $(GEOMETRY_INFO_TEST_OBJS) |
---|
[247] | 83 | $(CXX) $(GEOMETRY_INFO_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[191] | 84 | |
---|
| 85 | geometry_surface_test: $(GEOMETRY_SURFACE_TEST_OBJS) |
---|
[247] | 86 | $(CXX) $(GEOMETRY_SURFACE_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[191] | 87 | |
---|
| 88 | geometry_volume_test: $(GEOMETRY_VOLUME_TEST_OBJS) |
---|
[247] | 89 | $(CXX) $(GEOMETRY_VOLUME_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
[191] | 90 | |
---|
[349] | 91 | simil_test: $(SIMIL_TEST_OBJS) |
---|
| 92 | $(CXX) $(SIMIL_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
| 93 | |
---|
[351] | 94 | simil_unittests: $(SIMIL_UNITTESTS_OBJS) |
---|
| 95 | $(CXX) $(SIMIL_UNITTESTS_OBJS) $(LDFLAGS) -o $@ |
---|
[194] | 96 | |
---|
[724] | 97 | paramtree_stdin_test: $(PARAMTREE_STDIN_TEST_OBJS) |
---|
| 98 | $(CXX) $(PARAMTREE_STDIN_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
| 99 | |
---|
| 100 | paramtree_paramlist_test: $(PARAMTREE_PARAMLIST_TEST_OBJS) |
---|
| 101 | $(CXX) $(PARAMTREE_PARAMLIST_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
| 102 | |
---|
[729] | 103 | mutableparam_test: $(MUTABLEPARAM_TEST_OBJS) |
---|
| 104 | $(CXX) $(MUTABLEPARAM_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
| 105 | |
---|
[1007] | 106 | evol_test: $(EVOL_TEST_OBJS) |
---|
| 107 | $(CXX) $(EVOL_TEST_OBJS) $(LDFLAGS) -o $@ |
---|
| 108 | |
---|
[138] | 109 | ############################################# |
---|
| 110 | |
---|
[1007] | 111 | 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) $(PARAMTREE_STDIN_TEST_OBJS) $(PARAMTREE_PARAMLIST_TEST_OBJS) $(MUTABLEPARAM_TEST_OBJS) $(EVOL_TEST_OBJS) |
---|
[138] | 112 | |
---|
[365] | 113 | include common/Makefile-maintain |
---|
[138] | 114 | |
---|
| 115 | full_clean: clean |
---|
[456] | 116 | rm -f $(SDK_TESTS) $(FRAMSTICKS_SDK_LIB) |
---|