Commit Graph

43 Commits

Author SHA1 Message Date
Hamish Coleman
567ae8db6b Try to simplify and improve windows objs definitions 2023-08-03 21:40:31 +01:00
Hamish Coleman
6b8ba8aa94 Move the examples to their own directory 2023-07-31 20:56:49 +01:00
Hamish Coleman
6ddaaaa917 Move win32 specific file to the right dir 2023-07-31 20:56:49 +01:00
Hamish Coleman
83078c8104 Simplify win32 build process
When building on win32 systems, simply add the win32 specific functions
to the libn2n.a, which simplifies the commands needed.

By moving the win32 source code into the src directory, the source code
is better consolidated.
2023-07-31 20:56:49 +01:00
Hamish Coleman
183e0c969a Hack around the "helpful" exe file suffix
If there is a way to turn off the mingw insistence that it will rewrite
the filename it was given in the "-o" options, I have not been able to
find it.  I could easily handle all the moves or renames at the end of
the build process if I could turn off this feature.  Especially since it
means that make often thinks that the file has not been built (the
filename that make knows about is not the file that actually gets built
by the mingw gcc, so the if-newer tests that make applies will always
fail)
2023-07-03 02:51:20 +08:00
Hamish Coleman
0b662fc0f4 A bunch of hacks to allow builds to understand the stupid windows filenames 2023-07-03 02:51:20 +08:00
Hamish Coleman
4d2e92ac81 Ensure library is included in correct order
It looks to me that the correct way to address this build wrinkle is
simply to add the win32 functions to the libn2n when building a win32
output, then there is no additional magic library juggling required for
the win32 case
2023-07-03 02:51:20 +08:00
Hamish Coleman
1e8a085f1e Refactor to use the host triplet instead of CONFIG_TARGET 2023-07-03 02:51:20 +08:00
Hamish Coleman
59ecadcab2 Move the special windows lib config into the configure script 2023-07-03 02:51:20 +08:00
Hamish Coleman
b22c57a16f Dont require special build flags for just one header 2023-07-03 02:51:20 +08:00
Hamish Coleman
85c8ab536c Convert final user of TARGET==darwin to use the cross-compile variables instead 2023-07-03 02:51:20 +08:00
Hamish Coleman
4b4311e2fa Move the macos default install path config.
There is a minor change - after this, the macos man pages are also
installed into the /usr/local PREFIX.  This seems like the correct
location to me.

Longer term, the usual autotools process of installing everything into
/usr/local should be used.  Files installed in /usr should be done by
a package management tool, so this default makes sense to use.
2023-07-03 02:51:20 +08:00
Hamish Coleman
15fe4f786f Move OpenSolaris special config to the configure script 2023-07-03 02:51:20 +08:00
Hamish Coleman
8dcc879ca0 Simplify config and build process for libpcap tool 2023-07-02 22:18:09 +08:00
Hamish Coleman
473b89c963 Simplify build system by using standard macro
Most environments have predefined macros that identify the environment
to the source code.  If we use these macros instead of defining our own
then there is one less parameter difference to keep track of with
different builds

cf:
    http://web.archive.org/web/20191012035921/http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system
    https://sourceforge.net/p/predef/wiki/OperatingSystems/
2023-07-01 19:08:43 +08:00
Hamish Coleman
afbc5344e0 Move some generic appending out of the config.mak 2023-06-25 22:40:46 +08:00
Hamish Coleman
6d464f24a6 Ensure that WINDRES always has a value 2023-06-25 22:40:46 +08:00
Hamish Coleman
4c0c173221 Check if we have been configured before running most of Make 2023-06-25 17:56:09 +08:00
Hamish Coleman
a1bef636de Partially Revert "Add rules to run autogen/configure and use them in some of the simpler CI builds"
This reverts commit 87c20d750e.
2023-06-25 17:56:09 +08:00
Hamish Coleman
87c20d750e Add rules to run autogen/configure and use them in some of the simpler CI builds 2023-06-25 02:07:49 +08:00
Hamish Coleman
3b5855707f Need to specify a windres tool name for non cross compiled windows 2023-06-25 02:07:49 +08:00
Hamish Coleman
0545a54b13 Allow windres to run when cross compiling 2023-06-25 02:07:49 +08:00
Hamish Coleman
0dd94a1123 Fix distclean with newer config.mak style 2023-06-24 23:31:20 +08:00
Hamish Coleman
e42cbd7e0c Remove nondeterminism from man compression
Replacing the previous attempt (using a debhelper) with simply changing
the way we compress the man pages.

The debhelper didnt appear to be working - perhaps because the man page
compression was not done within the debian package build framework.
2023-05-22 22:05:25 +01:00
Hamish Coleman
6ecc201017 Ensure LDLIBS is consistantly treated 2023-05-10 18:41:18 +01:00
Hamish Coleman
cbafe20000 Minor refactoring to use exported vars in subdir 2023-05-10 17:08:15 +01:00
Hamish Coleman
d0b0f3a2e8 Increase dpkg manpage determinism 2023-05-08 16:46:01 +01:00
Tony
3a4c18258c Support mingw make for edge prompt UAC 2023-05-08 16:43:28 +01:00
Hamish Coleman
897ccd9780 Stop auto creating the OBJ list, allowing a libn2n that does not contain a main() function 2023-04-30 19:35:42 -05:00
Hamish Coleman
37722ab8b6 Consolidate the config.mak settings 2023-04-30 19:00:04 -05:00
Hamish Coleman
c81889d02f Refactoring the autoconf to towards always having a valid Makefile - this will allow simple build instructions 2023-04-30 14:40:55 -05:00
Luca Deri
a80fa1dd27 Added configure and autogen.sh 2018-10-07 11:37:19 +02:00
Luca Deri
cb9e758d58 Fixes #41 2018-09-22 09:08:58 +02:00
Babak Farrokhi
79f2e526ef We may use alternative computers (i.e. CLANG) on hosts on which GCC is not the default compiler 2018-08-18 11:40:03 +04:30
Luca Deri
b877f2dd1c Merge of https://github.com/ntop/n2n/pull/33 2018-08-17 14:25:35 +02:00
Luca Deri
e4d99cb6f0 Moved to 2.5
Fixed warning
2018-08-17 14:14:48 +02:00
Luca Deri
c164d2b208 Reworked debian/ubuntu packaging 2018-06-20 20:23:28 +02:00
Luca Deri
6c611ea306 Fixed cmake
Minor code cleanup
2018-06-14 11:44:10 +02:00
Luca Deri
828ae8316c Renamed n2n.a -> libn2n.a 2018-06-08 11:26:25 +02:00
Luca Deri
73cd299275 Moved to 2.3.x release 2018-06-08 08:21:27 +02:00
Luca Deri
b00f329a31 Code cleanup 2018-06-08 08:19:06 +02:00
Luca Deri
85ac185781 Code rework 2018-06-08 00:17:42 +02:00
Luca Deri
b1e9ce6d2a Initial SVN import of n2n v2 2016-10-23 10:46:15 +02:00