diff options
Diffstat (limited to 'bgpd/rfp-example/rfptest')
-rw-r--r-- | bgpd/rfp-example/rfptest/.gitignore | 1 | ||||
-rw-r--r-- | bgpd/rfp-example/rfptest/Makefile | 10 | ||||
-rw-r--r-- | bgpd/rfp-example/rfptest/rfptest.c | 33 | ||||
-rw-r--r-- | bgpd/rfp-example/rfptest/rfptest.h | 25 | ||||
-rw-r--r-- | bgpd/rfp-example/rfptest/subdir.am | 23 |
5 files changed, 92 insertions, 0 deletions
diff --git a/bgpd/rfp-example/rfptest/.gitignore b/bgpd/rfp-example/rfptest/.gitignore new file mode 100644 index 0000000..d3d7c0a --- /dev/null +++ b/bgpd/rfp-example/rfptest/.gitignore @@ -0,0 +1 @@ +/rfptest diff --git a/bgpd/rfp-example/rfptest/Makefile b/bgpd/rfp-example/rfptest/Makefile new file mode 100644 index 0000000..659a9ce --- /dev/null +++ b/bgpd/rfp-example/rfptest/Makefile @@ -0,0 +1,10 @@ +all: ALWAYS + @$(MAKE) -s -C ../../.. bgpd/rfp-example/rfptest/rfptest +%: ALWAYS + @$(MAKE) -s -C ../../.. bgpd/rfp-example/rfptest/$@ + +Makefile: + #nothing +ALWAYS: +.PHONY: ALWAYS makefiles +.SUFFIXES: diff --git a/bgpd/rfp-example/rfptest/rfptest.c b/bgpd/rfp-example/rfptest/rfptest.c new file mode 100644 index 0000000..1036829 --- /dev/null +++ b/bgpd/rfp-example/rfptest/rfptest.c @@ -0,0 +1,33 @@ +/* + * + * Copyright 2015-2016, LabN Consulting, L.L.C. + * + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; see the file COPYING; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/* dummy test program */ +#include <stdio.h> +#include <stdlib.h> +#include "rfptest.h" +int main(void) +{ + printf("Your test code goes here.\n"); + exit(1); +} diff --git a/bgpd/rfp-example/rfptest/rfptest.h b/bgpd/rfp-example/rfptest/rfptest.h new file mode 100644 index 0000000..1f0ccb8 --- /dev/null +++ b/bgpd/rfp-example/rfptest/rfptest.h @@ -0,0 +1,25 @@ +/* + * + * Copyright 2015-2016, LabN Consulting, L.L.C. + * + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; see the file COPYING; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/* Sample header file */ +#ifndef _RFPTEST_H +#define _RFPTEST_H + +#endif /* _RFPTEST_H */ diff --git a/bgpd/rfp-example/rfptest/subdir.am b/bgpd/rfp-example/rfptest/subdir.am new file mode 100644 index 0000000..1b5024a --- /dev/null +++ b/bgpd/rfp-example/rfptest/subdir.am @@ -0,0 +1,23 @@ +# +# libtest +# + +if ENABLE_BGP_VNC +noinst_PROGRAMS += bgpd/rfp-example/rfptest/rfptest +endif + +bgpd_rfp_example_rfptest_rfptest_CFLAGS = \ + $(AM_CFLAGS) \ + -I$(top_srcdir)/bgpd/rfapi \ + # end +bgpd_rfp_example_rfptest_rfptest_SOURCES = \ + bgpd/rfp-example/rfptest/rfptest.c \ + # end +noinst_HEADERS += \ + bgpd/rfp-example/rfptest/rfptest.h \ + # end + +bgpd_rfp_example_rfptest_rfptest_LDADD = \ + lib/libfrr.la \ + $(RFPLDADD) \ + # end |