import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / cris / drivers / lpslave / Makefile
1 #
2 # Makefile for parallel port slave drivers
3 #
4
5 O_TARGET := lpslavedrivers.o
6
7 obj-y = e100lpslavenet.o e100lpslave_code.o
8
9
10 include $(TOPDIR)/Rules.make
11
12 e100lpslave_code.o:     e100lpslave.o e100lpslaveld 
13         $(CROSS_COMPILE)ld -qmagic -Te100lpslaveld e100lpslave.o -o e100lpslave
14         $(CROSS_COMPILE)objcopy -O binary --remove-section=.data --remove-section=.bss e100lpslave e100lpslave.text
15         $(CROSS_COMPILE)objcopy -O binary --remove-section=.text --remove-section=.bss e100lpslave e100lpslave.data
16         cat e100lpslave.text e100lpslave.data |\
17         ./bintocarr.pl e100lpslaveprog |\
18         $(CC) $(CFLAGS) -pipe -o e100lpslave_code.o -c -x c -
19         ls -l e100lpslave.text e100lpslave.data
20         rm -f e100lpslave e100lpslave.text e100lpslave.data