summaryrefslogtreecommitdiff
path: root/kernel/usrbin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/usrbin/Makefile')
-rw-r--r--kernel/usrbin/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/kernel/usrbin/Makefile b/kernel/usrbin/Makefile
new file mode 100644
index 0000000..dfd1b84
--- /dev/null
+++ b/kernel/usrbin/Makefile
@@ -0,0 +1,17 @@
+TARGET = usrbin.o
+
+ASM = nasm
+
+all: build
+
+build: $(TARGET)
+
+usrbin.bin: usrbin.s
+ $(ASM) -f bin -o usrbin.bin usrbin.s
+
+$(TARGET): usrbin.bin
+ objcopy -I binary -O elf32-i386 -B i386 usrbin.bin usrbin.o
+
+clean:
+ rm -f usrbin.bin
+ rm -f $(TARGET)