X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=Makefile;fp=Makefile;h=2cd2342a55ff36c894dac6182ae8f12ea930bd1b;hp=b9b780789bbef7e01815d177faef585c7f9f2efc;hb=a80847d86a8865a78fdbebe7f9e2533f7a74e010;hpb=9578f0530ae9eebfc9928b76f8ab2972131c2dac diff --git a/Makefile b/Makefile index b9b78078..2cd2342a 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,9 @@ include/bits/alltypes.h: include/bits/alltypes.h.in include/alltypes.h.in tools/ src/ldso/dynlink.lo: arch/$(ARCH)/reloc.h +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 $@ $<