Browse Source

Consolidate the config.mak settings

pull/1094/head
Hamish Coleman 1 year ago
parent
commit
37722ab8b6
  1. 6
      Makefile
  2. 12
      config.mak.in
  3. 1
      configure.ac
  4. 2
      tools/Makefile
  5. 2
      tools/config.mak.in

6
Makefile

@ -1,10 +1,4 @@
export CC
export AR
export CFLAGS
export LDFLAGS
export LDLIBS
include config.mak
#Ultrasparc64 users experiencing SIGBUS should try the following gcc options

12
config.mak.in

@ -1,9 +1,15 @@
export N2N_VERSION
export CC
export AR
export CFLAGS
export LDFLAGS
export LDLIBS_EXTRA
export TOOLS_ADDITIONAL
# NOTE: these are needed by the configure.in inside the packages folder
N2N_VERSION=@N2N_VERSION@
CC=@CC@
AR=@AR@
CFLAGS=@CFLAGS@ -I./include
LDFLAGS=@LDFLAGS@ -L.
LDLIBS_EXTRA+=@N2N_LIBS_EXTRA@
LDLIBS_EXTRA=@N2N_LIBS_EXTRA@
TOOLS_ADDITIONAL=@TOOLS_ADDITIONAL@

1
configure.ac

@ -154,6 +154,5 @@ AC_SUBST(N2N_LIBS_EXTRA)
AC_SUBST(TOOLS_ADDITIONAL)
AC_CONFIG_HEADERS(include/config.h)
AC_CONFIG_FILES(config.mak)
AC_CONFIG_FILES(tools/config.mak)
AC_OUTPUT

2
tools/Makefile

@ -2,8 +2,6 @@
# This is not a standalone makefile, it must be called from the toplevel
# makefile to inherit the correct environment
include config.mak
DEBUG?=-g3
HEADERS=$(wildcard include/*.h)

2
tools/config.mak.in

@ -1,2 +0,0 @@
TOOLS_ADDITIONAL=@TOOLS_ADDITIONAL@
Loading…
Cancel
Save