diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-10-20 18:54:18 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-10-20 18:54:18 +0200 |
| commit | 813272cd88cc6c0a1dfbb121d2130fc849042c8a (patch) | |
| tree | 61b8ede4a5c191c491621f0185d3a442ff5407dd /userspace/Makefile | |
| parent | 2f6fe94d436347c4d886407dbfd44b6ac1aa41fa (diff) | |
1st userspace programm and partial newlib support!
Diffstat (limited to 'userspace/Makefile')
| -rw-r--r-- | userspace/Makefile | 14 |
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 |
