summaryrefslogtreecommitdiff
path: root/userspace/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/Makefile')
-rw-r--r--userspace/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/userspace/Makefile b/userspace/Makefile
new file mode 100644
index 0000000..2a286da
--- /dev/null
+++ b/userspace/Makefile
@@ -0,0 +1,14 @@
+#i686-elf-gcc test.c -L/home/miguel/temp/fool-os-stuff/newlib-build-clean/i686-elf/newlib/ -I/home/miguel/temp/fool-os-stuff/newlib-2.1.0/newlib/libc/include/ -L/home/miguel/temp/fool-os-stuff/newlib-build-clean/i686-elf/libgloss/libnosys/
+
+CC=i686-elf-gcc
+LD=i686-elf-ld
+
+CFLAGS=-I/home/miguel/temp/fool-os-stuff/newlib-2.1.0/newlib/libc/include
+LDFLAGS=-L/home/miguel/temp/fool-os-stuff/newlib-build-clean/i686-elf/newlib/ \
+ -L/home/miguel/temp/fool-os-stuff/newlib-build-clean/i686-elf/libgloss/libnosys/ \
+ -lnosys
+
+all: test.o crt0.o
+ ${CC} -T linker.ld ${LDFLAGS} test.o -Wl,--oformat,binary -o userprog
+clean:
+ -rm *.o *.out userprog