/shark/branches/xen/libc/arch/x86/Makefile |
---|
File deleted |
/shark/branches/xen/libc/arch/x86/ioformat/Makefile |
---|
File deleted |
/shark/branches/xen/libc/arch/x86/stdlib/Makefile |
---|
File deleted |
/shark/branches/xen/libc/arch/x86/libm/Makefile |
---|
File deleted |
/shark/branches/xen/libc/arch/x86/libm/msun/Makefile |
---|
File deleted |
/shark/branches/xen/libc/arch/x86/libm/msun/i387/Makefile |
---|
File deleted |
/shark/branches/xen/libc/arch/x86/libm/machine/Makefile |
---|
File deleted |
/shark/branches/xen/libc/arch/x86/libm/makefile |
---|
0,0 → 1,94 |
# Standard library for X/COFF kernel |
# Makefile for GNU MAKE & GCC 2.8.0 |
# |
# Standard path |
# |
ifndef BASE |
BASE = ../../../../oslib/ |
BASEDOS = .. |
endif |
include $(BASE)/config.mk |
C_OPT += $(INCL)/ll -I. |
C_OPT += -Dlint -Wno-uninitialized -Wno-parentheses |
ASM_OPT += -Dlint -I. |
C_OPT += -Dwrite=glue_write |
SRCDIRS = msun/src msun/i387 machine |
space := $(empty) $(empty) |
vpath %.s msun/i387 |
vpath %.c msun/src machine |
# First find a list of every file that might possibly be a source file, |
# so we only have to scan the source directories once. |
FILES := $(foreach DIR,$(SRCDIRS),$(wildcard $(DIR)/*)) |
# C source files |
CFILES := $(filter %.c,$(FILES)) |
SFILES := $(filter %.s,$(FILES)) |
# The generated object files have the same prefix names as the source files, |
# except they live in the current (object) directory. |
OBJFILES += $(patsubst %.s,%.o,$(notdir $(SFILES))) |
OBJFILES += $(patsubst %.c,%.o,$(notdir $(CFILES))) |
# This is to eliminate duplicate files, |
# which might appear when files are being overridden. |
OBJFILES := $(sort $(OBJFILES)) |
OBJS = $(STUB_OBJS) $(OBJFILES) |
# |
# Ok! Finally the dependency rules! |
# We do not mess with automatic depencencies here!! |
# |
.PHONY : all clean info install |
.SUFFIXES: |
info : |
@echo "OSLib Makefile" |
@echo "Chose: all, install, clean" |
all : libhm.a |
install : libhm.a $(LIB_DIR) |
$(CP) libhm.a $(LIB_DIR) |
$(LIB_DIR) : |
$(MKDIR) $(LIB_DIR) |
clean : |
$(RM) *.o |
$(RM) *.err |
$(RM) libhm.a |
cleanall : clean |
echo # Kernel Dependency file > deps |
$(RM) $(LIB_PATH)libhm.a |
#deps : $(OBJS:.o=.c) |
deps : makefile $(CFILES) |
$(CC) $(C_OPT) -M $(CFILES) > deps |
libhm.a : $(OBJS) |
$(AR) rs libhm.a $(OBJS) |
deb: |
echo $(CFILES) |
%.s:%.c |
ifeq (deps,$(wildcard deps)) |
include deps |
endif |
/shark/branches/xen/libc/arch/x86/string/Makefile |
---|
File deleted |
/shark/branches/xen/libc/arch/x86/makefile |
---|
0,0 → 1,96 |
# Standard library for X/COFF applications |
# Makefile for GNU MAKE & GCC 2.8.0 |
# Standard library for X/COFF applications |
# Makefile for GNU MAKE & GCC 2.8.0 |
ifndef BASE |
BASE = ../../../oslib/ |
BASEDOS = .. |
endif |
include $(BASE)/config.mk |
#C_OPT += -DPROFILE |
#ASM_OPT += -DPROFILE |
COMMON_OBJS = reboot.o |
STRING_OBJS = strncat.o \ |
strrchr.o \ |
strstr.o \ |
string.o \ |
special.o \ |
strnum.o \ |
strbase.o |
IO_OBJS = ecvt.o \ |
fcvt.o \ |
gcvt.o \ |
sprintf.o \ |
ksprintf.o \ |
sscanf.o \ |
ucvt.o |
STD_OBJS = random.o \ |
stdlib.o \ |
strtod.o \ |
strtoi.o \ |
strtol.o \ |
strtou.o \ |
strtoul.o |
GNU_S_OBJS = modf.o |
GNU_C_OBJS = |
OBJS = $(GNU_S_OBJS) $(GNU_C_OBJS) $(COMMON_OBJS) $(STRING_OBJS) $(IO_OBJS) $(STD_OBJS) |
vpath %.c string stdlib ioformat |
#VPATH := $(subst $(space),:,$(SRCDIRS) $(MOSTLY_SRCDIRS)) |
.PHONY : clean allclean info |
info : |
@echo "OSLib Makefile" |
@echo "Chose: all, install, clean" |
all : libhc.a |
make -C libm $@ |
libs : libhc.a |
make -C libm $@ |
install : libhc.a $(LIB_DIR) |
make -C libm $@ |
$(CP) libhc.a $(LIB_DIR) |
$(LIB_DIR) : |
$(MKDIR) $(LIB_DIR) |
clean : |
make -C libm $@ |
$(RM) *.o |
$(RM) *.err |
$(RM) libhc.a |
cleanall : |
make -C libm $@ |
echo # XTN Library dependencies > deps |
$(RM) $(LIB_PATH)libhc.a |
deps: $(COMMON_OBJS:.o=.c) $(patsubst %.o,string/%.c,$(STRING_OBJS)) $(patsubst %.o,ioformat/%.c,$(IO_OBJS)) $(patsubst %.o,stdlib/%.c,$(STD_OBJS)) |
$(CC) -E $(C_OPT) -M $(COMMON_OBJS:.o=.c) \ |
$(patsubst %.o,string/%.c,$(STRING_OBJS)) \ |
$(patsubst %.o,ioformat/%.c,$(IO_OBJS)) \ |
$(patsubst %.o,stdlib/%.c,$(STD_OBJS)) > deps |
# |
# The library!! |
# |
libhc.a : $(OBJS) |
$(AR) rs libhc.a $(OBJS) |
ifeq (deps,$(wildcard deps)) |
include deps |
endif |