Skip to content

Commit

Permalink
Move common sgsnemu/ggsn files to directory "lib"
Browse files Browse the repository at this point in the history
Some files like in sgsnemu and ggsn directory where exactly the same.
They are now moved to the same directory for easier maintenance

Signed-off-by: Emmanuel Bretelle <[email protected]>
  • Loading branch information
chantra authored and laf0rge committed Oct 20, 2010
1 parent 2a7cad5 commit 2a10368
Show file tree
Hide file tree
Showing 28 changed files with 18 additions and 3,232 deletions.
4 changes: 2 additions & 2 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ AC_DEFUN([adl_FUNC_GETOPT_LONG],
[# use the GNU replacement
AC_LIBOBJ(getopt)
AC_LIBOBJ(getopt1)
AC_CONFIG_LINKS([ggsn/getopt.h:ggsn/gnugetopt.h])
AC_CONFIG_LINKS([sgsnemu/getopt.h:sgsnemu/gnugetopt.h])])])])
AC_CONFIG_LINKS([lib/getopt.h:lib/gnugetopt.h])])])])

2 changes: 2 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ AC_PROG_CPP
AC_PROG_CXX
AC_PROG_RANLIB

AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_LIBOBJ_DIR([lib])

#JJAKO Check for libtool
AC_PROG_LIBTOOL
Expand Down
5 changes: 4 additions & 1 deletion ggsn/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
bin_PROGRAMS = ggsn

AUTOMAKE_OPTIONS = subdir-objects

AM_LDFLAGS = @EXEC_LDFLAGS@

AM_CFLAGS = -O2 -D_GNU_SOURCE -fno-builtin -Wall -DSBINDIR='"$(sbindir)"' -ggdb
Expand All @@ -8,5 +10,6 @@ ggsn_LDADD = @LIBOBJS@ @EXEC_LDADD@ -lgtp -L../gtp

#ggsn_DEPENDENCIES = ../gtp/libgtp.la

ggsn_SOURCES = ggsn.c tun.c tun.h cmdline.c cmdline.h ippool.h ippool.c syserr.h syserr.c lookup.c lookup.h
ggsn_SOURCES = ggsn.c ../lib/tun.c ../lib/tun.h cmdline.c cmdline.h ../lib/ippool.h ../lib/ippool.c ../lib/syserr.h ../lib/syserr.c ../lib/lookup.c ../lib/lookup.h
#ggsn_SOURCES = ggsn.c cmdline.c cmdline.h

6 changes: 3 additions & 3 deletions ggsn/ggsn.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@

#include <time.h>

#include "tun.h"
#include "ippool.h"
#include "syserr.h"
#include "../lib/tun.h"
#include "../lib/ippool.h"
#include "../lib/syserr.h"
#include "../gtp/pdp.h"
#include "../gtp/gtp.h"
#include "cmdline.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion sgsnemu/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
bin_PROGRAMS = sgsnemu

AUTOMAKE_OPTIONS = subdir-objects

AM_LDFLAGS = @EXEC_LDFLAGS@

AM_CFLAGS = -O2 -D_GNU_SOURCE -fno-builtin -Wall -DSBINDIR='"$(sbindir)"' -ggdb
Expand All @@ -8,4 +10,5 @@ sgsnemu_LDADD = @LIBOBJS@ @EXEC_LDADD@ -lgtp -L../gtp

#sgsnemu_DEPENDENCIES = ../gtp/libgtp.la

sgsnemu_SOURCES = sgsnemu.c tun.c tun.h cmdline.c cmdline.h ippool.h ippool.c syserr.h syserr.c lookup.c lookup.h
sgsnemu_SOURCES = sgsnemu.c ../lib/tun.c ../lib/tun.h cmdline.c cmdline.h ../lib/ippool.h ../lib/ippool.c ../lib/syserr.h ../lib/syserr.c ../lib/lookup.c ../lib/lookup.h
#sgsnemu_SOURCES = sgsnemu.c cmdline.c cmdline.h
Loading

0 comments on commit 2a10368

Please sign in to comment.