diff options
Diffstat (limited to 'userspace/sys/Makefile')
| -rw-r--r-- | userspace/sys/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/userspace/sys/Makefile b/userspace/sys/Makefile index 7dde55a..374d490 100644 --- a/userspace/sys/Makefile +++ b/userspace/sys/Makefile @@ -1,3 +1,25 @@ CC=i686-foolos-gcc +CFLAGS=-I../.. +CFLAGS+=-w + + +OBJECTS=sys.o syscalls.o crt0.o +all: $(OBJECTS) + +library_install: all + mkdir temp + mv *.o temp + cp /home/miguel/temp/sysroot/usr/lib/libc.a . + ar x libc.a + rm libc.a + cp temp/sys*.o . + ar rs libc.a *.o + mv libc.a /home/miguel/temp/sysroot/usr/lib/libc.a + cp temp/*.o . + rm temp -rf + +crt_install: all + cp crt0.o /home/miguel/temp/sysroot/usr/lib/ + clean: -rm *.o |
