From 5085ba40c8c85a70eff4af636facf9e552e89271 Mon Sep 17 00:00:00 2001 From: Wizzup? Date: Fri, 25 Sep 2009 00:05:00 +0000 Subject: [PATCH] Two makefiles git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@92 3f818213-9676-44b0-a9b4-5e4c4e03d09d --- Projects/SAMufasaGUI/Makefile | 2 +- Projects/SAMufasaGUI/Makefile.win | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 Projects/SAMufasaGUI/Makefile.win diff --git a/Projects/SAMufasaGUI/Makefile b/Projects/SAMufasaGUI/Makefile index 39ee0a1..1f5306a 100644 --- a/Projects/SAMufasaGUI/Makefile +++ b/Projects/SAMufasaGUI/Makefile @@ -22,7 +22,7 @@ units := -Fu../../Units/MMLCore/ -Fu../../Units/MMLAddon/ -Fu../../Units/PascalS lclplatpath := $(lazaruspath)/lcl/units/$(platform)/ -lazarusunits := -Fu$(lazaruspath)/components/synedit/units/x86_64-linux/ -Fu$(lazaruspath)ideintf/units/$(platform)/ -Fu$(lclplatpath) -Fu$(lclplatpath)$(widgetset)/ -Fu$(lazaruspath)/packager/units/$(platform)/ +lazarusunits := -Fu$(lazaruspath)/components/synedit/units/$(platform)/ -Fu$(lazaruspath)ideintf/units/$(platform)/ -Fu$(lclplatpath) -Fu$(lclplatpath)$(widgetset)/ -Fu$(lazaruspath)/packager/units/$(platform)/ default: $(binary) diff --git a/Projects/SAMufasaGUI/Makefile.win b/Projects/SAMufasaGUI/Makefile.win new file mode 100644 index 0000000..94389ba --- /dev/null +++ b/Projects/SAMufasaGUI/Makefile.win @@ -0,0 +1,30 @@ +#$ fpc -MObjFPC -Scgi -O2 -OoREGVAR -gl -vewnhi -l -Fu../../Units/MMLCore/ -Fu../../Units/MMLAddon/ -Fu../../Units/PascalScript/ -Fu../../Units/Misc/ -Fu../../../lazarus/components/synedit/units/x86_64-linux/ -Fu../../../lazarus/ideintf/units/x86_64-linux/ -Fu../../../lazarus/lcl/units/x86_64-linux/ -Fu../../../lazarus/lcl/units/x86_64-linux/gtk2/ -Fu../../../lazarus/packager/units/x86_64-linux/ -Fu. -oSAMufasaGUI -dUseCThreads -dM_MEMORY_DEBUG -dLCL -dLCLgtk2 project1.lpr + +.PHONY: default clean + +#Set these ---------- +platform := i386-win32 +widgetset := win32 +lazaruspath := "C:\path\to\lazarus" + +CC := fpc +build := $(CC) +binary := SAMufasaGUI +flags := -MObjFPC -Scgi -O2 -OoREGVAR -gl -vewnhi -l -Fu. +defines := $(platformdefines) -dM_MEMORY_DEBUG -dLCL -dLCL$(widgetset) +units := -Fu../../Units/MMLCore/ -Fu../../Units/MMLAddon/ -Fu../../Units/PascalScript/ -Fu../../Units/Misc/ + + + +lclplatpath := $(lazaruspath)/lcl/units/$(platform)/ + +lazarusunits := -Fu$(lazaruspath)/components/synedit/units/$(platform)/ -Fu$(lazaruspath)ideintf/units/$(platform)/ -Fu$(lclplatpath) -Fu$(lclplatpath)$(widgetset)/ -Fu$(lazaruspath)/packager/units/$(platform)/ + +default: $(binary) + +clean: + #Zoek zelf ff uit + del $(binary) + +$(binary): + $(CC) $(flags) $(units) $(lazarusunits) -o$(binary) $(defines) project1.lpr