Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1618 → Rev 1681

/shark/branches/xen/oslib/kl/Makefile/makefile
1,72 → 1,13
# Standard library for X/COFF kernel
# Makefile for GNU MAKE & GCC 2.8.0
targets:= \
mem.o \
cxsw-2.o \
init.o \
time.o \
aspace.o \
intevt.o \
event.o \
event1.o \
advtimer.o \
abort.o \
timeint.o
 
#
# Standard path
#
 
ifndef BASE
BASE = ..
BASEDOS = ..
endif
 
include $(BASE)/config.mk
 
C_OPT += -D__VIRCSW__
ASM_OPT += -D__VIRCSW__
INCL += -I$(BASE)/../tracer/include
 
#C_OPT += -DPROFILE
#ASM_OPT += -DPROFILE
KL_C_OBJ = mem.o \
cxsw-2.o \
init.o \
time.o \
aspace.o \
intevt.o \
event.o \
event1.o \
advtimer.o
 
KL_OBJ = $(KL_C_OBJ) abort.o timeint.o
 
#
# Ok! Finally the dependency rules!
# We do not mess with automatic depencencies here!!
#
 
.PHONY : all clean info install
 
info :
@echo "OSLib Makefile"
@echo "Chose: all, install, clean"
 
all : libkl.a
 
install : libkl.a $(LIB_DIR)
$(CP) libkl.a $(LIB_DIR)
 
$(LIB_DIR) :
$(MKDIR) $(LIB_DIR)
clean :
$(RM) *.o
$(RM) *.err
$(RM) libkl.a
 
allclean : clean
echo # Kernel Dependency file > deps
$(RM) $(LIB_PATH)libkl.a
 
deps :$(KL_C_OBJ:.o=.c)
$(CC) $(C_OPT) $(KLINCL) -M $(KL_C_OBJ:.o=.c) > deps
 
libkl.a : $(KL_OBJ)
$(AR) rs libkl.a $(KL_OBJ)
 
etest: estub.o event.o
gcc estub.o event.o -o etest
 
ifeq (deps,$(wildcard deps))
include deps
endif