# # Makefile for nsp_cs # # $Id: Makefile,v 1.14 2001/02/09 04:42:28 elca Exp elca $ VERSION=2.5# # If you use kernel 2.2, uncomennt this line #NSP_KERNEL_2_2=1 ifdef NSP_KERNEL_2_2 PCMCIA_DEF = -DNSP_KERNEL_2_2=1 -I/usr/src/pcmcia-cs-3.1.24/include else PCMCIA_DEF = endif TOPDIR = /usr/src/linux # ARCH_DEF = -march=i386 # ARCH_DEF = -march=i486 ARCH_DEF = -march=i586 # ARCH_DEF = -march=i686 CC = gcc VER = $(shell uname -r)# CFLAGS = -MD -O2 -Wall -Wstrict-prototypes -pipe -mpreferred-stack-boundary=2 \ $(ARCH_DEF) \ -D__KERNEL__ \ -DMODULE -DMODVERSIONS -include $(TOPDIR)/include/linux/modversions.h \ -DPCMCIA \ $(PCMCIA_DEF) -I$(TOPDIR)/include .PHONY: clean dist debug install all: nsp_cs.o .c.o: $(CC) $(CFLAGS) -c $< nsp_cs.o: nsp_cs.c nsp_cs.h nsp_io.h $(CC) $(CFLAGS) -c nsp_cs.c nsp_cb.o: nsp_cb.c $(CC) $(CFLAGS) -c nsp_cb.c debug: $(CC) $(CFLAGS) -g -c nsp_cs.c install: nsp_cs.o install -m 644 nsp_cs.o /lib/modules/$(VER)/pcmcia/nsp_cs.o depmod -ae clean: rm -f nsp_cs.o dist: rm -rf nsp_cs-$(VERSION)/ mkdir nsp_cs-$(VERSION) cp ChangeLog README.nsp_cs README.nsp_cs.eng Q_and_A.nsp_cs Q_and_A.nsp_cs.eng Makefile Configure.help.nsp_cs nsp_cs-$(VERSION)/ cp nsp_cs.c nsp_cs.h nsp_io.h nsp_debug.c nsp_cs.conf nsp_cs.4 nsp_cs.4j nsp_cs-$(VERSION)/ tar cvf nsp_cs-$(VERSION).tar nsp_cs-$(VERSION)/ gzip -9f nsp_cs-$(VERSION).tar # end