2011-03-04 19:21:17 +00:00
|
|
|
# Oolite-linux
|
|
|
|
# GNUmakefile.postamble: Runs after-compilation scripts.
|
|
|
|
# These copy all the base data files into where oolite expects them
|
|
|
|
# to live (Contents/Resources)
|
|
|
|
#
|
|
|
|
CP_FLAGS = -rf
|
|
|
|
|
|
|
|
ifeq ($(debug),yes)
|
|
|
|
EXT =.dbg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(findstring -gnu,$(GNUSTEP_HOST_OS)),-gnu)
|
|
|
|
CP_FLAGS += -u
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
|
|
|
OS_EXT = .exe
|
|
|
|
CP_FLAGS += -u
|
|
|
|
endif
|
|
|
|
|
|
|
|
SRC_BIN = $(OBJC_PROGRAM_NAME)$(OS_EXT)
|
|
|
|
DEST_BIN = $(OBJC_PROGRAM_NAME)$(EXT)$(OS_EXT)
|
|
|
|
|
2013-11-08 19:09:57 +01:00
|
|
|
MKMANIFEST=tools/mkmanifest.sh
|
2013-11-07 20:33:46 +00:00
|
|
|
|
2011-03-04 19:21:17 +00:00
|
|
|
PROGDIR=$(OBJC_PROGRAM_NAME).app
|
|
|
|
|
2013-05-11 23:56:28 +02:00
|
|
|
after-all::
|
2011-03-04 19:21:17 +00:00
|
|
|
$(MKDIRS) $(PROGDIR)
|
|
|
|
$(MKDIRS) $(PROGDIR)/Resources
|
2013-11-07 20:33:46 +00:00
|
|
|
$(MKMANIFEST) > $(PROGDIR)/Resources/manifest.plist
|
2013-05-11 23:56:28 +02:00
|
|
|
$(CP) $(CP_FLAGS) Resources/README.TXT $(PROGDIR)/Resources
|
|
|
|
$(CP) $(CP_FLAGS) Resources/InfoPlist.strings $(PROGDIR)/Resources
|
|
|
|
$(CP) $(CP_FLAGS) Resources/AIs $(PROGDIR)/Resources
|
|
|
|
$(CP) $(CP_FLAGS) Resources/Config $(PROGDIR)/Resources
|
2013-12-01 18:29:08 +00:00
|
|
|
$(CP) $(CP_FLAGS) Resources/Scenarios $(PROGDIR)/Resources
|
2013-05-11 23:56:28 +02:00
|
|
|
$(CP) $(CP_FLAGS) Resources/Scripts $(PROGDIR)/Resources
|
|
|
|
$(CP) $(CP_FLAGS) Resources/Shaders $(PROGDIR)/Resources
|
2013-10-10 20:12:27 +03:00
|
|
|
$(CP) $(CP_FLAGS) Resources/Binary/Images $(PROGDIR)/Resources
|
|
|
|
$(CP) $(CP_FLAGS) Resources/Binary/Models $(PROGDIR)/Resources
|
|
|
|
$(CP) $(CP_FLAGS) Resources/Binary/Music $(PROGDIR)/Resources
|
|
|
|
$(CP) $(CP_FLAGS) Resources/Binary/Sounds $(PROGDIR)/Resources
|
|
|
|
$(CP) $(CP_FLAGS) Resources/Binary/Textures $(PROGDIR)/Resources
|
2011-03-04 19:21:17 +00:00
|
|
|
$(CP) $(CP_FLAGS) Schemata $(PROGDIR)/Resources
|
|
|
|
ifeq ($(ESPEAK),yes)
|
2011-03-18 10:49:08 +00:00
|
|
|
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
|
|
|
$(CP) $(CP_FLAGS) deps/Cross-platform-deps/espeak-data $(PROGDIR)/Resources
|
|
|
|
else
|
2011-03-18 17:18:42 +00:00
|
|
|
ifeq ($(use_deps),yes)
|
2013-10-10 20:12:27 +03:00
|
|
|
$(CP) $(CP_FLAGS) deps/Cross-platform-deps/espeak-data $(PROGDIR)/Resources
|
2011-03-18 17:18:42 +00:00
|
|
|
endif
|
2011-03-18 10:49:08 +00:00
|
|
|
endif
|
2011-03-04 19:21:17 +00:00
|
|
|
endif
|
|
|
|
$(CP) $(CP_FLAGS) src/Cocoa/Info-Oolite.plist $(PROGDIR)/Resources/Info-gnustep.plist
|
|
|
|
$(CP) $(CP_FLAGS) $(GNUSTEP_OBJ_DIR_NAME)/$(SRC_BIN) $(PROGDIR)/$(DEST_BIN)
|
2015-09-06 10:25:25 +01:00
|
|
|
ifeq ($(strip),yes)
|
2011-03-04 19:21:17 +00:00
|
|
|
$(STRIP) $(PROGDIR)/$(DEST_BIN)
|
|
|
|
endif
|
|
|
|
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
2013-10-31 09:06:57 +01:00
|
|
|
ifeq ($(GNUSTEP_HOST_CPU),x86_64)
|
|
|
|
$(CP) $(CP_FLAGS) deps/Windows-deps/x86_64/DLLs/*.dll $(PROGDIR)
|
|
|
|
else
|
|
|
|
$(CP) $(CP_FLAGS) deps/Windows-deps/x86/DLLs/*.dll $(PROGDIR)
|
|
|
|
endif
|
2011-03-04 19:21:17 +00:00
|
|
|
ifeq ($(debug),yes)
|
|
|
|
$(RM) $(PROGDIR)/js32ECMAv5.dll
|
|
|
|
else
|
|
|
|
$(RM) $(PROGDIR)/js32ECMAv5dbg.dll
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
after-clean::
|
|
|
|
$(RM) -rf $(GNUSTEP_OBJ_DIR_BASENAME) $(addprefix $(GNUSTEP_OBJ_DIR_BASENAME), .spk .dbg .spk.dbg)
|