forked from pool/osmo-ggsn
48 lines
1.8 KiB
Diff
48 lines
1.8 KiB
Diff
|
diff --git a/ggsn/Makefile.am b/ggsn/Makefile.am
|
||
|
index 8a468a9..0d8d8ff 100644
|
||
|
--- a/ggsn/Makefile.am
|
||
|
+++ b/ggsn/Makefile.am
|
||
|
@@ -1,8 +1,9 @@
|
||
|
-bin_PROGRAMS = osmo-ggsn
|
||
|
+sbin_PROGRAMS = osmo-ggsn
|
||
|
|
||
|
AM_LDFLAGS = @EXEC_LDFLAGS@
|
||
|
|
||
|
-AM_CFLAGS = -O2 -D_GNU_SOURCE -fno-builtin -Wall -DSBINDIR='"$(sbindir)"' -ggdb $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS)
|
||
|
+AM_CPPFLAGS = -D_GNU_SOURCE -DSBINDIR='"${sbindir}"' ${LIBOSMOCORE_CFLAGS} ${LIBOSMOCTRL_CFLAGS} ${LIBOSMOVTY_CFLAGS}
|
||
|
+AM_CFLAGS = -fno-builtin -Wall
|
||
|
|
||
|
osmo_ggsn_LDADD = @EXEC_LDADD@ -lgtp -L../gtp ../lib/libmisc.a $(LIBOSMOCORE_LIBS) $(LIBOSMOCTRL_LIBS) $(LIBOSMOVTY_LIBS)
|
||
|
|
||
|
diff --git a/gtp/Makefile.am b/gtp/Makefile.am
|
||
|
index 7a0ff0a..211abc3 100644
|
||
|
--- a/gtp/Makefile.am
|
||
|
+++ b/gtp/Makefile.am
|
||
|
@@ -6,7 +6,8 @@ lib_LTLIBRARIES = libgtp.la
|
||
|
|
||
|
include_HEADERS = gtp.h pdp.h gtpie.h
|
||
|
|
||
|
-AM_CFLAGS = -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"' -ggdb $(LIBOSMOCORE_CFLAGS)
|
||
|
+AM_CPPFLAGS = -DSBINDIR='"$(sbindir)"' $(LIBOSMOCORE_CFLAGS)
|
||
|
+AM_CFLAGS = -O2 -fno-builtin -Wall -ggdb
|
||
|
|
||
|
libgtp_la_SOURCES = gtp.c gtp.h gtpie.c gtpie.h pdp.c pdp.h lookupa.c lookupa.h queue.c queue.h
|
||
|
libgtp_la_LDFLAGS = -version-info $(LIBVERSION) -no-undefined
|
||
|
diff --git a/sgsnemu/Makefile.am b/sgsnemu/Makefile.am
|
||
|
index 4d02eca..32df2a3 100644
|
||
|
--- a/sgsnemu/Makefile.am
|
||
|
+++ b/sgsnemu/Makefile.am
|
||
|
@@ -1,8 +1,10 @@
|
||
|
-bin_PROGRAMS = sgsnemu
|
||
|
+sbin_PROGRAMS = sgsnemu
|
||
|
|
||
|
AM_LDFLAGS = @EXEC_LDFLAGS@
|
||
|
|
||
|
-AM_CFLAGS = -O2 -D_GNU_SOURCE -fno-builtin -Wall -DSBINDIR='"$(sbindir)"' -ggdb $(LIBOSMOCORE_CFLAGS)
|
||
|
+AM_CPPFLAGS = -D_GNU_SOURCE -DSBINDIR='"$(sbindir)"' $(LIBOSMOCORE_CFLAGS)
|
||
|
+AM_CFLAGS = -O2 -fno-builtin -Wall -ggdb
|
||
|
+
|
||
|
|
||
|
sgsnemu_LDADD = @EXEC_LDADD@ -lgtp -L../gtp ../lib/libmisc.a $(LIBOSMOCORE_LIBS)
|
||
|
sgsnemu_DEPENDENCIES = ../gtp/libgtp.la ../lib/libmisc.a
|