24fd59bf34
- Remove 4.x support
88 lines
5.5 KiB
Text
88 lines
5.5 KiB
Text
--- source/Irrlicht/Makefile Tue Mar 20 09:59:30 2007
|
|
+++ source/Irrlicht/Makefile Tue Mar 20 10:01:49 2007
|
|
@@ -25,34 +25,31 @@
|
|
IRRIOOBJ = CFileList.o CFileSystem.o CLimitReadFile.o CMemoryReadFile.o CReadFile.o CWriteFile.o CXMLReader.o CXMLWriter.o CZipReader.o CPakReader.o irrXML.o CAttributes.o
|
|
IRROTHEROBJ = CIrrDeviceLinux.o CIrrDeviceStub.o CIrrDeviceWin32.o CLogger.o COSOperator.o Irrlicht.o os.o
|
|
IRRGUIOBJ = CGUIButton.o CGUICheckBox.o CGUIComboBox.o CGUIContextMenu.o CGUIEditBox.o CGUIEnvironment.o CGUIFileOpenDialog.o CGUIFont.o CGUIImage.o CGUIInOutFader.o CGUIListBox.o CGUIMenu.o CGUIMeshViewer.o CGUIMessageBox.o CGUIModalScreen.o CGUIScrollBar.o CGUISkin.o CGUIStaticText.o CGUITabControl.o CGUIToolBar.o CGUIWindow.o CGUIColorSelectDialog.o CDefaultGUIElementFactory.o CGUISpriteBank.o
|
|
-ZLIBOBJ = zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o
|
|
-JPEGLIBOBJ = jpeglib/jcapimin.o jpeglib/jcapistd.o jpeglib/jccoefct.o jpeglib/jccolor.o jpeglib/jcdctmgr.o jpeglib/jchuff.o jpeglib/jcinit.o jpeglib/jcmainct.o jpeglib/jcmarker.o jpeglib/jcmaster.o jpeglib/jcomapi.o jpeglib/jcparam.o jpeglib/jcphuff.o jpeglib/jcprepct.o jpeglib/jcsample.o jpeglib/jctrans.o jpeglib/jdapimin.o jpeglib/jdapistd.o jpeglib/jdatadst.o jpeglib/jdatasrc.o jpeglib/jdcoefct.o jpeglib/jdcolor.o jpeglib/jddctmgr.o jpeglib/jdhuff.o jpeglib/jdinput.o jpeglib/jdmainct.o jpeglib/jdmarker.o jpeglib/jdmaster.o jpeglib/jdmerge.o jpeglib/jdphuff.o jpeglib/jdpostct.o jpeglib/jdsample.o jpeglib/jdtrans.o jpeglib/jerror.o jpeglib/jfdctflt.o jpeglib/jfdctfst.o jpeglib/jfdctint.o jpeglib/jidctflt.o jpeglib/jidctfst.o jpeglib/jidctint.o jpeglib/jidctred.o jpeglib/jmemmgr.o jpeglib/jmemnobs.o jpeglib/jquant1.o jpeglib/jquant2.o jpeglib/jutils.o jpeglib/rdbmp.o jpeglib/rdcolmap.o jpeglib/rdgif.o jpeglib/rdppm.o jpeglib/rdrle.o jpeglib/rdswitch.o jpeglib/rdtarga.o jpeglib/transupp.o jpeglib/wrbmp.o jpeglib/wrgif.o jpeglib/wrppm.o jpeglib/wrrle.o jpeglib/wrtarga.o
|
|
-LIBPNGOBJ = libpng/png.o libpng/pngerror.o libpng/pngget.o libpng/pngmem.o libpng/pngpread.o libpng/pngread.o libpng/pngrio.o libpng/pngrtran.o libpng/pngrutil.o libpng/pngset.o libpng/pngtrans.o libpng/pngwio.o libpng/pngwrite.o libpng/pngwtran.o libpng/pngwutil.o
|
|
# Next variable is for additional scene nodes etc. of customized Irrlicht versions
|
|
EXTRAOBJ =
|
|
-LINKOBJ = $(IRROBJ) $(IRRVIDEOOBJ) $(IRRSWRENDEROBJ) $(IRRIOOBJ) $(IRROTHEROBJ) $(IRRGUIOBJ) $(ZLIBOBJ) $(JPEGLIBOBJ) $(LIBPNGOBJ) $(EXTRAOBJ)
|
|
+LINKOBJ = $(IRROBJ) $(IRRVIDEOOBJ) $(IRRSWRENDEROBJ) $(IRRIOOBJ) $(IRROTHEROBJ) $(IRRGUIOBJ) $(EXTRAOBJ)
|
|
|
|
###############
|
|
#Compiler flags
|
|
-CXXINCS = -I../../include -Izlib -Ijpeglib -Ilibpng
|
|
-CPPFLAGS = $(CXXINCS) -DIRRLICHT_EXPORTS=1
|
|
-CXXFLAGS = -Wall
|
|
-ifndef NDEBUG
|
|
+CXXINCS = -I../../include -I$(LOCALBASE)/include -I$(X11BASE)/include -I/usr/include
|
|
+CPPFLAGS += $(CXXINCS) -DIRRLICHT_EXPORTS=1
|
|
+CXXFLAGS += -Wall
|
|
+ifdef DEBUG
|
|
CXXFLAGS += -g
|
|
else
|
|
-CXXFLAGS += -fexpensive-optimizations -O3
|
|
+CXXFLAGS += -fexpensive-optimizations
|
|
endif
|
|
-CFLAGS := -fexpensive-optimizations -O3 -DPNG_NO_MMX_CODE
|
|
+CFLAGS += -fexpensive-optimizations -DPNG_NO_MMX_CODE
|
|
|
|
#Linux specific options
|
|
STATIC_LIB = libIrrlicht.a
|
|
SHARED_LIB = libIrrlicht.so
|
|
IRRLICHT_DLL := ../../bin/Win32-gcc/Irrlicht.dll
|
|
LIB_PATH = ../../lib/$(SYSTEM)
|
|
-INSTALL_DIR = /usr/local/lib
|
|
-staticlib sharedlib install: SYSTEM = Linux
|
|
-staticlib sharedlib : LDFLAGS = -L/usr/X11R6/lib --no-export-all-symbols --add-stdcall-alias -lGLU -lGL -lXxf86vm
|
|
-staticlib sharedlib : CXXINCS += -I/usr/X11R6/include
|
|
+INSTALL_DIR = $(PREFIX)/lib
|
|
+staticlib sharedlib install: SYSTEM = FreeBSD
|
|
+staticlib sharedlib : LDFLAGS = -L/usr/lib -L$(LOCALBASE) -L$(X11BASE)/lib --no-export-all-symbols --add-stdcall-alias -lGLU -lGL -lXxf86vm
|
|
+staticlib sharedlib : CXXINCS += -I$(X11BASE)/include
|
|
|
|
#Windows specific options
|
|
sharedlib_win32 staticlib_win32: SYSTEM = Win32-gcc
|
|
@@ -61,20 +58,22 @@
|
|
staticlib_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
|
|
|
|
####################
|
|
-# All target, builds Irrlicht as static lib (libIrrlicht.a) and copies it into /lib/Linux
|
|
-all linux: staticlib
|
|
+# All target, builds Irrlicht as static lib (libIrrlicht.a) and copies it into /lib/FreeBSD
|
|
+all freebsd: staticlib sharedlib
|
|
|
|
-# Builds Irrlicht as shared lib (libIrrlicht.so.versionNumber) and copies it into /lib/Linux
|
|
+# Builds Irrlicht as shared lib (libIrrlicht.so.versionNumber) and copies it into /lib/FreeBSD
|
|
sharedlib: $(LINKOBJ)
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -shared -fPIC -o $(SHARED_LIB).$(VERSION) $^ $(LDFLAGS)
|
|
+ mkdir -p $(LIB_PATH)
|
|
cp $(SHARED_LIB).$(VERSION) $(LIB_PATH)
|
|
|
|
# Builds Irrlicht as static lib (libIrrlicht.a)
|
|
$(STATIC_LIB): $(LINKOBJ)
|
|
$(AR) rs $@ $^
|
|
|
|
-# Copies static lib into /lib/Linux
|
|
+# Copies static lib into /lib/FreeBSD
|
|
staticlib: $(STATIC_LIB)
|
|
+ mkdir -p $(LIB_PATH)
|
|
cp $^ $(LIB_PATH)
|
|
|
|
# Builds Irrlicht as dll (Irrlicht.dll) into ../../bin/Win32-gcc
|
|
@@ -100,9 +99,9 @@
|
|
|
|
help:
|
|
@echo "Available targets for Irrlicht"
|
|
- @echo " sharedlib: Build shared library Irrlicht.so for Linux"
|
|
- @echo " staticlib: Build static library Irrlicht.a for Linux"
|
|
- @echo " install: Copy shared library to /usr/lib"
|
|
+ @echo " sharedlib: Build shared library Irrlicht.so for FreeBSD"
|
|
+ @echo " staticlib: Build static library Irrlicht.a for FreeBSD"
|
|
+ @echo " install: Copy shared library to /usr/local/lib"
|
|
@echo ""
|
|
@echo " sharedlib_win32: Build shared library Irrlicht.dll for Windows"
|
|
@echo " staticlib_win32: Build static library Irrlicht.a for Windows"
|