Subversion Repositories shark

Rev

Rev 40 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
# Standard library for X/COFF kernel
2
# Makefile for GNU MAKE & GCC 2.8.0
3
 
4
#
5
# Standard path
6
#
7
 
8
ifndef BASE
40 pj 9
	BASE = ..
10
	BASEDOS = ..
2 pj 11
endif
12
 
40 pj 13
include $(BASE)/config.mk
2 pj 14
 
15
C_OPT += -D__VIRCSW__
16
ASM_OPT += -D__VIRCSW__
17
 
18
#C_OPT += -DPROFILE
19
#ASM_OPT += -DPROFILE
40 pj 20
KL_C_OBJ = mem.o \
2 pj 21
	cxsw-2.o \
22
	init.o \
23
	time.o \
24
	aspace.o \
25
	intevt.o \
26
	event.o \
120 giacomo 27
	event1.o \
28
	advtimer.o
2 pj 29
 
30
KL_OBJ = $(KL_C_OBJ) abort.o timeint.o
31
 
32
#
33
# Ok! Finally the dependency rules!
34
# We do not mess with automatic depencencies here!!
35
#
36
 
37
.PHONY : all clean info install
38
 
39
info :
40
	@echo "OSLib Makefile"
41
	@echo "Chose: all, install, clean"
42
 
43
 
44
all : libkl.a
45
 
46
install : libkl.a $(LIB_DIR)
47
	$(CP) libkl.a $(LIB_DIR)
48
 
49
$(LIB_DIR) :
50
	$(MKDIR) $(LIB_DIR)
51
clean :
52
	$(RM) *.o
53
	$(RM) *.err
54
	$(RM) libkl.a
55
 
56
allclean : clean
57
	echo # Kernel Dependency file > deps
40 pj 58
	$(RM) $(LIB_PATH)libkl.a
2 pj 59
 
60
deps :$(KL_C_OBJ:.o=.c)
61
	$(CC) $(C_OPT) $(KLINCL) -M $(KL_C_OBJ:.o=.c) > deps
62
 
63
libkl.a : $(KL_OBJ)
64
	$(AR) rs libkl.a $(KL_OBJ)
65
 
66
etest: estub.o event.o
67
	gcc estub.o event.o -o etest
68
 
69
ifeq (deps,$(wildcard deps))
70
include deps
71
endif