diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-25 13:04:41 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-25 13:04:41 +0200 |
| commit | 2c8cefb3a269d66a6a705bcb4912b0657379273c (patch) | |
| tree | 677ee15b87072e5ccd560f1be277abaf11b1ec28 /userspace/sys/Makefile | |
| parent | 8ea3e244d44190e44a092ffb004e13ad94174c68 (diff) | |
fixed crt0.o for compiler toolchain (-lfool no more!)
Diffstat (limited to 'userspace/sys/Makefile')
| -rw-r--r-- | userspace/sys/Makefile | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/userspace/sys/Makefile b/userspace/sys/Makefile index 2e71714..05177a6 100644 --- a/userspace/sys/Makefile +++ b/userspace/sys/Makefile @@ -1,31 +1,23 @@ SYSROOT=/home/miguel/opt/foolos CC=i686-foolos-gcc +LD=i686-foolos-ld CFLAGS= CFLAGS+=-w CFLAGS+=-I../.. CFLAGS+=-gstabs -OBJECTS=sys.o syscalls.o crt0.o - -full: clean library_install crt_install header_install - -all: $(OBJECTS) - -crt0.o: crt0.S +install: crt_install header_install crt_install: crt0.o cp crt0.o $(SYSROOT)/usr/lib/ -header_install: - cp termios.h $(SYSROOT)/usr/include/sys/ - -libfool.a: sys.o syscalls.o - ar rcs libfool.a sys.o syscalls.o - -library_install: libfool.a - cp libfool.a $(SYSROOT)/usr/lib/ +crt0.o: crt.o sys.o syscalls.o + $(LD) -r $^ -o $@ +header_install: + cp *.h $(SYSROOT)/usr/include/ + cp sys/*.h $(SYSROOT)/usr/include/sys/ clean: -rm *.o *.a |
