Rearranged for hosted v. freestanding

This commit is contained in:
Gitea 2020-12-21 13:45:13 -06:00
parent 0e1ece5a24
commit 93e53acd73

View file

@ -29,15 +29,24 @@ LIBK_CPPFLAGS:=$(LIBK_CPPFLAGS) $(KERNEL_ARCH_CPPFLAGS)
FREEOBJS=\
$(ARCH_FREEOBJS) \
stdio/printf.o \
stdio/putchar.o \
stdio/puts.o \
string/memcmp.o \
string/memcpy.o \
string/memmove.o \
string/memset.o \
string/strcmp.o \
string/strlen.o \
HOSTEDOBJS=\
$(ARCH_HOSTEDOBJS)
math/cos.o \
math/cosf.o \
math/cosl.o \
math/fabs.o \
math/fabsf.o \
math/fabsl.o \
stdio/printf.o \
stdio/putchar.o \
stdio/puts.o \
stdlib/abort.o \
stdlib/abs.o \
stdlib/div.o \
@ -46,19 +55,10 @@ stdlib/ldiv.o \
stdlib/llabs.o \
stdlib/lldiv.o \
stdlib/rand.o \
string/memcmp.o \
string/memcpy.o \
string/memmove.o \
string/memset.o \
string/strcmp.o \
string/strcspn.o \
string/strtok.o \
string/strlen.o \
time/time.o
HOSTEDOBJS=\
$(ARCH_HOSTEDOBJS)
OBJS=\
$(FREEOBJS) \
$(HOSTEDOBJS)
@ -100,6 +100,7 @@ install: install-headers install-libs
install-headers:
mkdir -p $(DESTDIR)$(INCLUDEDIR)
cp -R include/. $(DESTDIR)$(INCLUDEDIR)/.
cp -R arch/$(HOSTARCH)/*.h $(DESTDIR)$(INCLUDEDIR)/.
install-libs: $(BINARIES)
mkdir -p $(DESTDIR)$(LIBDIR)