X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=Makefile;h=4f93049204fbfc4581e33e61ff6ca53320a3c8e5;hp=2265fce43958582282ae1c4d92cde5490be9af01;hb=dac791226a0f6fb8d19d83b63a837254f804dbac;hpb=d76eafcbdc099abfc1b6d09829349f01c0bfcacf diff --git a/Makefile b/Makefile index 2265fce4..4f930492 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ SRCS = $(sort $(wildcard src/*/*.c)) OBJS = $(SRCS:.c=.o) LOBJS = $(OBJS:.o=.lo) GENH = include/bits/alltypes.h +IMPH = src/internal/stdio_impl.h src/internal/pthread_impl.h src/internal/libc.h LDFLAGS = CPPFLAGS = @@ -39,7 +40,7 @@ ALL_INCLUDES = $(sort $(wildcard include/*.h include/*/*.h) $(GENH)) EMPTY_LIB_NAMES = m rt pthread crypt util xnet resolv dl EMPTY_LIBS = $(EMPTY_LIB_NAMES:%=lib/lib%.a) -CRT_LIBS = lib/crt1.o lib/crti.o lib/crtn.o +CRT_LIBS = lib/crt1.o lib/Scrt1.o lib/crti.o lib/crtn.o STATIC_LIBS = lib/libc.a SHARED_LIBS = lib/libc.so TOOL_LIBS = lib/musl-gcc.specs @@ -78,13 +79,13 @@ include/bits/alltypes.h: include/bits/alltypes.h.sh %.o: $(ARCH)/%.s $(CC) $(CFLAGS_ALL_STATIC) -c -o $@ $< -%.o: %.c $(GENH) +%.o: %.c $(GENH) $(IMPH) $(CC) $(CFLAGS_ALL_STATIC) -c -o $@ $< %.lo: $(ARCH)/%.s $(CC) $(CFLAGS_ALL_SHARED) -c -o $@ $< -%.lo: %.c $(GENH) +%.lo: %.c $(GENH) $(IMPH) $(CC) $(CFLAGS_ALL_SHARED) -c -o $@ $< lib/libc.so: $(LOBJS)