Changeset 456 for cpp


Ignore:
Timestamp:
01/28/16 23:28:49 (9 years ago)
Author:
sz
Message:

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
Location:
cpp/frams
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/Makefile-SDK

    r365 r456  
    1414CXXFLAGS= -I$(CURDIR) -std=gnu++11 $(SDK_BUILD_CONFIG) $(CXXWARNINGS) -g
    1515
     16AR=ar
     17ARFLAGS=rs
     18FRAMSTICKS_SDK_LIB=libFramsticksSDK.a
     19$(FRAMSTICKS_SDK_LIB): CXXFLAGS+= -fPIC
     20
    1621#############################################
     22
     23lib: $(FRAMSTICKS_SDK_LIB)
     24
     25$(FRAMSTICKS_SDK_LIB): $(SDK_LIB_OBJS)
     26        $(AR) $(ARFLAGS) $(FRAMSTICKS_SDK_LIB) $(SDK_LIB_OBJS)
    1727
    1828genomanipulation: $(GENOMANIPULATION_OBJS)
     
    8696
    8797full_clean: clean
    88         rm -f $(SDK_TESTS)
     98        rm -f $(SDK_TESTS) $(FRAMSTICKS_SDK_LIB)
  • cpp/frams/Makefile-SDK-files

    r399 r456  
    2424
    2525STDOUT_LOGGER_OBJS=common/virtfile/virtfile.o common/loggers/loggertostdout.o common/console.o
     26
     27SDK_LIB_OBJS= $(STDOUT_LOGGER_OBJS) $(SDK_OBJS) $(GENOCONV_SDK_OBJS) $(GENMAN_SDK_OBJS) $(GEOMETRY_OBJS)
    2628
    2729#### sdk_tests
Note: See TracChangeset for help on using the changeset viewer.