diff options
Diffstat (limited to 'kernel/usrbin/Makefile')
| -rw-r--r-- | kernel/usrbin/Makefile | 17 |
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) |
