diff options
Diffstat (limited to 'cpukit/pppd')
-rw-r--r-- | cpukit/pppd/Makefile.am | 9 | ||||
-rw-r--r-- | cpukit/pppd/preinstall.am | 43 | ||||
-rw-r--r-- | cpukit/pppd/rtemsdialer.h | 24 | ||||
-rw-r--r-- | cpukit/pppd/rtemspppd.h | 49 |
4 files changed, 5 insertions, 120 deletions
diff --git a/cpukit/pppd/Makefile.am b/cpukit/pppd/Makefile.am index 2cf38edc69..53a05761f4 100644 --- a/cpukit/pppd/Makefile.am +++ b/cpukit/pppd/Makefile.am @@ -1,10 +1,12 @@ include $(top_srcdir)/automake/compile.am if LIBNETWORKING -include_rtemsdir = $(includedir)/rtems -include_rtems_HEADERS = rtemspppd.h rtemsdialer.h - project_lib_LIBRARIES = libpppd.a + +$(PROJECT_LIB)/libpppd.a: libpppd.a + $(INSTALL_DATA) $< $(PROJECT_LIB)/libpppd.a +TMPINSTALL_FILES = $(PROJECT_LIB)/libpppd.a + libpppd_a_SOURCES = auth.c ccp.c ccp.h chap.c chap.h chap_ms.c chap_ms.h \ chat.c demand.c fsm.c fsm.h ipcp.c ipcp.h lcp.c lcp.h magic.c magic.h \ options.c upap.c upap.h utils.c sys-rtems.c \ @@ -13,5 +15,4 @@ libpppd_a_SOURCES = auth.c ccp.c ccp.h chap.c chap.h chap_ms.c chap_ms.h \ libpppd_a_CPPFLAGS = $(AM_CPPFLAGS) -D__BSD_VISIBLE -I$(srcdir)/../libmd endif -include $(srcdir)/preinstall.am include $(top_srcdir)/automake/local.am diff --git a/cpukit/pppd/preinstall.am b/cpukit/pppd/preinstall.am deleted file mode 100644 index 19f4bc1dda..0000000000 --- a/cpukit/pppd/preinstall.am +++ /dev/null @@ -1,43 +0,0 @@ -## Automatically generated by ampolish3 - Do not edit - -if AMPOLISH3 -$(srcdir)/preinstall.am: Makefile.am - $(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/preinstall.am -endif - -PREINSTALL_DIRS = -DISTCLEANFILES = $(PREINSTALL_DIRS) - -all-am: $(PREINSTALL_FILES) - -PREINSTALL_FILES = -CLEANFILES = $(PREINSTALL_FILES) - -all-local: $(TMPINSTALL_FILES) - -TMPINSTALL_FILES = -CLEANFILES += $(TMPINSTALL_FILES) - -$(PROJECT_LIB)/$(dirstamp): - @$(MKDIR_P) $(PROJECT_LIB) - @: > $(PROJECT_LIB)/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp) - -if LIBNETWORKING -$(PROJECT_INCLUDE)/rtems/$(dirstamp): - @$(MKDIR_P) $(PROJECT_INCLUDE)/rtems - @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/rtemspppd.h: rtemspppd.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtemspppd.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtemspppd.h - -$(PROJECT_INCLUDE)/rtems/rtemsdialer.h: rtemsdialer.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtemsdialer.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtemsdialer.h - -$(PROJECT_LIB)/libpppd.a: libpppd.a $(PROJECT_LIB)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_LIB)/libpppd.a -TMPINSTALL_FILES += $(PROJECT_LIB)/libpppd.a -endif diff --git a/cpukit/pppd/rtemsdialer.h b/cpukit/pppd/rtemsdialer.h deleted file mode 100644 index 611986b802..0000000000 --- a/cpukit/pppd/rtemsdialer.h +++ /dev/null @@ -1,24 +0,0 @@ - -#ifndef DIALER_H -#define DIALER_H - -/* define constant mode values */ -#define DIALER_INIT 0 -#define DIALER_CONNECT 1 -#define DIALER_WELCOME 2 -#define DIALER_DISCONNECT 3 - -/* define constant return values */ -#define DIALER_SUCCESS 0 -#define DIALER_INVALIDARG 1 -#define DIALER_UNEXPECTED 2 -#define DIALER_TIMEOUT 3 -#define DIALER_CMDFAILED 4 - -/* define typedef for dialer function prototype */ -typedef int (*dialerfp)(int tty, int mode, char *pScript); - -/* declare default chat program dialer */ -extern int chatmain(int tty, int mode, char *pScript); - -#endif diff --git a/cpukit/pppd/rtemspppd.h b/cpukit/pppd/rtemspppd.h deleted file mode 100644 index a6c8d0b398..0000000000 --- a/cpukit/pppd/rtemspppd.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * COPYRIGHT (c) 2001, Michael Siers <mikes@poliac.com>. - * Poliac Research, Burnsville, Minnesota USA. - * COPYRIGHT (c) 2001, On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#ifndef RTEMSPPPD_H -#define RTEMSPPPD_H - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/* define hook function identifiers */ -#define RTEMS_PPPD_LINKUP_HOOK 1 -#define RTEMS_PPPD_LINKDOWN_HOOK 2 -#define RTEMS_PPPD_IPUP_HOOK 3 -#define RTEMS_PPPD_IPDOWN_HOOK 4 -#define RTEMS_PPPD_ERROR_HOOK 5 -#define RTEMS_PPPD_EXIT_HOOK 6 - -/* define hook function pointer prototype */ -typedef void (*rtems_pppd_hookfunction)(void); -typedef int (*rtems_pppd_dialerfunction)(int tty, int mode, char *pScript); - - -/* define pppd function prototyes */ -int rtems_pppd_initialize(void); -int rtems_pppd_terminate(void); -int rtems_pppd_reset_options(void); -int rtems_pppd_set_hook(int id, rtems_pppd_hookfunction hookfp); -int rtems_pppd_set_dialer(rtems_pppd_dialerfunction dialerfp); -int rtems_pppd_set_option(const char *pOption, const char *pValue); -int rtems_pppd_connect(void); -int rtems_pppd_disconnect(void); - -struct rtems_bsdnet_ifconfig; - -int rtems_ppp_driver_attach(struct rtems_bsdnet_ifconfig *config, int attaching); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif |