source: cpp/frams/Makefile-SDK @ 492

Last change on this file since 492 was 456, checked in by sz, 9 years ago

added libFramsticksSDK.a building rule with the following changes:

  • using $(SDK_LIB_OBJS), instead of all sdk test objs
  • only use -fPIC when building lib
  • Property svn:eol-style set to native
File size: 3.3 KB
RevLine 
[138]1#
[288]2# Framsticks SDK makefile
[138]3#
4
[288]5include frams/Makefile-SDK-files
[138]6
[351]7SDK_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
[138]8
[288]9sdk_tests: $(SDK_TESTS)
[138]10
[318]11CXXWARNINGS=-Wall -Wno-parentheses -Wno-overloaded-virtual -Wno-format -Werror=return-type
12
[288]13SDK_BUILD_CONFIG= -include frams/config/sdk_build_config.h
[318]14CXXFLAGS= -I$(CURDIR) -std=gnu++11 $(SDK_BUILD_CONFIG) $(CXXWARNINGS) -g
[138]15
[456]16AR=ar
17ARFLAGS=rs
18FRAMSTICKS_SDK_LIB=libFramsticksSDK.a
19$(FRAMSTICKS_SDK_LIB): CXXFLAGS+= -fPIC
20
[138]21#############################################
22
[456]23lib: $(FRAMSTICKS_SDK_LIB)
24
25$(FRAMSTICKS_SDK_LIB): $(SDK_LIB_OBJS)
26        $(AR) $(ARFLAGS) $(FRAMSTICKS_SDK_LIB) $(SDK_LIB_OBJS)
27
[288]28genomanipulation: $(GENOMANIPULATION_OBJS)
29        $(CXX) $(GENOMANIPULATION_OBJS) $(LDFLAGS) -o $@
[138]30
31genoconv_test: $(GENOCONV_TEST_OBJS)
[247]32        $(CXX) $(GENOCONV_TEST_OBJS) $(LDFLAGS) -o $@
[138]33
34geno_test: $(GENO_TEST_OBJS)
[247]35        $(CXX) $(GENO_TEST_OBJS) $(LDFLAGS) -o $@
[138]36
[194]37genooper_test: $(GENOOPER_TEST_OBJS)
[247]38        $(CXX) $(GENOOPER_TEST_OBJS) $(LDFLAGS) -o $@
[194]39
40genooper_test_fTest: $(GENOOPER_TEST_FTEST_OBJS)
[247]41        $(CXX) $(GENOOPER_TEST_FTEST_OBJS) $(LDFLAGS) -o $@
[194]42
[138]43neuro_test: $(NEURO_TEST_OBJS)
[247]44        $(CXX) $(NEURO_TEST_OBJS) $(LDFLAGS) -o $@
[138]45
46loader_test: $(LOADER_TEST_OBJS)
[247]47        $(CXX) $(LOADER_TEST_OBJS) $(LDFLAGS) -o $@
[138]48
[307]49loader_test_param: $(LOADER_TEST_PARAM_OBJS)
50        $(CXX) $(LOADER_TEST_PARAM_OBJS) $(LDFLAGS) -o $@
51
[138]52serial_test: $(SERIAL_TEST_OBJS)
[247]53        $(CXX) $(SERIAL_TEST_OBJS) $(LDFLAGS) -o $@
[138]54
55multiline_f0_test: $(MULTILINE_F0_OBJS)
[247]56        $(CXX) $(MULTILINE_F0_OBJS) $(LDFLAGS) -o $@
[138]57
58f0_variants_test: $(F0_VARIANTS_OBJS)
[247]59        $(CXX) $(F0_VARIANTS_OBJS) $(LDFLAGS) -o $@
[138]60
61full_props: $(FULL_PROPS_OBJS)
[247]62        $(CXX) $(FULL_PROPS_OBJS) $(LDFLAGS) -o $@
[138]63
[269]64shapeconvert: $(SHAPECONVERT_OBJS)
65        $(CXX) $(SHAPECONVERT_OBJS) $(LDFLAGS) -o $@
66
[138]67part_shapes: $(PART_SHAPES_OBJS)
[247]68        $(CXX) $(PART_SHAPES_OBJS) $(LDFLAGS) -o $@
[138]69
70neuro_layout_test: $(NEURO_LAYOUT_TEST_OBJS)
[247]71        $(CXX) $(NEURO_LAYOUT_TEST_OBJS) $(LDFLAGS) -o $@
[138]72
[191]73geometry_apices_test: $(GEOMETRY_APICES_TEST_OBJS)
[247]74        $(CXX) $(GEOMETRY_APICES_TEST_OBJS) $(LDFLAGS) -o $@
[191]75
76geometry_info_test: $(GEOMETRY_INFO_TEST_OBJS)
[247]77        $(CXX) $(GEOMETRY_INFO_TEST_OBJS) $(LDFLAGS) -o $@
[191]78
79geometry_surface_test: $(GEOMETRY_SURFACE_TEST_OBJS)
[247]80        $(CXX) $(GEOMETRY_SURFACE_TEST_OBJS) $(LDFLAGS) -o $@
[191]81
82geometry_volume_test: $(GEOMETRY_VOLUME_TEST_OBJS)
[247]83        $(CXX) $(GEOMETRY_VOLUME_TEST_OBJS) $(LDFLAGS) -o $@
[191]84
[349]85simil_test: $(SIMIL_TEST_OBJS)
86        $(CXX) $(SIMIL_TEST_OBJS) $(LDFLAGS) -o $@
87       
[351]88simil_unittests: $(SIMIL_UNITTESTS_OBJS)
89        $(CXX) $(SIMIL_UNITTESTS_OBJS) $(LDFLAGS) -o $@
[194]90
[138]91#############################################
92
[351]93ALL_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)
[138]94
[365]95include common/Makefile-maintain
[138]96
97full_clean: clean
[456]98        rm -f $(SDK_TESTS) $(FRAMSTICKS_SDK_LIB)
Note: See TracBrowser for help on using the repository browser.