summaryrefslogtreecommitdiff
path: root/package/ppp/patches/patch-chat_Makefile_linux
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-22 22:37:50 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-22 22:37:50 +0100
commit9436a026e2e23d207fbdcb9e8bc9b076e3573700 (patch)
treeadb1937bc90be8869a5f7c9636da84773414eb3b /package/ppp/patches/patch-chat_Makefile_linux
parent52b1b0100c53b1f8699955df618fcb47744e0a7e (diff)
activate GCC cflags check, cleanup FLAGS stuff in OpenADK.
* remove TCFLAGS/TLDFLAGS/TCPPFLAGS and only use TARGET_CFLAGS/TARGET_LDFLAGS/TARGET_CPPFLAGS, ... * activate GCC_HONOUR_COPTS and fix all packages to honour CFLAGS * use CC_FOR_BUILD, CFLAGS_FOR_BUILD, ... for all build compilation, remove HOST* variants * introduce KERNEL_MODULE_FLAGS for external kernel modules * mark rpm package as broken, mark syslinux for native builds only, mark libhugetlb for eglibc/glibc only usage
Diffstat (limited to 'package/ppp/patches/patch-chat_Makefile_linux')
-rw-r--r--package/ppp/patches/patch-chat_Makefile_linux52
1 files changed, 36 insertions, 16 deletions
diff --git a/package/ppp/patches/patch-chat_Makefile_linux b/package/ppp/patches/patch-chat_Makefile_linux
index 3d0c3fdff..07f1a31cb 100644
--- a/package/ppp/patches/patch-chat_Makefile_linux
+++ b/package/ppp/patches/patch-chat_Makefile_linux
@@ -1,31 +1,51 @@
--- ppp-2.4.5.orig/chat/Makefile.linux 2009-11-16 23:26:07.000000000 +0100
-+++ ppp-2.4.5/chat/Makefile.linux 2011-01-16 15:56:59.000000000 +0100
-@@ -10,22 +10,23 @@ CDEF3= -UNO_SLEEP # Use the usleep fun
- CDEF4= -DFNDELAY=O_NDELAY # Old name value
- CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
++++ ppp-2.4.5/chat/Makefile.linux 2011-01-21 21:29:57.958658254 +0100
+@@ -1,32 +1,27 @@
+ # $Id: Makefile.linux,v 1.15 2006/06/04 05:07:46 paulus Exp $
+
+-DESTDIR = $(INSTROOT)@DESTDIR@
+-BINDIR = $(DESTDIR)/sbin
+-MANDIR = $(DESTDIR)/share/man/man8
+-
+-CDEF1= -DTERMIOS # Use the termios structure
+-CDEF2= -DSIGTYPE=void # Standard definition
+-CDEF3= -UNO_SLEEP # Use the usleep function
+-CDEF4= -DFNDELAY=O_NDELAY # Old name value
+-CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
++include ../Makedefs.com
-COPTS= -O2 -g -pipe
-CFLAGS= $(COPTS) $(CDEFS)
-+CPPFLAGS?=
-+CFLAGS?=-O2 -g -pipe
-+LDFLAGS?=
++CDEF1=-DTERMIOS # Use the termios structure
++CDEF2=-DSIGTYPE=void # Standard definition
++CDEF3=-UNO_SLEEP # Use the usleep function
++CDEF4=-DFNDELAY=O_NDELA # Old name value
++CDEFS=$(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
- INSTALL= install
+-INSTALL= install
++CPPFLAGS += $(CDEFS)
- all: chat
+-all: chat
++PROG = chat
++OBJS = chat.o
- chat: chat.o
+-chat: chat.o
- $(CC) -o chat chat.o
-+ $(CC) $(LDFLAGS) -o chat chat.o
++all: $(PROG)
- chat.o: chat.c
+-chat.o: chat.c
- $(CC) -c $(CFLAGS) -o chat.o chat.c
-+ $(CC) -c $(CPPFLAGS) $(CFLAGS) -o chat.o chat.c
++$(PROG): $(OBJS)
- install: chat
- mkdir -p $(BINDIR) $(MANDIR)
+-install: chat
+- mkdir -p $(BINDIR) $(MANDIR)
- $(INSTALL) -s -c chat $(BINDIR)
-+ $(INSTALL) -c chat $(BINDIR)
++install: $(PROG)
++ $(INSTALL) -d -m 755 $(BINDIR)
++ $(INSTALL) -d -m 755 $(MANDIR)
++ $(INSTALL) $(STRIP) -c $(PROG) $(BINDIR)
$(INSTALL) -c -m 644 chat.8 $(MANDIR)
clean:
+- rm -f chat.o chat *~
++ rm -f $(OBJS) $(PROG) *~