Ticket #32433: patch-makefile.diff

File patch-makefile.diff, 1.4 KB (added by rudloff@…, 13 years ago)
  • makefile

    old new  
    121121# Linux options  gcc 4.2.2
    122122#CPU_FLAGS = -fPIC  -O0 -g
    123123#CPU_FLAGS = -O2 -fsingle-precision-constant
    124 CPU_FLAGS = -O2 -g -fpic -msse -msse2 -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant
     124CPU_FLAGS = -O2 -g -msse -msse2 -ffloat-store -ffast-math -funsafe-math-optimizations -fsingle-precision-constant
    125125       
    126126#FLAGS = -c -Wall -Wno-strict-aliasing -D_LINUX_VER -ffloat-store -ffast-math -fsingle-precision-constant $(CPU_FLAGS) -I$(DG_INCLUDED_PATH) -I$(DG_INCLUDED_PHYSICS_PATH)
    127 FLAGS = -c -Wall -Wno-strict-aliasing -D_LINUX_VER  $(CPU_FLAGS) -I$(DG_INCLUDED_PATH) -I$(DG_INCLUDED_PHYSICS_PATH)
     127FLAGS = -c -Wall -Wno-strict-aliasing -D_MAC_VER  $(CPU_FLAGS) -I$(DG_INCLUDED_PATH) -I$(DG_INCLUDED_PHYSICS_PATH)
    128128
    129129
    130130.SUFFIXES : .o .cpp
     
    145145libNewton.a : $(DG_OBJ_FILES)
    146146        ar r $@ $?
    147147#       strip -g -S -d -v libNewton.a -olibNewton.a
    148         cp libNewton.a ../../../packages/$(PLATFORM)/libNewton.a
    149         cp ../../source/newton/Newton.h ../../../packages/$(PLATFORM)/Newton.h
    150         gcc -shared -Wl,-soname,libNewton.so $? -o libNewton.so
    151         cp libNewton.so ../../../packages/$(PLATFORM)/libNewton.so
    152148#       sudo cp libNewton.so /usr/lib
    153149
    154150