Subversion Repositories shark

Rev

Rev 3 | Go to most recent revision | Details | Last modification | View Log | RSS feed

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