Subversion Repositories shark

Rev

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