source: drsdaq/VME/struck/sis1100/V2.02/dev/pci/Makefile@ 23

Last change on this file since 23 was 22, checked in by ogrimm, 16 years ago
First commit of drsdaq program
File size: 685 bytes
Line 
1# $ZEL: Makefile,v 1.3 2004/02/10 16:36:27 wuestner Exp $
2
3KERNVER := $(shell uname -r)
4#KERNVER := 2.6.0
5
6.PHONY: driver
7
8driver:
9 make -C /lib/modules/$(KERNVER)/build SUBDIRS=$(shell pwd) modules
10
11install:
12 make -C /lib/modules/$(KERNVER)/build SUBDIRS=$(shell pwd) modules_install
13
14MODULENAME := sis1100
15
16ifndef src
17 src:=$(shell pwd)
18endif
19
20SOURCES:=$(notdir $(wildcard $(src)/*.c))
21sis1100-objs := $(patsubst %.c, %.o, $(filter-out %netbsd.c, $(SOURCES)))
22
23ifneq (,$(findstring 2.6.,$(KERNVER)))
24
25EXTRA_CFLAGS += -DMODULENAME=$(MODULENAME)
26
27obj-m += sis1100.o
28#obj-$(CONFIG_SIS1100) += sis1100.o
29
30else
31
32modules: sis1100.o
33
34sis1100.o: $(sis1100-objs)
35 $(LD) -r -o $@ $^
36
37endif
Note: See TracBrowser for help on using the repository browser.