summaryrefslogtreecommitdiffstats
path: root/contrib/flashimg/Makefile
diff options
context:
space:
mode:
authorMichael Brown2005-05-17 18:44:57 +0200
committerMichael Brown2005-05-17 18:44:57 +0200
commit1097cf8685cd81f0003bd6f17d050e5174a85b90 (patch)
tree47a39f2a1e980cca43c28c4d1a6dfdf431b910b2 /contrib/flashimg/Makefile
parentQuickly hacked to use a buffer rather than a processor. (diff)
downloadipxe-1097cf8685cd81f0003bd6f17d050e5174a85b90.tar.gz
ipxe-1097cf8685cd81f0003bd6f17d050e5174a85b90.tar.xz
ipxe-1097cf8685cd81f0003bd6f17d050e5174a85b90.zip
Initial revision
Diffstat (limited to 'contrib/flashimg/Makefile')
-rw-r--r--contrib/flashimg/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/contrib/flashimg/Makefile b/contrib/flashimg/Makefile
new file mode 100644
index 000000000..39f58e23f
--- /dev/null
+++ b/contrib/flashimg/Makefile
@@ -0,0 +1,29 @@
+CPPFLAGS = -x assembler-with-cpp
+AS86 = as86
+LD86 = ld86
+OBJDUMP = objdump
+
+.SUFFIXES: .s86 .asm .aout .img
+
+all: flashimg.img
+
+clean:
+ rm -rf *.o *.s86 *.aout *.img
+
+realclean: clean
+ rm -rf *.img
+
+.asm.s86: $*.asm $*.inc
+ $(CPP) $(CPPFLAGS) -o $@ $*.asm
+
+.s86.img: $*.s86
+ $(AS86) -0 -b $@ $*.s86
+
+# .s86.o: $*.s86
+# $(AS86) -0 -a -o $@ $*.s86
+#
+# .o.aout: $*.o
+# $(LD86) -0 -s -o $@ $*.o
+#
+# .aout.img:
+# dd if=$*.aout of=$@ bs=32 skip=1