updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / libz80 / libz80.gcc4-fix.makefile.patch
blob5fb46bf509006284d4dc26663a82cdfbb0d3b22a
1 diff -urN libz80/Makefile libz80.fixed/Makefile
2 --- libz80/Makefile 2002-04-21 18:30:00.000000000 -0500
3 +++ libz80.fixed/Makefile 2009-11-04 10:47:16.418113709 -0600
4 @@ -1,20 +1,22 @@
5 -OBJS = z80.c
6 -FLAGS = -fPIC -Wall -strict -ANSI -g
7 +OBJS = z80.o
8 +FLAGS = -fPIC -Wall -ansi -g
10 -force: clean all
11 +all: codegen libz80.so
13 -all: libz80.so
14 +codegen: clean
15 + cd codegen && make opcodes
17 libz80.so: z80.h $(OBJS)
18 - cd codegen && make opcodes
19 gcc -shared -o libz80.so $(OBJS)
22 .c.o:
23 gcc $(FLAGS) -c $<
25 install:
26 - install -m 666 libz80.so /usr/lib
27 - install -m 666 z80.h /usr/include
28 + install -d ${DESTDIR}/usr/lib
29 + install -d ${DESTDIR}/usr/include
30 + install -m 666 libz80.so ${DESTDIR}/usr/lib
31 + install -m 666 z80.h ${DESTDIR}/usr/include
33 clean:
34 rm -f *.o *.so core
35 diff -urN libz80/z80.c libz80.fixed/z80.c
36 --- libz80/z80.c 2002-04-22 11:01:02.000000000 -0500
37 +++ libz80.fixed/z80.c 2009-11-04 10:40:16.984523276 -0600
38 @@ -236,7 +236,7 @@
42 -// Adjust flags after AND, OR, XOR
43 +/* Adjust flags after AND, OR, XOR */
44 static void adjustLogicFlag (Z80Context *ctx, int flagH)
46 VALFLAG(F_S, (BR.A & 0x80) != 0);