From 2c8cefb3a269d66a6a705bcb4912b0657379273c Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 25 May 2015 13:04:41 +0200 Subject: fixed crt0.o for compiler toolchain (-lfool no more!) --- userspace/sys/Makefile | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'userspace/sys/Makefile') 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 -- cgit v1.2.3