mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Rename libc-sortix to libk.
This commit is contained in:
parent
512c9d3f08
commit
fc713baba3
19 changed files with 17 additions and 18 deletions
|
@ -68,7 +68,7 @@ CRTN_OBJ:=$(CPU)/crtn.o
|
|||
|
||||
LIBS=\
|
||||
-nostdlib \
|
||||
-lc-sortix \
|
||||
-lk \
|
||||
-lgcc \
|
||||
|
||||
OBJS=\
|
||||
|
|
|
@ -550,17 +550,17 @@ $(CRTOBJ) \
|
|||
|
||||
HEADERS:=$(shell find include -type d)
|
||||
|
||||
SORTIXOBJS:=$(addprefix sortix/,$(FREEOBJS))
|
||||
SORTIXCPPFLAGS:=$(CPPFLAGS) -D__is_sortix_kernel
|
||||
SORTIXFLAGS:=$(FLAGS) -ffreestanding
|
||||
SORTIXCFLAGS:=$(CFLAGS)
|
||||
SORTIXCXXFLAGS:=$(CXXFLAGS)
|
||||
LIBK_OBJS:=$(FREEOBJS:.o=.libk.o)
|
||||
LIBK_CPPFLAGS:=$(CPPFLAGS) -D__is_sortix_kernel
|
||||
LIBK_FLAGS:=$(FLAGS) -ffreestanding
|
||||
LIBK_CFLAGS:=$(CFLAGS)
|
||||
LIBK_CXXFLAGS:=$(CXXFLAGS)
|
||||
ifeq ($(HOST),x86_64-sortix)
|
||||
SORTIXFLAGS:=$(SORTIXFLAGS) -mno-red-zone
|
||||
LIBK_FLAGS:=$(LIBK_FLAGS) -mno-red-zone
|
||||
endif
|
||||
|
||||
BINS=libc.a libdl.a libg.a libpthread.a librt.a $(CRTOBJ)
|
||||
BINSKERNEL=libc-sortix.a
|
||||
BINSKERNEL=libk.a
|
||||
INSTALLLIBS:=$(addprefix $(DESTDIR)$(LIBDIR)/,$(BINS))
|
||||
INSTALLLIBSKERNEL:=$(addprefix $(DESTDIR)$(LIBDIR)/,$(BINSKERNEL))
|
||||
|
||||
|
@ -578,15 +578,15 @@ FORCE:
|
|||
libc.a: $(OBJS)
|
||||
$(HOSTAR) rcs $@ $(OBJS)
|
||||
|
||||
libc-sortix.a: $(SORTIXOBJS)
|
||||
$(HOSTAR) rcs $@ $(SORTIXOBJS)
|
||||
|
||||
libdl.a:
|
||||
$(HOSTAR) rcs $@
|
||||
|
||||
libg.a:
|
||||
$(HOSTAR) rcs $@
|
||||
|
||||
libk.a: $(LIBK_OBJS)
|
||||
$(HOSTAR) rcs $@ $(LIBK_OBJS)
|
||||
|
||||
libpthread.a:
|
||||
$(HOSTAR) rcs $@
|
||||
|
||||
|
@ -603,7 +603,7 @@ crtn.o: $(CPUDIR)/crtn.o
|
|||
ln -f $< $@
|
||||
|
||||
# header preprocessing
|
||||
$(OBJS) $(SORTIXOBJS): $(HEADERS)
|
||||
$(OBJS) $(LIBK_OBJS): $(HEADERS)
|
||||
|
||||
headers:
|
||||
|
||||
|
@ -617,12 +617,12 @@ headers:
|
|||
%.o: %.S
|
||||
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(FLAGS) $(CFLAGS)
|
||||
|
||||
# libc-sortix
|
||||
sortix/%.o: %.c
|
||||
$(HOSTCC) -c $< -o $@ $(SORTIXCPPFLAGS) $(SORTIXFLAGS) $(SORTIXCFLAGS)
|
||||
# libk
|
||||
%.libk.o: %.c
|
||||
$(HOSTCC) -c $< -o $@ $(LIBK_CPPFLAGS) $(LIBK_FLAGS) $(LIBK_CFLAGS)
|
||||
|
||||
sortix/%.o: %.cpp
|
||||
$(HOSTCXX) -c $< -o $@ $(SORTIXCPPFLAGS) $(SORTIXFLAGS) $(SORTIXCXXFLAGS)
|
||||
%.libk.o: %.cpp
|
||||
$(HOSTCXX) -c $< -o $@ $(LIBK_CPPFLAGS) $(LIBK_FLAGS) $(LIBK_CXXFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f $(wildcard *.o) $(wildcard */*.o) $(wildcard */*/*.o) $(wildcard *.a)
|
||||
|
|
0
libc/sortix/.gitignore
vendored
0
libc/sortix/.gitignore
vendored
0
libc/sortix/assert/.gitignore
vendored
0
libc/sortix/assert/.gitignore
vendored
0
libc/sortix/aux/.gitignore
vendored
0
libc/sortix/aux/.gitignore
vendored
0
libc/sortix/ctype/.gitignore
vendored
0
libc/sortix/ctype/.gitignore
vendored
0
libc/sortix/dirent/.gitignore
vendored
0
libc/sortix/dirent/.gitignore
vendored
0
libc/sortix/errno/.gitignore
vendored
0
libc/sortix/errno/.gitignore
vendored
0
libc/sortix/fnmatch/.gitignore
vendored
0
libc/sortix/fnmatch/.gitignore
vendored
0
libc/sortix/init/.gitignore
vendored
0
libc/sortix/init/.gitignore
vendored
0
libc/sortix/inttypes/.gitignore
vendored
0
libc/sortix/inttypes/.gitignore
vendored
0
libc/sortix/signal/.gitignore
vendored
0
libc/sortix/signal/.gitignore
vendored
0
libc/sortix/stdio/.gitignore
vendored
0
libc/sortix/stdio/.gitignore
vendored
0
libc/sortix/stdlib/.gitignore
vendored
0
libc/sortix/stdlib/.gitignore
vendored
1
libc/sortix/string/.gitignore
vendored
1
libc/sortix/string/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
|
0
libc/sortix/time/.gitignore
vendored
0
libc/sortix/time/.gitignore
vendored
0
libc/sortix/timespec/.gitignore
vendored
0
libc/sortix/timespec/.gitignore
vendored
0
libc/sortix/wchar/.gitignore
vendored
0
libc/sortix/wchar/.gitignore
vendored
0
libc/sortix/wctype/.gitignore
vendored
0
libc/sortix/wctype/.gitignore
vendored
Loading…
Reference in a new issue