2005-04-19 19:53:18 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/common.make
|
2005-04-19 20:53:42 +00:00
|
|
|
CP = cp
|
2006-03-05 16:26:25 +00:00
|
|
|
vpath %.m src/SDL:src/Core
|
|
|
|
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)
|
|
|
|
ADDITIONAL_INCLUDE_DIRS =
|
2006-04-01 18:57:39 +00:00
|
|
|
ADDITIONAL_OBJC_LIBS = -lglu32 -lopengl32 -lmingw32 -lSDLmain -lSDL -lSDL_mixer -lSDL_image -lgnustep-base
|
2006-03-15 02:05:57 +00:00
|
|
|
ADDITIONAL_CFLAGS = -DLINUX -DWIN32 -DNEED_STRLCPY `sdl-config --cflags`
|
|
|
|
# note the vpath stuff above isn't working for me, so adding src/SDL and src/Core explicitly
|
|
|
|
ADDITIONAL_OBJCFLAGS = -DLOADSAVEGUI -DLINUX -DWIN32 -DHAVE_SOUND -Isrc/SDL -Isrc/Core -Wno-import `sdl-config --cflags`
|
|
|
|
oolite_LIB_DIRS += -L$(GNUSTEP_LOCAL_ROOT)/lib
|
|
|
|
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`
|
|
|
|
ADDITIONAL_OBJCFLAGS = -DLOADSAVEGUI -DLINUX -DHAVE_SOUND -Wno-import `sdl-config --cflags`
|
|
|
|
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
|
|
|
|
2006-03-05 16:26:25 +00:00
|
|
|
oolite_C_FILES = vector.c legacy_random.c strlcpy.c
|
2006-04-04 22:12: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 PlayerEntity_Additions.m PlayerEntity_contracts.m PlayerEntity_Controls.m PlayerEntity_Sound.m PlayerEntity.m ResourceManager.m RingEntity.m ShipEntity_AI.m ShipEntity.m SkyEntity.m StationEntity.m TextureStore.m Universe.m OOSound.m OOMusic.m SDLImage.m LoadSave.m OOFileManager.m JoystickHandler.m PlayerEntity_StickMapper.m OOBasicSoundReferencePoint.m OOBasicSoundSource.m OOCharacter.m OOTrumble.m WormholeEntity.m ScannerExtension.m OOXMLExtensions.m MutableDictionaryExtension.m Geometry.m Octree.m CollisionRegion.m OOColor.m ScriptCompiler.m StringTokeniser.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
|
2005-04-19 19:53:18 +00:00
|
|
|
|