X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=Makefile;h=56bfb40d1834ca508673139c3a29cbef1aaedaed;hp=d0f16dfcac2096c37a366336a45779cba6ddb5ad;hb=4fd159568aa1852fbbe6c11d35ccecaec3715d7c;hpb=1355fdca7cb923c93f9011d8e9dcf49e1a67e537 diff --git a/Makefile b/Makefile index d0f16dfc..56bfb40d 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ GENH = include/bits/alltypes.h CFLAGS = -Os -nostdinc -ffreestanding -std=c99 -D_XOPEN_SOURCE=700 -pipe LDFLAGS = -nostdlib -shared -Wl,-Bsymbolic -INC = -I./include -I./src/internal +INC = -I./include -I./src/internal -I./arch/$(ARCH) PIC = -fPIC AR = $(CROSS_COMPILE)ar RANLIB = $(CROSS_COMPILE)ranlib @@ -54,6 +54,7 @@ clean: rm -f include/bits include/bits: + @test "$(ARCH)" || { echo "Please set ARCH in config.mak before running make." ; exit 1 ; } ln -sf ../arch/$(ARCH)/bits $@ include/bits/alltypes.h.sh: include/bits @@ -83,6 +84,7 @@ lib/libc.a: $(OBJS) $(RANLIB) $@ $(EMPTY_LIBS): + rm -f $@ $(AR) rc $@ lib/%.o: crt/%.o