summaryrefslogtreecommitdiffstats
path: root/lkm/atapi/Makefile
blob: d232446217762aa6c07e368f9eceb43088c06d8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#	$Id: Makefile,v 1.4 1996/06/23 14:58:08 bde Exp $

.PATH:          ${.CURDIR}/../../sys/i386/isa
KMOD            = atapi_mod
SRCS            = atapi.c wdc.h opt_atapi.h #wcd.h 
NOMAN           =
BINDIR          = /lkm
CFLAGS         += -nostdinc -I. -DATAPI_MODULE
CLEANFILES     += $(KMOD) machine wdc.h wcd.h opt_atapi.h *.b
LN              = ln -f -s
EXPORT_SYMS	= _atapi_mod _atapi_debug_ptr _atapi_intr_ptr \
		  _atapi_request_callback_ptr _atapi_request_immediate_ptr \
		  _atapi_request_wait_ptr _atapi_start_ptr

load:           ${PROG}
		/sbin/modload -u -e atapi_mod $(PROG)

unload:         ${PROG}
		/sbin/modunload -n atapi

wdc.h:
		echo "#define NWDC 2" > wdc.h

#		echo "#define NWD 4" >> wdc.h

wcd.h:
		echo "#define NWCD 1" > wcd.h

opt_atapi.h:
		echo "#define ATAPI 1"> opt_atapi.h

.c.o:
		-@$(LN) /sys/i386/include machine
		$(CC) $(CFLAGS) -c $<
		-@rm -f machine

.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud