Ticket #29109: ATB_114_mac.patch
File ATB_114_mac.patch, 1.8 KB (added by karcaw@…, 14 years ago) |
---|
-
Makefile
1 2 3 all: 4 make -f Makefile.osx -C src all 5 6 install: 7 make -f Makefile.osx -C src install 8 -
src/Makefile.osx
11 11 #LFLAGS = -arch i386 -arch x86_64 12 12 #OUT_DIR = ../lib/debug 13 13 14 PREFIX = usr/local/ 15 DESTDIR = / 16 14 17 #BASE = /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks 15 18 CXX = gcc 16 19 CXXFLAGS = $(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/include20 INCPATH = -I../include -I/usr/include -I$(BASE)/OpenGL.framework/Headers/ -I$(BASE)/GLUT.framework/Headers/ -I$(BASE)/AppKit.framework/Headers/^ 18 21 #-I$(BASE)/OpenGL.framework/Headers/ -I$(BASE)/GLUT.framework/Headers/ -I$(BASE)/AppKit.framework/Headers/ 19 22 LINK = gcc 20 23 #LIBS = -L/usr/X11R6/lib -L. -lglfw -lGL -lGLU -lX11 -lXxf86vm -lXext -lpthread -lm … … 61 64 # @echo "==== Make dependencies =====" 62 65 # makedepend -Y 63 66 # makedepend -a -Y -- $(CXXFLAGS) $(INCPATH) -- $(SRC_FILES) $(NO_STDERR) 67 install: $(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/ 64 72 65 73 $(TARGET): $(OBJS) 66 74 @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) 68 76 69 77 .cpp.o: 70 78 @echo "===== Compile $< ====="