summaryrefslogtreecommitdiff
path: root/Source/Applications/SampleApps/Makefile
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-18 12:35:07 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-18 12:35:07 +0200
commitbc2eccdd11c27029096fb3e891073503eb269e27 (patch)
tree555c2a56c810af5a292dbe270ad9c12dc0f17993 /Source/Applications/SampleApps/Makefile
parent22c06556ccbd07f4ef7da39a62d10e03fbee3fe0 (diff)
downloadMelon-bc2eccdd11c27029096fb3e891073503eb269e27.tar.gz
Melon-bc2eccdd11c27029096fb3e891073503eb269e27.zip
We can now load ELF binaries !!!
Diffstat (limited to 'Source/Applications/SampleApps/Makefile')
-rw-r--r--Source/Applications/SampleApps/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Source/Applications/SampleApps/Makefile b/Source/Applications/SampleApps/Makefile
new file mode 100644
index 0000000..28dad49
--- /dev/null
+++ b/Source/Applications/SampleApps/Makefile
@@ -0,0 +1,29 @@
+.PHONY: clean, mrproper
+
+ASM = nasm
+ASMFLAGS = -f elf
+LD = ld
+LDFLAGS = --entry=start -Ttext=40000000
+
+Applications = asmdemo
+
+all: $(Applications)
+ echo "* Done with applications : $(Applications)"
+
+rebuild: mrproper all
+
+%: %.o
+ echo "* Linking $<..."
+ $(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)