diff options
author | jaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-12-03 00:57:22 +0000 |
---|---|---|
committer | jaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-12-03 00:57:22 +0000 |
commit | 0785f09a42a52f77b1c6d4683edd18385006e1eb (patch) | |
tree | f7e936028942d9962abf50281e838616f4070ab1 /Game/Code/Makefile | |
parent | 758a9f2a8ee94b7e3f20695ede89b6fb71bd7f5b (diff) | |
download | usdx-0785f09a42a52f77b1c6d4683edd18385006e1eb.tar.gz usdx-0785f09a42a52f77b1c6d4683edd18385006e1eb.tar.xz usdx-0785f09a42a52f77b1c6d4683edd18385006e1eb.zip |
Added Makefile and lazres script from
hennymcc ( on IRC )
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@657 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Makefile | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/Game/Code/Makefile b/Game/Code/Makefile new file mode 100644 index 00000000..fcf534cd --- /dev/null +++ b/Game/Code/Makefile @@ -0,0 +1,69 @@ +##
+# UltraStar bamboo build for linux
+##
+
+# lazarus base-dir
+# will be set by configure later on
+LAZDIR := $(shell whereis lazarus | cut -d ' ' -f2)
+#LAZDIR = /usr/local/share/lazarus
+
+# Directories added to the unit path
+UNIT_FLAG = -Fu
+UNIT_PATH = $(UNIT_FLAG)$(LAZDIR)/lcl/units/i386-linux \
+ $(UNIT_FLAG)$(LAZDIR)/components/images/lib/i386-linux \
+ $(UNIT_FLAG)$(LAZDIR)/components/jpeg \
+ $(UNIT_FLAG).
+# $(UNIT_FLAG)$(LAZDIR)/packager/units/i386-linux \
+
+# Directory where compiled units (.ppu and .o) files are stored
+CUNIT_DIR = build/linux/lazarus
+
+# Directories added to the includes path
+INC_FLAG = -Fi
+INC_PATH = $(INC_FLAG)lib/JEDI-SDLv1.0/SDL/Pas
+
+# Defines
+DEFINES = -dLCL
+DEFINES += -dFPC_V220
+
+# Misc fpc options
+COMPAT_FLAGS = -S2dgi
+#COMPAT_FLAGS += -Mdelphi
+VERBOSE_FLAGS = -vew -l
+DEBUG_FLAGS = -gl
+DEBUG_FLAGS += -g
+#DEBUG_FLAGS = -dDEBUG
+#-Crtoi
+#OPTIMIZE_FLAGS_FPC204 = -OG2p3
+#OPTIMIZE_FLAGS_FPC220 = -O2p"NAME"
+#OPTIMIZE_FLAGS = -dRELEASE
+OPTIMIZE_FLAGS += -Xs
+FLAGS = $(COMPAT_FLAGS) \
+ $(VERBOSE_FLAGS) \
+ $(DEBUG_FLAGS) \
+ $(OPTIMIZE_FLAGS) \
+ $(DEFINES)
+
+# lpr project file used as input
+PROJECT_FILE = UltraStar.lpr
+# name of executable
+OUTPUT = UltraStar
+
+all: resource ultrastar
+resource: UltraStar.lrs
+ultrastar: clean_obj
+ mkdir -p $(CUNIT_DIR)
+ fpc $(FLAGS) $(INC_PATH) $(UNIT_PATH) -FU$(CUNIT_DIR) -o$(OUTPUT) $(PROJECT_FILE)
+install:
+ mv $(OUTPUT) ../..
+clean: clean_obj clean_res
+distclean: clean
+clean_obj:
+ rm -f -r $(CUNIT_DIR)/*.o $(CUNIT_DIR)/*.ppu $(CUNIT_DIR)/*.rst
+ rm -f $(OUTPUT)
+clean_res:
+ rm -f UltraStar.lrs link.res
+UltraStar.lrs: UltraStar.rc
+ sh lazres-UltraStar.sh
+
+.PHONY: all resource ultrastar install clean distclean clean_obj clean_res
|