X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=96910bd20886142f373d81933b0b98bb2af3a15e;hb=54446d730cfb17c5f7bcf57f139458678f5066cc;hp=2fb1c998018d1da3d9eee3ee88addecca3467cf2;hpb=3e7f186ea18d7362e3e117f6e848b5514d8266d1;p=musl diff --git a/Makefile b/Makefile index 2fb1c998..96910bd2 100644 --- a/Makefile +++ b/Makefile @@ -73,13 +73,20 @@ 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 +include/bits/alltypes.h.in: include/bits -include/bits/alltypes.h: include/bits/alltypes.h.sh - sh $< > $@ +include/bits/alltypes.h: include/bits/alltypes.h.in include/alltypes.h.in tools/mkalltypes.sed + sed -f tools/mkalltypes.sed include/bits/alltypes.h.in include/alltypes.h.in > $@ src/ldso/dynlink.lo: arch/$(ARCH)/reloc.h +crt/crt1.o crt/Scrt1.o: $(wildcard arch/$(ARCH)/crt_arch.h) + +crt/Scrt1.o: CFLAGS += -fPIC + +OPTIMIZE_SRCS = $(wildcard $(OPTIMIZE_GLOBS:%=src/%)) +$(OPTIMIZE_SRCS:%.c=%.o) $(OPTIMIZE_SRCS:%.c=%.lo): CFLAGS += -O3 + %.o: $(ARCH)/%.s $(CC) $(CFLAGS_ALL_STATIC) -c -o $@ $<