X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2FMakefile.am;h=3b3a058cbaa5638dc5b7accfdcb5e4b2896e97e1;hb=87028029f3968195d3f2c67e43fa0bea79550797;hp=68db4a1e36be964c9ba10ce0cf2c013f37335266;hpb=d5d454e164159387fefb107bf971503715cc9b9e;p=catta diff --git a/src/Makefile.am b/src/Makefile.am index 68db4a1..3b3a058 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -17,10 +17,6 @@ AM_CFLAGS=-I$(top_srcdir)/include -if WINDOWS -AM_CFLAGS += -Icompat/windows/include -endif - # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' @@ -79,10 +75,15 @@ if HAVE_PF_ROUTE libcatta_la_SOURCES += \ iface-pfroute.c iface-pfroute.h else +if WINDOWS +libcatta_la_SOURCES += \ + iface-windows.c iface-windows.h +else libcatta_la_SOURCES += \ iface-none.c endif endif +endif libcatta_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) libcatta_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) @@ -92,6 +93,7 @@ if WINDOWS libcatta_la_SOURCES += \ compat/windows/wincompat.c \ compat/windows/wincompat.h -libcatta_la_LIBADD += -lws2_32 +libcatta_la_LIBADD += -lws2_32 -liphlpapi +libcatta_la_LDFLAGS += -no-undefined endif