X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=a47439b87daff338d28685d89987e7d248ae5469;hb=d5ca067c7bb47081c169ff8b0213c73418f0525e;hp=13a24e3c1e506d9f107bfa45ed7a192f74a6a0bd;hpb=7b2dd2235dd0db3a2f71e25d1c0925e0348e1996;p=musl diff --git a/Makefile b/Makefile index 13a24e3c..a47439b8 100644 --- a/Makefile +++ b/Makefile @@ -48,12 +48,13 @@ clean: rm -f crt/*.o rm -f $(OBJS) rm -f $(LOBJS) - rm -f $(ALL_LIBS) lib/* + rm -f $(ALL_LIBS) lib/*.[ao] lib/*.so rm -f $(ALL_TOOLS) rm -f $(GENH) 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