Ticket #19485: ATB_113_mac.patch

File ATB_113_mac.patch, 2.1 KB (added by karcaw@…, 15 years ago)
  • Makefile

     
     1
     2
     3all:
     4        make -f Makefile.osx -C src all
     5
     6install:
     7        make -f Makefile.osx -C src install
     8
  • src/Makefile.osx

     
    1111#LFLAGS         =
    1212#OUT_DIR        = ../lib/debug
    1313
     14PREFIX          = usr/local/
     15DESTDIR         = /
    1416BASE            = /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks
    1517CXX             = gcc
    1618CXXFLAGS        = $(CXXCFG) $(MINGWFLAGS) -Wall -fPIC -fno-strict-aliasing -D_MACOSX -ObjC++  -D__PLACEMENT_NEW_INLINE
     
    1414BASE            = /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks
    1515CXX             = gcc
    1616CXXFLAGS        = $(CXXCFG) $(MINGWFLAGS) -Wall -fPIC -fno-strict-aliasing -D_MACOSX -ObjC++  -D__PLACEMENT_NEW_INLINE
    17 INCPATH         = -I../include -I/usr/local/include -I/usr/X11R6/include -I/usr/include -I$(BASE)/OpenGL.framework/Headers/ -I$(BASE)/GLUT.framework/Headers/ -I$(BASE)/AppKit.framework/Headers/
     17INCPATH         = -I../include -I/usr/include -I$(BASE)/OpenGL.framework/Headers/ -I$(BASE)/GLUT.framework/Headers/ -I$(BASE)/AppKit.framework/Headers/
    1818LINK            = gcc
    1919#LIBS           = -L/usr/X11R6/lib -L. -lglfw -lGL -lGLU -lX11 -lXxf86vm -lXext -lpthread -lm
    2020#LIBS           = -L/usr/X11R6/lib -lGL -lX11 -lXxf86vm -lXext -lpthread -lm
     
    6163#       makedepend -Y
    6264#       makedepend -a -Y -- $(CXXFLAGS) $(INCPATH) -- $(SRC_FILES) $(NO_STDERR)
    6365
     66install: $(TARGET) Makefile
     67        mkdir -p $(DESTDIR)$(PREFIX)/lib/
     68        $(COPY) $(OUT_DIR)/lib$(TARGET)$(SO_EXT) $(DESTDIR)$(PREFIX)/lib/
     69        mkdir -p $(DESTDIR)$(PREFIX)include/
     70        $(COPY) ../include/AntTweakBar.h $(DESTDIR)$(PREFIX)/include/
     71
    6472$(TARGET): $(OBJS)
    6573        @echo "===== Link $@ ====="
    66         $(LINK) $(LFLAGS) -dynamiclib -Wl,-undefined -Wl,dynamic_lookup  -o $(OUT_DIR)/lib$(TARGET)$(SO_EXT) $(OBJS) $(LIBS)
     74        $(LINK) $(LFLAGS) -dynamiclib -Wl,-undefined -Wl,dynamic_lookup  -o $(OUT_DIR)/lib$(TARGET)$(SO_EXT) $(OBJS) $(LIBS) -install_name /$(PREFIX)/lib/lib$(TARGET)$(SO_EXT)
    6775
    6876.cpp.o:
    6977        @echo "===== Compile $< ====="