head	1.8;
access;
symbols;
locks
	source:1.8; strict;
comment	@# @;


1.8
date	99.05.24.23.25.28;	author source;	state Exp;
branches;
next	1.7;

1.7
date	98.12.12.04.22.26;	author cjohns;	state Exp;
branches;
next	1.6;

1.6
date	98.10.31.05.06.15;	author cjohns;	state Exp;
branches;
next	1.5;

1.5
date	98.10.14.10.53.48;	author cjohns;	state Exp;
branches;
next	1.4;

1.4
date	97.10.31.20.58.23;	author source;	state Exp;
branches;
next	1.3;

1.3
date	97.02.07.15.10.49;	author eric;	state Exp;
branches;
next	1.2;

1.2
date	97.02.06.22.08.52;	author eric;	state Exp;
branches;
next	1.1;

1.1
date	97.02.06.19.53.25;	author eric;	state Exp;
branches;
next	;


desc
@Motorola Background Debug Mode driver
@


1.8
log
@It seems that depmod complains about unresolved symbols even
when the driver loads and works properly.  I don't know what's
changed in Linux to cause this, but for now just get rid of
the depmod.
@
text
@prefix = /usr

INCDIR	= $(prefix)/include
MODDIR	= /lib/modules/`uname -r`/misc

# if the kernel is configured for module versions, uncomment this line
#MODVERSIONS=-DMODVERSIONS

LIB	= libBDM.a

CFLAGS = -Wall -g -O -pipe -I. -DMODULE -D__KERNEL__ $(MODVERSIONS)

all: bdm.o

$(LIB): $(LIB)(bdmIO.o)
	ranlib $(LIB)

install: all
	-mkdir -p $(INCDIR) $(MODDIR)
	cp bdm.h $(INCDIR)/bdm.h
	cp bdm.o $(MODDIR)/bdm.o

bdm.o: bdm.h

clean:
	rm -f *.o $(LIB)
@


1.7
log
@Fixed the modversions.
@
text
@a21 1
	depmod -a
@


1.6
log
@Always over-write the installed header and lib.
@
text
@d6 2
a7 2
# if the kernel is configured for autoloading via kerneld, uncomment this line
AUTOLOADING=-DMODVERSIONS
d11 1
a11 1
CFLAGS = -Wall -g -O -pipe -I. -DMODULE -D__KERNEL__ $(AUTOLOADING)
@


1.5
log
@Changed the prefix to the default of /usr.
@
text
@d20 1
a20 4
	if cmp bdm.h $(INCDIR)/bdm.h ; \
	then : ; else \
		cp bdm.h $(INCDIR)/bdm.h ;\
	fi
d22 1
@


1.4
log
@Fit into RTEMS distribution.
@
text
@d1 1
a1 1
prefix = /usr/local/RTEMS/tools
d6 3
d11 1
a11 1
CFLAGS = -Wall -g -O -pipe -I. -DMODULE -D__KERNEL__
@


1.3
log
@Add a single `prefix'.
Make directories if necessary when installing.
@
text
@d1 1
a1 1
prefix = /usr/local
@


1.2
log
@Add module installation to install target.
@
text
@d1 3
a3 1
INCDIR	= /usr/local/include
a5 1

d16 1
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
LIBDIR	= /usr/local/lib
d4 1
d9 1
a9 1
all: BDM.o
d19 1
d21 1
a21 1
BDM.o: bdm.h
@
