OpenCores
URL https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk

Subversion Repositories pcie_ds_dma

[/] [pcie_ds_dma/] [trunk/] [soft/] [linux/] [driver/] [pexdrv/] [Makefile] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dsmv
 
2
KERNELVER := $(shell uname -r)
3
EXTRA_CFLAGS += -O2
4 6 v.karak
EXTRA_CFLAGS += -I $(PWD)/../../common/board
5 2 dsmv
 
6
ifneq ($(KERNELRELEASE),)
7
 
8 7 v.karak
pexdrv-objs := memory.o event.o dmachan.o ioctlrw.o pexmodule.o pexproc.o hardware.o
9 2 dsmv
obj-m := pexdrv.o
10
 
11
else
12
 
13
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
14
 
15
PWD := $(shell pwd)
16
 
17
modules:
18 6 v.karak
        $(MAKE) -C $(KERNELDIR) M=$(PWD) EXTRA_CFLAGS="$(EXTRA_CFLAGS)"
19 2 dsmv
 
20
endif
21
 
22
distclean:
23
        rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions *.bak .*.cache *.d
24
clean:
25
        rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions *.bak .*.cache *.d *.markers *.symvers *.order
26
 
27
depend .depend dep:
28
        $(CC) $(EXTRA_CFLAGS) -M *.c > .depend
29
 
30
ifeq (.depend, $(wildcard .depend))
31
include .depend
32
endif
33 6 v.karak
 
34
install:
35 7 v.karak
        ./insert

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.