2005-04-19 19:53:18 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/common.make
|
2005-04-19 20:53:42 +00:00
|
|
|
CP = cp
|
2007-04-01 23:44:13 +00:00
|
|
|
vpath %.m src/SDL:src/Core:src/Core/JavaScript:src/Core/Scripting
|
2006-03-05 16:26:25 +00:00
|
|
|
vpath %.h src/SDL:src/Core
|
|
|
|
vpath %.c src/SDL:src/Core:src/BSDCompat
|
2005-04-19 19:53:18 +00:00
|
|
|
GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_USER_ROOT)
|
2006-03-15 02:05:57 +00:00
|
|
|
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
2007-03-12 10:05:33 +00:00
|
|
|
ADDITIONAL_INCLUDE_DIRS = -Ideps/Windows-x86-deps/include
|
2007-03-11 20:14:51 +00:00
|
|
|
ADDITIONAL_OBJC_LIBS = -lglu32 -lopengl32 -lmingw32 -lSDLmain -lSDL -lSDL_mixer -lSDL_image -lgnustep-base -ljs32
|
2007-03-22 02:20:56 +00:00
|
|
|
ADDITIONAL_CFLAGS = -DLINUX -DWIN32 -DNEED_STRLCPY `sdl-config --cflags`
|
2006-03-15 02:05:57 +00:00
|
|
|
# note the vpath stuff above isn't working for me, so adding src/SDL and src/Core explicitly
|
2007-04-01 15:11:22 +00:00
|
|
|
ADDITIONAL_OBJCFLAGS = -DLOADSAVEGUI -DLINUX -DWIN32 -DXP_WIN -Wno-import `sdl-config --cflags` -Isrc/SDL -Isrc/Core -Isrc/Core/Scripting
|
2007-03-12 10:05:33 +00:00
|
|
|
oolite_LIB_DIRS += -L$(GNUSTEP_LOCAL_ROOT)/lib -Ldeps/Windows-x86-deps/lib
|
2006-03-15 02:05:57 +00:00
|
|
|
else
|
|
|
|
ADDITIONAL_INCLUDE_DIRS = -Isrc/SDL -Isrc/Core -Isrc/BSDCompat
|
2006-04-01 18:57:39 +00:00
|
|
|
ADDITIONAL_OBJC_LIBS = -lGLU -lGL -lSDL -lpthread -lSDL_mixer -lSDL_image -lgnustep-base
|
2006-03-15 02:05:57 +00:00
|
|
|
ADDITIONAL_CFLAGS = -DLINUX -DNEED_STRLCPY `sdl-config --cflags`
|
2007-03-26 01:24:50 +00:00
|
|
|
ADDITIONAL_OBJCFLAGS = -DLOADSAVEGUI -DLINUX -Wno-import `sdl-config --cflags`
|
2006-03-15 02:05:57 +00:00
|
|
|
oolite_LIB_DIRS += -L/usr/X11R6/lib/
|
|
|
|
endif
|
2006-04-01 18:57:39 +00:00
|
|
|
OBJC_PROGRAM_NAME = oolite
|
2005-04-19 20:53:42 +00:00
|
|
|
|
2007-03-20 01:40:09 +00:00
|
|
|
oolite_C_FILES = legacy_random.c strlcpy.c
|
2007-04-07 18:03:50 +00:00
|
|
|
oolite_OBJC_FILES = Comparison.m AI.m DustEntity.m Entity.m GameController.m GuiDisplayGen.m HeadUpDisplay.m main.m MyOpenGLView.m OpenGLSprite.m ParticleEntity.m PlanetEntity.m PlayerEntityLegacyScriptEngine.m PlayerEntityContracts.m PlayerEntityControls.m PlayerEntityLoadSave.m PlayerEntitySound.m PlayerEntity.m ResourceManager.m RingEntity.m ShipEntityAI.m ShipEntity.m SkyEntity.m StationEntity.m TextureStore.m Universe.m OOSound.m SDLMusic.m SDLImage.m NSFileManagerOOExtensions.m JoystickHandler.m PlayerEntityStickMapper.m OOBasicSoundReferencePoint.m OOBasicSoundSource.m OOCharacter.m OOTrumble.m WormholeEntity.m NSScannerOOExtensions.m OOXMLExtensions.m NSMutableDictionaryOOExtensions.m Geometry.m Octree.m CollisionRegion.m OOColor.m OOLogging.m OOCacheManager.m OOCache.m OOStringParsing.m OOCollectionExtractors.m OOVector.m OOMatrix.m OOQuaternion.m OOVoxel.m OOTriangle.m OOPListParsing.m OOFastArithmetic.m OOTextureScaling.m OOConstToString.m OOScript.m OOJSScript.m OOJavaScriptEngine.m OOPListScript.m OOSCompiler.m OOSTokenizer.m NSStringOOExtensions.m PlayerEntityScriptMethods.m OOWeakReference.m OOJSEntity.m EntityOOJavaScriptExtensions.m OOJSQuaternion.m
|
2005-04-19 19:53:18 +00:00
|
|
|
|
2006-04-01 18:57:39 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/objc.make
|
2005-04-19 20:53:42 +00:00
|
|
|
include GNUmakefile.postamble
|