projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add wrapper headers, with warnings, for various incorrect names under sys
[musl]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
2fb1c99
..
96910bd
100644
(file)
--- 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 $@
@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
- s
h $<
> $@
+include/bits/alltypes.h: include/bits/alltypes.h.
in include/alltypes.h.in tools/mkalltypes.sed
+ s
ed -f tools/mkalltypes.sed include/bits/alltypes.h.in include/alltypes.h.in
> $@
src/ldso/dynlink.lo: arch/$(ARCH)/reloc.h
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 $@ $<
%.o: $(ARCH)/%.s
$(CC) $(CFLAGS_ALL_STATIC) -c -o $@ $<