Rearranged for hosted v. freestanding
This commit is contained in:
parent
0e1ece5a24
commit
93e53acd73
1 changed files with 13 additions and 12 deletions
25
makefile
25
makefile
|
@ -29,15 +29,24 @@ LIBK_CPPFLAGS:=$(LIBK_CPPFLAGS) $(KERNEL_ARCH_CPPFLAGS)
|
||||||
|
|
||||||
FREEOBJS=\
|
FREEOBJS=\
|
||||||
$(ARCH_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/cos.o \
|
||||||
math/cosf.o \
|
math/cosf.o \
|
||||||
math/cosl.o \
|
math/cosl.o \
|
||||||
math/fabs.o \
|
math/fabs.o \
|
||||||
math/fabsf.o \
|
math/fabsf.o \
|
||||||
math/fabsl.o \
|
math/fabsl.o \
|
||||||
stdio/printf.o \
|
|
||||||
stdio/putchar.o \
|
|
||||||
stdio/puts.o \
|
|
||||||
stdlib/abort.o \
|
stdlib/abort.o \
|
||||||
stdlib/abs.o \
|
stdlib/abs.o \
|
||||||
stdlib/div.o \
|
stdlib/div.o \
|
||||||
|
@ -46,19 +55,10 @@ stdlib/ldiv.o \
|
||||||
stdlib/llabs.o \
|
stdlib/llabs.o \
|
||||||
stdlib/lldiv.o \
|
stdlib/lldiv.o \
|
||||||
stdlib/rand.o \
|
stdlib/rand.o \
|
||||||
string/memcmp.o \
|
|
||||||
string/memcpy.o \
|
|
||||||
string/memmove.o \
|
|
||||||
string/memset.o \
|
|
||||||
string/strcmp.o \
|
|
||||||
string/strcspn.o \
|
string/strcspn.o \
|
||||||
string/strtok.o \
|
string/strtok.o \
|
||||||
string/strlen.o \
|
|
||||||
time/time.o
|
time/time.o
|
||||||
|
|
||||||
HOSTEDOBJS=\
|
|
||||||
$(ARCH_HOSTEDOBJS)
|
|
||||||
|
|
||||||
OBJS=\
|
OBJS=\
|
||||||
$(FREEOBJS) \
|
$(FREEOBJS) \
|
||||||
$(HOSTEDOBJS)
|
$(HOSTEDOBJS)
|
||||||
|
@ -100,6 +100,7 @@ install: install-headers install-libs
|
||||||
install-headers:
|
install-headers:
|
||||||
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
||||||
cp -R include/. $(DESTDIR)$(INCLUDEDIR)/.
|
cp -R include/. $(DESTDIR)$(INCLUDEDIR)/.
|
||||||
|
cp -R arch/$(HOSTARCH)/*.h $(DESTDIR)$(INCLUDEDIR)/.
|
||||||
|
|
||||||
install-libs: $(BINARIES)
|
install-libs: $(BINARIES)
|
||||||
mkdir -p $(DESTDIR)$(LIBDIR)
|
mkdir -p $(DESTDIR)$(LIBDIR)
|
||||||
|
|
Loading…
Reference in a new issue