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=\
|
||||
$(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)
|
||||
|
|
Loading…
Reference in a new issue