Ticket #29109: ATB_114_mac.patch

File ATB_114_mac.patch, 1.8 KB (added by karcaw@…, 14 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         = -arch i386 -arch x86_64
    1212#OUT_DIR        = ../lib/debug
    1313
     14PREFIX          = usr/local/
     15DESTDIR         = /
     16
    1417#BASE           = /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks
    1518CXX             = gcc
    1619CXXFLAGS        = $(CXXCFG) -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
     20INCPATH         = -I../include -I/usr/include -I$(BASE)/OpenGL.framework/Headers/ -I$(BASE)/GLUT.framework/Headers/ -I$(BASE)/AppKit.framework/Headers/^
    1821#-I$(BASE)/OpenGL.framework/Headers/ -I$(BASE)/GLUT.framework/Headers/ -I$(BASE)/AppKit.framework/Headers/
    1922LINK            = gcc
    2023#LIBS           = -L/usr/X11R6/lib -L. -lglfw -lGL -lGLU -lX11 -lXxf86vm -lXext -lpthread -lm
     
    6164#       @echo "==== Make dependencies ====="
    6265#       makedepend -Y
    6366#       makedepend -a -Y -- $(CXXFLAGS) $(INCPATH) -- $(SRC_FILES) $(NO_STDERR)
     67install: $(TARGET) Makefile
     68        mkdir -p $(DESTDIR)$(PREFIX)/lib/
     69        $(COPY) $(OUT_DIR)/lib$(TARGET)$(SO_EXT) $(DESTDIR)$(PREFIX)/lib/
     70        mkdir -p $(DESTDIR)$(PREFIX)include/
     71        $(COPY) ../include/AntTweakBar.h $(DESTDIR)$(PREFIX)/include/
    6472
    6573$(TARGET): $(OBJS)
    6674        @echo "===== Link $@ ====="
    67         $(LINK) $(LFLAGS) -dynamiclib -Wl,-undefined -Wl,dynamic_lookup  -o $(OUT_DIR)/lib$(TARGET)$(SO_EXT) $(OBJS) $(LIBS)
     75        $(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)
    6876
    6977.cpp.o:
    7078        @echo "===== Compile $< ====="