# # Copyright (C) 1997-2000 SpellCaster Telecommunications Inc. # $Id: Makefile.in,v 1.1 2004/03/11 03:59:31 bcrl Exp $ # Released under the GNU Public License. See LICENSE file for details. # TOPDIR=../.. include ../../common.mak include ../common.kernel.mak CC = /usr/bin/gcc LD = ld MOD_FLAGS = # -DDEBUG=2 -DMSG_TRACE # -DHW_DEBUG BAB_INC = -I/usr/src/linux/include CFLAGS = -O2 -fno-strength-reduce -Wall $(MOD_FLAGS) $(BAB_INC) ifeq (alpha,$(ARCH)) CFLAGS+=-ffixed-8 -mno-fp-regs endif TARGET = dcplus.o BAB_OBJS = dcplib.o dcplus_b.o MODDIR=/lib/modules/`uname -r`/misc/ MANDIR=$(mandir) SBINDIR=/sbin INSTALL=/usr/bin/install all: dcplus.o dcplusc dcplus.o: $(BAB_OBJS) $(LD) -r -o $(TARGET) $(BAB_OBJS) install: dcplus.o dcplusc dcplusc.8 $(INSTALL) -d -o root -g root -m755 $(MODDIR) $(INSTALL) -o root -g root -m644 dcplus.o $(MODDIR) $(INSTALL) -o root -g root -m750 dcplusc $(SBINDIR) $(INSTALL) -o root -g root -m644 dcplusc.8 $(MANDIR)/man8 rm -f /dev/dcplus mknod /dev/dcplus c 62 0 chown root.root /dev/dcplus chmod 600 /dev/dcplus dcplusc.8: cp ../scb/scbctrl.8 dcplusc.8 dcplusc: ( cd ../scb && make ../scb scbctrl ) || exit 1 cp ../scb/scbctrl dcplusc default: dcplus.o clean: $(RM) $(TARGET) $(BAB_OBJS) dcplusc dcplusc.8 distclean: clean $(RM) Makefile