source: multiio/pcmmio/original/Makefile @ 2bae2aa

basewinsystems
Last change on this file since 2bae2aa was 2bae2aa, checked in by Joel Sherrill <joel.sherrill@…>, on 06/08/09 at 14:52:43

Initial import.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1# $Header$
2#
3# $Id$
4#
5# $Log$
6#
7
8MAJOR = 115
9
10CFLAGS += -DMAJOR_NUM=$(MAJOR)
11
12# Test Makefile
13
14ifneq ($(KERNELRELEASE),)
15        obj-m := pcmmio.o
16else
17        KERNELDIR ?= /lib/modules/$(shell uname -r)/build
18        PWD := $(shell pwd)
19
20default:
21        $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
22endif
23
24mio_io.o: mio_io.c mio_io.h Makefile
25        gcc -c $(CFLAGS) mio_io.c
26
27nodes:
28        mknod pcmmio c $(MAJOR) 0
29        chmod a+rw pcmmio
30
31all:    default nodes poll flash getvolt dacout getall repeat buffered dacbuff
32
33dacbuff: dacbuff.c mio_io.o mio_io.h Makefile kbhit.c
34        gcc $(CFLAGS) -static dacbuff.c kbhit.c mio_io.o -o dacbuff
35        chmod a+x dacbuff
36       
37buffered: buffered.c mio_io.o mio_io.h Makefile kbhit.c
38        gcc $(CFLAGS) -static buffered.c kbhit.c mio_io.o -o buffered
39        chmod a+x buffered
40       
41repeat: repeat.c mio_io.o mio_io.h Makefile kbhit.c
42        gcc $(CFLAGS) -D_REENTRANT -static repeat.c kbhit.c mio_io.o -o repeat -lpthread
43        chmod a+x repeat
44
45flash: flash.c mio_io.h kbhit.c mio_io.o Makefile
46        gcc $(CFLAGS) -static flash.c kbhit.c mio_io.o -o flash
47        chmod a+x flash
48
49getvolt: getvolt.c mio_io.h mio_io.o Makefile
50        gcc $(CFLAGS) -static getvolt.c mio_io.o -o getvolt
51        chmod a+x getvolt
52
53getall: getall.c mio_io.h mio_io.o Makefile
54        gcc $(CFLAGS) -static getall.c mio_io.o -o getall
55        chmod a+x getall
56
57dacout: dacout.c mio_io.h mio_io.o Makefile
58        gcc $(CFLAGS) -static dacout.c mio_io.o -o dacout
59        chmod a+x dacout
60
61poll:  poll.c mio_io.o mio_io.h Makefile
62        gcc $(CFLAGS) -D_REENTRANT -static poll.c mio_io.o -o poll -lpthread
63        chmod a+x poll
64 
65clean:
66        rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions pcmmio
67
68
Note: See TracBrowser for help on using the repository browser.