2 # Makefile for parallel port slave drivers
5 O_TARGET := lpslavedrivers.o
7 obj-y = e100lpslavenet.o e100lpslave_code.o
10 include $(TOPDIR)/Rules.make
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