aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Makefile
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-05 21:55:59 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-05 21:55:59 +0000
commit250c2dc22419d2b2101bbb6d69aa5d52e2479a6e (patch)
treed47faedbc787aad4fa560cb7563e686ababdf4f0 /Game/Code/Makefile
parent0cff62ed5ea1e4964817bc6efdff523f7b63342e (diff)
downloadusdx-250c2dc22419d2b2101bbb6d69aa5d52e2479a6e.tar.gz
usdx-250c2dc22419d2b2101bbb6d69aa5d52e2479a6e.tar.xz
usdx-250c2dc22419d2b2101bbb6d69aa5d52e2479a6e.zip
updated configure stuff
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@831 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Makefile.in29
1 files changed, 20 insertions, 9 deletions
diff --git a/Game/Code/Makefile.in b/Game/Code/Makefile.in
index b702f8d6..5df6c737 100644
--- a/Game/Code/Makefile.in
+++ b/Game/Code/Makefile.in
@@ -1,5 +1,6 @@
##
# Makefile for @PACKAGE_NAME@ @PACKAGE_VERSION@
+# @AUTOCONF_INFO@
# @PACKAGE_BUGREPORT@
##
@@ -12,6 +13,7 @@ infodir = @infodir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
datarootdir = @datarootdir@
+VPATH = @srcdir@
# install tool
INSTALL = @INSTALL@
@@ -21,6 +23,8 @@ LN_S = @LN_S@
USDX_PREFIX = UltraStar
USDX_TOOLS_DIR = ../../Tools
+
+
EXE_SUFFIX = @EXEEXT@
# Free Pascal compiler
@@ -83,26 +87,33 @@ USDX_BIN = $(USDX_PREFIX)$(EXE_SUFFIX)
# name of resource
USDX_RES = $(USDX_PREFIX)$(RES_SUFFIX)
-.PHONY: all resources ultrastar install uninstall clean distclean clean_obj clean_res
+.PHONY: all resources ultrastardx-app install uninstall clean distclean clean_obj clean_res
-all: resources ultrastar
+all: resources ultrastardx-app
resources: $(USDX_RES)
-# we need to rebuild everything, fpc does some sort of caching of old files,
-# so we have to delete all the old stuff first
-ultrastar: clean_obj
+ultrastardx-app: $(USDX_BIN)
+
+# Clean and rebuild everything because FPC caches some old files
+# (it uses an .inc-files cache for example).
+# As a result FPC misses some changes if it is called without cleaning
+# up first (very annoying while debugging).
+$(USDX_BIN):
+ $(MAKE) clean_obj
mkdir -p $(PCUNIT_DIR)
$(PPC) $(PFLAGS) $(PINC_FLAGS) $(PUNIT_FLAGS) $(PCUNIT_FLAGS) -o$(USDX_BIN) $(USDX_SRC)
install: all
+# TODO: copy files to the appropriate places
# $()/mkinstalldirs $(bindir)
# $()/mkinstalldirs $(libdir)
# $()/mkinstalldirs $(infodir)
- mv $(OUTPUT) ../..
+ mv $(USDX_BIN) ../..
# $(INSTALL) $(USDX_BIN) $(bindir)/$(USDX_BIN)
uninstall:
+# TODO: remove installed files
# rm -f ...
echo "Comming soon!"
@@ -116,7 +127,7 @@ distclean: clean
rm -f config.inc config.log config.status configure
clean_obj:
- find "$(PCUNIT_DIR)" -name "*.o" -o -name "*.ppu" -o -name "*.rst" | xargs rm -f
+ find "$(PCUNIT_DIR)" -name "*.o" -o -name "*.ppu" -o -name "*.rst" -o -name "*.compiled" | xargs rm -f
rm -f $(OUTPUT)
clean_res:
@@ -128,7 +139,7 @@ $(USDX_RES): $(RESCOMPILER_BIN) $(USDX_PREFIX).rc
$(RESCOMPILER_BIN): $(RESCOMPILER_SRC)
$(PPC) $(RESCOMPILER_PFLAGS) $(PUNIT_FLAGS) $(PCUNIT_FLAGS) -o$@ $(RESCOMPILER_SRC)
-configure: configure.ac aclocal.m4
+configure: configure.ac config.inc.in aclocal.m4
autoconf
aclocal.m4: m4/*
@@ -138,4 +149,4 @@ Makefile: Makefile.in config.status
./config.status
config.status: configure
- ./config.status --recheck \ No newline at end of file
+ ./config.status --recheck