Ticket #19485: ATB_113_mac.patch
File ATB_113_mac.patch, 2.1 KB (added by karcaw@…, 15 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 = 12 12 #OUT_DIR = ../lib/debug 13 13 14 PREFIX = usr/local/ 15 DESTDIR = / 14 16 BASE = /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks 15 17 CXX = gcc 16 18 CXXFLAGS = $(CXXCFG) $(MINGWFLAGS) -Wall -fPIC -fno-strict-aliasing -D_MACOSX -ObjC++ -D__PLACEMENT_NEW_INLINE … … 14 14 BASE = /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks 15 15 CXX = gcc 16 16 CXXFLAGS = $(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/17 INCPATH = -I../include -I/usr/include -I$(BASE)/OpenGL.framework/Headers/ -I$(BASE)/GLUT.framework/Headers/ -I$(BASE)/AppKit.framework/Headers/ 18 18 LINK = gcc 19 19 #LIBS = -L/usr/X11R6/lib -L. -lglfw -lGL -lGLU -lX11 -lXxf86vm -lXext -lpthread -lm 20 20 #LIBS = -L/usr/X11R6/lib -lGL -lX11 -lXxf86vm -lXext -lpthread -lm … … 61 63 # makedepend -Y 62 64 # makedepend -a -Y -- $(CXXFLAGS) $(INCPATH) -- $(SRC_FILES) $(NO_STDERR) 63 65 66 install: $(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 64 72 $(TARGET): $(OBJS) 65 73 @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) 67 75 68 76 .cpp.o: 69 77 @echo "===== Compile $< ====="