]> git.draconx.ca Git - gentoo-draconx.git/blob - dev-util/elftoaout/files/elftoaout-build-rules.patch
dev-util/elftoaout: New package.
[gentoo-draconx.git] / dev-util / elftoaout / files / elftoaout-build-rules.patch
1 diff --git a/elftoaout-2.3/Makefile b/elftoaout-2.3/Makefile
2 index 7dc3529..64d8ff6 100644
3 --- a/elftoaout-2.3/Makefile
4 +++ b/elftoaout-2.3/Makefile
5 @@ -3,8 +3,11 @@ CFLAGS = -O2 -Wall
6  
7  all: elftoaout
8  
9 -elftoaout: elftoaout.c
10 -       $(CC) $(CFLAGS) -o elftoaout elftoaout.c
11 +elftoaout: elftoaout.o
12 +       $(CC) $(CFLAGS) $(LDFLAGS) -o elftoaout elftoaout.o
13 +
14 +.c.o:
15 +       $(CC) $(CFLAGS) -c $<
16  
17  install: elftoaout
18         install -m 0755 -s elftoaout /usr/bin/elftoaout