File: Makefile.jog

package info (click to toggle)
kino 0.75-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,896 kB
  • ctags: 3,400
  • sloc: cpp: 26,587; sh: 6,028; ansic: 4,878; makefile: 310; perl: 125
file content (34 lines) | stat: -rw-r--r-- 1,512 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# you will probably need to change the -march=i686 compiler switch
# make -f Makefile.jog (shuttlepro.o | sonyjog.o)
# mknod -m 666 /dev/input/event0 c 13 64
# insmod input
# insmod usbcore
# insmod usb-(u|o)hci
# insmod evdev
# insmod (./shuttlepro.o | ./sonyjog.o)

all: shuttlepro.o sonyjog.o 

sonyjog-partial.o: sonyjog.c 
	gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wno-unused -Wstrict-prototypes -O2 -g  -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -o $@ -c sonyjog.c 

sonyjog.o: sonyjog-partial.o
	cp sonyjog-partial.o $@	

shuttlepro-partial.o: shuttlepro.c 
	gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wno-unused -Wstrict-prototypes -O2 -g  -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -o $@ -c shuttlepro.c 

shuttlepro.o: shuttlepro-partial.o
	cp shuttlepro-partial.o $@	

commandpost-partial.o: commandpost.c 
	gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wno-unused -Wstrict-prototypes -O2 -g  -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -o $@ -c commandpost.c 

commandpost.o: commandpost-partial.o
	cp commandpost-partial.o $@	

.PHONY: clean

clean:
	rm -f sonyjog-partial.o sonyjog.o shuttlepro-partial.o shuttlepro.o