Subversion Repositories shark

Rev

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

Rev Author Line No. Line
2 pj 1
#
2
#
3
#
4
 
5
ifndef BASE
6
BASE=../..
7
endif
45 pj 8
OSLIB=$(BASE)/oslib
9
 
2 pj 10
include $(BASE)/config/config.mk
11
 
12
LIBRARY       = blk
13
 
14
OBJS_PATH     = $(BASE)/drivers/block
15
 
16
OBJS= 	bdev.o 	 \
17
	lodsk.o  \
18
	phdsk.o  \
19
	glue.o 	 \
20
	ide.o 	 \
21
	idereq.o \
22
	idelow.o
23
 
24
# for debug
25
#C_DEF += -D_PARANOIA
26
 
27
# for NO debug
28
C_DEF += -DNDEBUG
29
 
30
C_MAC += -imacros $(BASE)/include/fs/bdevconf.h
31
C_INC += -I.
32
 
33
#
34
#
35
#
36
 
37
_SCHED_FCFS=1
38
 
39
#
40
 
41
ifdef _SCHED_FCFS
42
C_DEF += -D_SCHED_FCFS
43
OBJS  += fcfs/fcfs.o
44
endif
45
 
46
ifdef _SCHED_SSTF
47
C_DEF += -D_SCHED_SSTF
48
OBJS  += sstf/sstf.o
49
endif
50
 
51
ifdef _SCHED_LOOK
52
C_DEF += -D_SCHED_LOOK
53
OBJS  += look/look.o
54
endif
55
 
56
ifdef _SCHED_CLOOK
57
C_DEF += -D_SCHED_CLOOK
58
OBJS  += clook/clook.o
59
endif
60
 
61
ifdef _SCHED_EDF
62
C_DEF += -D_SCHED_EDF
63
OBJS  += edf/edf.o
64
endif
65
 
66
ifdef _SCHED_PSCAN
67
C_DEF += -D_SCHED_PSCAN
68
OBJS  += pscan/pscan.o
69
endif
70
 
71
#
72
#
73
#
74
 
75
include $(BASE)/config/lib.mk
76
 
77
SCHEDDIRS := fcfs sstf look clock edf pscan
78
SCHEDOBJS := $(foreach DIR,$(SCHEDDIRS),$(wildcard $(DIR)/*.o))
79
 
80
clean::
81
	rm -f $(SCHEDOBJS)