Mercurial > mplayer.hg
annotate drivers/Makefile @ 12233:d371810e3bb3
translation prepared by Boski Cinek <boski_cinek(at)o2.pl>
author | paszczi |
---|---|
date | Sun, 18 Apr 2004 20:29:59 +0000 |
parents | d1bbeae9f46a |
children | e2fa87f416a2 |
rev | line source |
---|---|
1 | 1 |
2 KERNEL_INCLUDES = /usr/src/linux/include | |
3 INCLUDES = -I$(KERNEL_INCLUDES) | |
9545
d1bbeae9f46a
tdfx_vid a new kernel driver for tdfx wich let use agp move :)
albeu
parents:
7073
diff
changeset
|
4 CFLAGS = -O2 -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h -Wall |
3768
fda4c0ea039f
install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents:
1395
diff
changeset
|
5 VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2) |
fda4c0ea039f
install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents:
1395
diff
changeset
|
6 MDIR = /lib/modules/$(VERSION)/misc |
1 | 7 |
57 | 8 all: mga_vid.o mga_vid_test |
9 # sis_vid.o | |
1 | 10 |
11 mga_vid.o: mga_vid.c mga_vid.h | |
12 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c | |
13 | |
14 sis_vid.o: sis_vid.c sis_vid.h | |
15 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c | |
16 | |
17 mga_vid_test: mga_vid_test.c | |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
3768
diff
changeset
|
18 $(CC) -O $(INCLUDES) -o $@ $@.c |
1 | 19 |
9545
d1bbeae9f46a
tdfx_vid a new kernel driver for tdfx wich let use agp move :)
albeu
parents:
7073
diff
changeset
|
20 tdfx_vid.o: tdfx_vid.c 3dfx.h |
d1bbeae9f46a
tdfx_vid a new kernel driver for tdfx wich let use agp move :)
albeu
parents:
7073
diff
changeset
|
21 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c |
d1bbeae9f46a
tdfx_vid a new kernel driver for tdfx wich let use agp move :)
albeu
parents:
7073
diff
changeset
|
22 |
d1bbeae9f46a
tdfx_vid a new kernel driver for tdfx wich let use agp move :)
albeu
parents:
7073
diff
changeset
|
23 tdfx_vid_tst: tdfx_vid_tst.c |
d1bbeae9f46a
tdfx_vid a new kernel driver for tdfx wich let use agp move :)
albeu
parents:
7073
diff
changeset
|
24 $(CC) -O $(INCLUDES) -o $@ $@.c |
d1bbeae9f46a
tdfx_vid a new kernel driver for tdfx wich let use agp move :)
albeu
parents:
7073
diff
changeset
|
25 |
3768
fda4c0ea039f
install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents:
1395
diff
changeset
|
26 install: mga_vid.o |
fda4c0ea039f
install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents:
1395
diff
changeset
|
27 if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi |
fda4c0ea039f
install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents:
1395
diff
changeset
|
28 install -m 644 mga_vid.o $(MDIR)/mga_vid.o |
fda4c0ea039f
install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents:
1395
diff
changeset
|
29 depmod -a |
fda4c0ea039f
install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents:
1395
diff
changeset
|
30 |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
57
diff
changeset
|
31 dep: |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
57
diff
changeset
|
32 |
1 | 33 clean: |
34 rm -f *.o *~ | |
35 | |
36 distclean: clean | |
37 rm -f mga_vid_test |