|
Last change
on this file since 22 was 22, checked in by ogrimm, 17 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 |
|
|---|
| 3 | KERNVER := $(shell uname -r)
|
|---|
| 4 | #KERNVER := 2.6.0
|
|---|
| 5 |
|
|---|
| 6 | .PHONY: driver
|
|---|
| 7 |
|
|---|
| 8 | driver:
|
|---|
| 9 | make -C /lib/modules/$(KERNVER)/build SUBDIRS=$(shell pwd) modules
|
|---|
| 10 |
|
|---|
| 11 | install:
|
|---|
| 12 | make -C /lib/modules/$(KERNVER)/build SUBDIRS=$(shell pwd) modules_install
|
|---|
| 13 |
|
|---|
| 14 | MODULENAME := sis1100
|
|---|
| 15 |
|
|---|
| 16 | ifndef src
|
|---|
| 17 | src:=$(shell pwd)
|
|---|
| 18 | endif
|
|---|
| 19 |
|
|---|
| 20 | SOURCES:=$(notdir $(wildcard $(src)/*.c))
|
|---|
| 21 | sis1100-objs := $(patsubst %.c, %.o, $(filter-out %netbsd.c, $(SOURCES)))
|
|---|
| 22 |
|
|---|
| 23 | ifneq (,$(findstring 2.6.,$(KERNVER)))
|
|---|
| 24 |
|
|---|
| 25 | EXTRA_CFLAGS += -DMODULENAME=$(MODULENAME)
|
|---|
| 26 |
|
|---|
| 27 | obj-m += sis1100.o
|
|---|
| 28 | #obj-$(CONFIG_SIS1100) += sis1100.o
|
|---|
| 29 |
|
|---|
| 30 | else
|
|---|
| 31 |
|
|---|
| 32 | modules: sis1100.o
|
|---|
| 33 |
|
|---|
| 34 | sis1100.o: $(sis1100-objs)
|
|---|
| 35 | $(LD) -r -o $@ $^
|
|---|
| 36 |
|
|---|
| 37 | endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.