Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 160 → Rev 3

/shark/trunk/mkf/makefile.libc
0,0 → 1,89
# 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 = ../..
BASEDOS = ..\..
endif
 
include $(BASE)/config/config.mk
 
COMMON_OBJS = cons.o \
reboot.o \
cprintf.o \
message.o
 
STRING_OBJS = strbase.o \
string.o \
strncat.o \
strrchr.o \
strstr.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
 
libs : libhc.a
 
install : libhc.a $(LIB_DIR)
$(CP) libhc.a $(LIB_DIR)
 
$(LIB_DIR) :
$(MKDIR) $(LIB_DIR)
clean :
$(RM) *.o
$(RM) *.err
$(RM) libhc.a
 
allclean :
echo # XTN Library dependencies > deps
$(RM) $(BASE)\lib\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) $(VMINCL) -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
/shark/trunk/mkf/makefile.xlib
0,0 → 1,74
# Standard library for X/COFF applications
# Makefile for GNU MAKE & GCC 2.8.0
 
ifndef BASE
BASE = ../..
BASEDOS = ..\..
endif
 
include $(BASE)/config/config.mk
 
C_OPT += -D__VIRCSW__
ASM_OPT += -D__VIRCSW__
 
C_OPT += -DPROFILE
ASM_OPT += -DPROFILE
 
COMMON_OBJS = xinfo.o \
x1.o \
xsystab.o \
xbios.o \
xconv.o \
xdosf.o \
ccpu.o \
fpu.o \
irq.o \
ctxsw.o \
xinit.o \
vm86.o
#xdosm.o
 
GNU_S_OBJS = xsys0.o cpu2.o exc.o ctx.o vm86-exc.o mem.o
#GNU_C_OBJS = gnucomp.o
 
OBJS = $(GNU_S_OBJS) $(GNU_C_OBJS) $(COMMON_OBJS)
 
.PHONY : clean allclean info install
 
info :
@echo "OSLib Makefile"
@echo "Chose: all, install, clean"
all : libhx.a x0.o
 
libs : libhx.a
 
install : libhx.a x0.o $(LIB_DIR)
$(CP) libhx.a $(LIB_DIR)
$(CP) x0.o $(LIB_DIR)
 
$(LIB_DIR) :
$(MKDIR) $(LIB_DIR)
 
clean :
$(RM) *.o
$(RM) *.err
$(RM) libhx.a
 
allclean :
echo # XTN Library dependencies > deps
$(RM) $(BASE)\lib\libhx.a
$(RM) $(BASE)\lib\x0.o
 
deps: $(COMMON_OBJS:.o=.c) $(patsubst %.o,gnu/%.c,$(GNU_C_OBJS))
$(CC) $(C_OPT) $(VMINCL) -M $(COMMON_OBJS:.o=.c) $(patsubst %.o,gnu/%.c,$(GNU_C_OBJS)) > deps
 
#
# The library!!
#
libhx.a : $(OBJS)
$(AR) rs libhx.a $(OBJS)
 
ifeq (deps,$(wildcard deps))
include deps
endif
/shark/trunk/mkf/readme.txt
0,0 → 1,3
This directory contains a set of makefiles that are used as replacement for the standard OSLib makefiles. They are inserted here to simplify the porting of the new OSLib releases...
 
Paolo