From 2b9e97b8635c20c5a2b87789b1014489863d1994 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Fri, 13 Nov 2009 18:05:27 +0100 Subject: Added a game of life simulator demo --- Source/Applications/Demos/Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Source/Applications/Demos/Makefile (limited to 'Source/Applications/Demos/Makefile') diff --git a/Source/Applications/Demos/Makefile b/Source/Applications/Demos/Makefile new file mode 100644 index 0000000..e66acce --- /dev/null +++ b/Source/Applications/Demos/Makefile @@ -0,0 +1,35 @@ +.PHONY: clean, mrproper + +ASM = nasm +ASMFLAGS = -f bin + +CXX = g++ +CXXFLAGS = -nostartfiles -nostdlib -ffreestanding -fno-exceptions -fno-rtti -I ../../Library/Common -I ../../Library/Interface -I ../../Library/Userland -D THIS_IS_MELON_USERLAND + +LD = ld +LDFLAGS = -T ../../Library/Link.ld -L ../../Library + +Applications = asmdemo cxxdemo GOL + +all: $(Applications) + echo "* Done with applications : $(Applications)" + +rebuild: mrproper all + +%: %.cpp + echo "* Compiling $<..." + $(CXX) $(CXXFLAGS) -c $< -o $@.o + echo "* Linking $@.o..." + $(LD) $(LDFLAGS) $@.o -o $@ + +%: %.asm + echo "* Compiling $<..." + $(ASM) $(ASMFLAGS) -o $@ $< + +clean: + echo "* Removing object files..." + rm -rf *.o + +mrproper: clean + echo "* Removing applications..." + rm -rf $(Applications) -- cgit v1.2.3