mirror of
https://github.com/ntop/n2n.git
synced 2026-10-19 16:16:12 +00:00
Fix the building the win32 subdir.
It looks like the github windows build environment is not correctly inheriting environment variables. Which is strange, as that has not been changed with the recent updates. Include the vars directly as a workaround (and plan to refactor later)
This commit is contained in:
+7
-1
@@ -2,14 +2,20 @@
|
||||
# This is not a standalone makefile, it must be called from the toplevel
|
||||
# makefile to inherit the correct environment
|
||||
|
||||
# The vars included here should be part of the environment.
|
||||
# TODO - refactor this and debug why they need to be included for windows
|
||||
include ../config.mak
|
||||
|
||||
DEBUG?=-g3
|
||||
|
||||
HEADERS=$(wildcard include/*.h)
|
||||
CFLAGS+=-I../include
|
||||
LDLIBS+=-ln2n
|
||||
|
||||
ifeq ($(CONFIG_TARGET),mingw)
|
||||
CFLAGS+=-I../win32
|
||||
LDLIBS+=-lnetapi32
|
||||
LDLIBS+=$(abspath ../win32/n2n_win32.a)
|
||||
LDLIBS+=-lnetapi32 -lws2_32 -liphlpapi
|
||||
endif
|
||||
CFLAGS+=$(DEBUG)
|
||||
LDFLAGS+=-L..
|
||||
|
||||
Reference in New Issue
Block a user