Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 39 → Rev 40

/shark/trunk/oslib/libc/makefile
5,18 → 5,17
# Makefile for GNU MAKE & GCC 2.8.0
 
ifndef BASE
BASE = ../..
BASEDOS = ..\..
BASE = ..
BASEDOS = ..
endif
 
include $(BASE)/config/config.mk
include $(BASE)/config.mk
 
COMMON_OBJS = cons1.o \
cons2.o \
reboot.o \
cprintf.o \
message.o
#C_OPT += -DPROFILE
#ASM_OPT += -DPROFILE
 
COMMON_OBJS = reboot.o
 
STRING_OBJS = strncat.o \
strrchr.o \
strstr.o \
47,8 → 46,6
 
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))
 
75,10 → 72,10
 
allclean :
echo # XTN Library dependencies > deps
$(RM) $(BASE)\lib\libhc.a
$(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) $(VMINCL) -M $(COMMON_OBJS:.o=.c) \
$(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