]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/u2nl/files/buildsystem.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / u2nl / files / buildsystem.patch
1 Index: u2nl-1.1/Makefile
2 ===================================================================
3 --- u2nl-1.1.orig/Makefile      2005-03-06 16:32:23.000000000 -0500
4 +++ u2nl-1.1/Makefile   2005-03-11 02:38:00.454572600 -0500
5 @@ -1,10 +1,25 @@
6 +CC      = gcc
7 +CFLAGS  = -Wall -g
8 +LDFLAGS =
9 +
10 +DESTDIR =
11 +prefix  = /usr/local
12 +bindir  = $(prefix)/bin
13 +
14 +INSTALL_BIN = install -m 0755
15 +INSTALL_DIR = install -d
16 +
17  all: u2nl
18  
19  u2nl: u2nl.c
20 -       gcc $(CFLAGS) -Wall -g u2nl.c -o u2nl
21 -       
22 +       $(CC) $(CFLAGS) $(LDFLAGS) u2nl.c -o u2nl
23 +
24  install:
25 -       cp u2nl /usr/local/bin
26 +       $(INSTALL_DIR) $(DESTDIR)$(bindir)
27 +       $(INSTALL_BIN) u2nl $(DESTDIR)$(bindir)/u2nl
28 +
29 +uninstall:
30 +       -rm -f $(DESTDIR)$(bindir)/u2nl
31  
32  clean:
33 -       rm -fR u2nl
34 +       -rm -fR u2nl