added Windows makefiles
authorVictor Kirhenshtein <victor@netxms.org>
Wed, 19 Apr 2017 20:19:37 +0000 (23:19 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Wed, 19 Apr 2017 20:19:37 +0000 (23:19 +0300)
33 files changed:
Makefile.inc.w32
src/agent/subagents/Makefile.w32
src/agent/subagents/winnt/Makefile.am
src/agent/subagents/winnt/Makefile.w32 [new file with mode: 0644]
src/server/Makefile.w32
src/server/drivers/Makefile.w32
src/server/drivers/hpsw/Makefile.am
src/server/drivers/hpsw/Makefile.w32 [new file with mode: 0644]
src/server/drivers/mikrotik/Makefile.am
src/server/drivers/mikrotik/Makefile.w32 [new file with mode: 0644]
src/server/drivers/netscreen/Makefile.am
src/server/drivers/netscreen/Makefile.w32 [new file with mode: 0644]
src/server/drivers/ntws/Makefile.am
src/server/drivers/ntws/Makefile.w32 [new file with mode: 0644]
src/server/drivers/ping3/Makefile.am
src/server/drivers/ping3/Makefile.w32 [new file with mode: 0644]
src/server/drivers/procurve/Makefile.am
src/server/drivers/procurve/Makefile.w32 [new file with mode: 0644]
src/server/drivers/qtech-olt/Makefile.am
src/server/drivers/qtech-olt/Makefile.w32 [new file with mode: 0644]
src/server/drivers/symbol-ws/Makefile.am
src/server/drivers/symbol-ws/Makefile.w32 [new file with mode: 0644]
src/server/drivers/tb/Makefile.am
src/server/drivers/tb/Makefile.w32 [new file with mode: 0644]
src/server/drivers/ubnt/Makefile.am
src/server/drivers/ubnt/Makefile.w32 [new file with mode: 0644]
src/server/hdlink/Makefile.w32 [new file with mode: 0644]
src/server/hdlink/jira/Makefile.am
src/server/hdlink/jira/Makefile.w32 [new file with mode: 0644]
src/server/hdlink/redmine/Makefile.am
src/server/hdlink/redmine/Makefile.w32 [new file with mode: 0644]
src/server/netxmsd/Makefile.am
src/server/netxmsd/Makefile.w32 [new file with mode: 0644]

index cb0b92d..a9c59a6 100644 (file)
@@ -66,6 +66,10 @@ LDFLAGS = $(LDFLAGS) /DLL /IMPLIB:$(IMPLIB)
 CPPFLAGS = $(CPPFLAGS) /D_USRDLL
 LDFLAGS = $(LDFLAGS) /DLL
 !endif
+!if "$(TYPE)" == "hdlink"
+CPPFLAGS = $(CPPFLAGS) /D_USRDLL
+LDFLAGS = $(LDFLAGS) /DLL
+!endif
 !if "$(TYPE)" == "ndd"
 BINDIR = $(BINDIR)\ndd
 CPPFLAGS = $(CPPFLAGS) /D_USRDLL
@@ -127,7 +131,7 @@ $(BINFILE): pom.xml
 $(BINFILE): objdir $(OBJ) $(RESOBJ)
    @if not exist $(BINDIR) mkdir $(BINDIR)
    @echo "    LD " $(TARGET)
-   $(LD) /NOLOGO $(LDFLAGS) /out:$(BINFILE) $(OBJ) $(RESOBJ) $(LIBS)
+   @$(LD) /NOLOGO $(LDFLAGS) /out:$(BINFILE) $(OBJ) $(RESOBJ) $(LIBS)
        @rm -f $(MANIFEST)
 
 .PHONY: objdir
index 773ae50..f3fb08a 100644 (file)
@@ -1,4 +1,4 @@
 SUBDIRS = db2 dbquery devemu ecs filemgr gps informix java jmx logwatch \
-          mysql netsvc odbcquery oracle ping portCheck sms
+          mysql netsvc odbcquery oracle ping portCheck sms winnt
 
 include ..\..\..\Makefile.inc.w32
index 2d0584e..9bb5603 100644 (file)
@@ -16,4 +16,5 @@ EXTRA_DIST = \
        prod.cpp \
        system.cpp \
        winnt.vcproj \
-       winnt_subagent.h
+       winnt_subagent.h \
+       Makefile.w32
diff --git a/src/agent/subagents/winnt/Makefile.w32 b/src/agent/subagents/winnt/Makefile.w32
new file mode 100644 (file)
index 0000000..c4b569b
--- /dev/null
@@ -0,0 +1,7 @@
+TARGET = winnt.nsm
+TYPE = nsm
+SOURCES = cpu.cpp main.cpp net.cpp procinfo.cpp prod.cpp system.cpp
+
+LIBS = libnxagent.lib libnetxms.lib netapi32.lib psapi.lib wtsapi32.lib ws2_32.lib iphlpapi.lib ntdll.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index 1200f43..9d82c2f 100644 (file)
@@ -1,3 +1,3 @@
-SUBDIRS = libnxsrv core drivers
+SUBDIRS = libnxsrv core drivers hdlink netxmsd
 
 include ..\..\Makefile.inc.w32
index a8012ff..814c486 100644 (file)
@@ -1,4 +1,5 @@
 SUBDIRS = lib airespace at baystack cat2900xl catalyst cisco-esw cisco-sb \
-       dell-pwc dlink ers8000 extreme h3c ignitenet juniper
+       dell-pwc dlink ers8000 extreme h3c hpsw ignitenet juniper mikrotik \
+       netscreen ntws ping3 procurve qtech-olt symbol-ws tb ubnt
 
 include ..\..\..\Makefile.inc.w32
index 98153f4..ae5d271 100644 (file)
@@ -10,7 +10,8 @@ hpsw_la_LIBADD = ../../../libnetxms/libnetxms.la \
 
 EXTRA_DIST = \
        hpsw.vcproj \
-       hpsw.h
+       hpsw.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(DRIVER).a $(DESTDIR)$(pkglibdir)/$(DRIVER)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(DRIVER).a ; fi
diff --git a/src/server/drivers/hpsw/Makefile.w32 b/src/server/drivers/hpsw/Makefile.w32
new file mode 100644 (file)
index 0000000..288e784
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = hpsw.ndd
+TYPE = ndd
+COMPONENT = server
+SOURCES = hpsw.cpp
+
+LIBS = libnxsrv.lib libnxsnmp.lib libnetxms.lib ws2_32.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index 8cddec4..9d69c3e 100644 (file)
@@ -10,7 +10,8 @@ mikrotik_la_LIBADD = ../../../libnetxms/libnetxms.la \
 
 EXTRA_DIST = \
        mikrotik.vcproj \
-       mikrotik.h
+       mikrotik.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(DRIVER).a $(DESTDIR)$(pkglibdir)/$(DRIVER)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(DRIVER).a ; fi
diff --git a/src/server/drivers/mikrotik/Makefile.w32 b/src/server/drivers/mikrotik/Makefile.w32
new file mode 100644 (file)
index 0000000..2474371
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = mikrotik.ndd
+TYPE = ndd
+COMPONENT = server
+SOURCES = mikrotik.cpp
+
+LIBS = libnxsrv.lib libnxsnmp.lib libnetxms.lib ws2_32.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index 0df3bfd..d8a2b8e 100644 (file)
@@ -10,7 +10,8 @@ netscreen_la_LIBADD = ../../../libnetxms/libnetxms.la \
 
 EXTRA_DIST = \
        netscreen.vcproj \
-       netscreen.h
+       netscreen.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(DRIVER).a $(DESTDIR)$(pkglibdir)/$(DRIVER)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(DRIVER).a ; fi
diff --git a/src/server/drivers/netscreen/Makefile.w32 b/src/server/drivers/netscreen/Makefile.w32
new file mode 100644 (file)
index 0000000..17f0355
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = netscreen.ndd
+TYPE = ndd
+COMPONENT = server
+SOURCES = netscreen.cpp
+
+LIBS = libnxsrv.lib libnxsnmp.lib libnetxms.lib ws2_32.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index 51ab24d..121a731 100644 (file)
@@ -9,8 +9,9 @@ ntws_la_LIBADD = ../../../libnetxms/libnetxms.la \
        ../../libnxsrv/libnxsrv.la
 
 EXTRA_DIST = \
-                                                ntws.vcproj \
-                                                ntws.h
+       ntws.vcproj \
+       ntws.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(DRIVER).a $(DESTDIR)$(pkglibdir)/$(DRIVER)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(DRIVER).a ; fi
diff --git a/src/server/drivers/ntws/Makefile.w32 b/src/server/drivers/ntws/Makefile.w32
new file mode 100644 (file)
index 0000000..e883cf1
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = ntws.ndd
+TYPE = ndd
+COMPONENT = server
+SOURCES = ntws.cpp
+
+LIBS = libnxsrv.lib libnxsnmp.lib libnetxms.lib ws2_32.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index 0716748..ac9d470 100644 (file)
@@ -10,7 +10,8 @@ ping3_la_LIBADD = ../../../libnetxms/libnetxms.la \
 
 EXTRA_DIST = \
        ping3.vcproj \
-       ping3.h
+       ping3.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(DRIVER).a $(DESTDIR)$(pkglibdir)/$(DRIVER)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(DRIVER).a ; fi
diff --git a/src/server/drivers/ping3/Makefile.w32 b/src/server/drivers/ping3/Makefile.w32
new file mode 100644 (file)
index 0000000..b84ce21
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = ping3.ndd
+TYPE = ndd
+COMPONENT = server
+SOURCES = ping3.cpp
+
+LIBS = libnxsrv.lib libnxsnmp.lib libnetxms.lib ws2_32.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index 88aae66..ab7b09d 100644 (file)
@@ -10,7 +10,8 @@ procurve_la_LIBADD = ../../../libnetxms/libnetxms.la \
 
 EXTRA_DIST = \
        procurve.vcproj \
-       procurve.h
+       procurve.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(DRIVER).a $(DESTDIR)$(pkglibdir)/$(DRIVER)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(DRIVER).a ; fi
diff --git a/src/server/drivers/procurve/Makefile.w32 b/src/server/drivers/procurve/Makefile.w32
new file mode 100644 (file)
index 0000000..cf076dc
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = procurve.ndd
+TYPE = ndd
+COMPONENT = server
+SOURCES = procurve.cpp
+
+LIBS = libnxsrv.lib libnxsnmp.lib libnetxms.lib ws2_32.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index 2a2c756..174b123 100644 (file)
@@ -10,7 +10,8 @@ qtech_olt_la_LIBADD = ../../../libnetxms/libnetxms.la \
 
 EXTRA_DIST = \
        qtech-olt.vcproj \
-       qtech-olt.h
+       qtech-olt.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(DRIVER).a $(DESTDIR)$(pkglibdir)/$(DRIVER)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(DRIVER).a ; fi
diff --git a/src/server/drivers/qtech-olt/Makefile.w32 b/src/server/drivers/qtech-olt/Makefile.w32
new file mode 100644 (file)
index 0000000..1bd3cea
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = qtech-olt.ndd
+TYPE = ndd
+COMPONENT = server
+SOURCES = qtech-olt.cpp
+
+LIBS = libnxsrv.lib libnxsnmp.lib libnetxms.lib ws2_32.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index cb2e6bf..bb3c818 100644 (file)
@@ -9,8 +9,9 @@ symbol_ws_la_LIBADD = ../../../libnetxms/libnetxms.la \
        ../../libnxsrv/libnxsrv.la
 
 EXTRA_DIST = \
-                                                symbol-ws.vcproj \
-                                                symbol-ws.h
+       symbol-ws.vcproj \
+       symbol-ws.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(DRIVER).a $(DESTDIR)$(pkglibdir)/$(DRIVER)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(DRIVER).a ; fi
diff --git a/src/server/drivers/symbol-ws/Makefile.w32 b/src/server/drivers/symbol-ws/Makefile.w32
new file mode 100644 (file)
index 0000000..251d0b1
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = symbol-ws.ndd
+TYPE = ndd
+COMPONENT = server
+SOURCES = symbol-ws.cpp
+
+LIBS = libnxsrv.lib libnxsnmp.lib libnetxms.lib ws2_32.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index 8286b28..45de27e 100644 (file)
@@ -10,7 +10,8 @@ tb_la_LIBADD = ../../../libnetxms/libnetxms.la \
 
 EXTRA_DIST = \
        tb.vcproj \
-       tb.h
+       tb.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(DRIVER).a $(DESTDIR)$(pkglibdir)/$(DRIVER)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(DRIVER).a ; fi
diff --git a/src/server/drivers/tb/Makefile.w32 b/src/server/drivers/tb/Makefile.w32
new file mode 100644 (file)
index 0000000..0c48a02
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = tb.ndd
+TYPE = ndd
+COMPONENT = server
+SOURCES = tb.cpp
+
+LIBS = libnxsrv.lib libnxsnmp.lib libnetxms.lib ws2_32.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index 9bb9445..d678510 100644 (file)
@@ -10,7 +10,8 @@ ubnt_la_LIBADD = ../../../libnetxms/libnetxms.la \
 
 EXTRA_DIST = \
        ubnt.vcproj \
-       ubnt.h
+       ubnt.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(DRIVER).a $(DESTDIR)$(pkglibdir)/$(DRIVER)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(DRIVER).a ; fi
diff --git a/src/server/drivers/ubnt/Makefile.w32 b/src/server/drivers/ubnt/Makefile.w32
new file mode 100644 (file)
index 0000000..6cd1d8d
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = ubnt.ndd
+TYPE = ndd
+COMPONENT = server
+SOURCES = ubnt.cpp
+
+LIBS = libnxsrv.lib libnxsnmp.lib libnetxms.lib ws2_32.lib
+         
+include ..\..\..\..\Makefile.inc.w32
diff --git a/src/server/hdlink/Makefile.w32 b/src/server/hdlink/Makefile.w32
new file mode 100644 (file)
index 0000000..5bf94dc
--- /dev/null
@@ -0,0 +1,3 @@
+SUBDIRS = jira redmine
+
+include ..\..\..\Makefile.inc.w32
index 47314e3..a7bb748 100644 (file)
@@ -13,7 +13,8 @@ endif
 
 EXTRA_DIST = \
        jira.vcproj \
-       jira.h
+       jira.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(HDLINK).a $(DESTDIR)$(pkglibdir)/$(HDLINK)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(HDLINK).a ; fi
diff --git a/src/server/hdlink/jira/Makefile.w32 b/src/server/hdlink/jira/Makefile.w32
new file mode 100644 (file)
index 0000000..123f745
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = jira.hdlink
+TYPE = hdlink
+COMPONENT = server
+SOURCES = jira.cpp
+
+LIBS = nxcore.lib libnxsrv.lib libnetxms.lib jansson.lib libcurl.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index 51d6b46..9633261 100644 (file)
@@ -12,7 +12,8 @@ redmine_la_LIBADD += -ljansson
 endif
 
 EXTRA_DIST = \
-       redmine.h
+       redmine.h \
+       Makefile.w32
 
 install-exec-hook:
        if test "x`uname -s`" = "xAIX" ; then OBJECT_MODE=@OBJECT_MODE@ $(AR) x $(DESTDIR)$(pkglibdir)/$(HDLINK).a $(DESTDIR)$(pkglibdir)/$(HDLINK)@SHLIB_SUFFIX@ ; rm -f $(DESTDIR)$(pkglibdir)/$(HDLINK).a ; fi
diff --git a/src/server/hdlink/redmine/Makefile.w32 b/src/server/hdlink/redmine/Makefile.w32
new file mode 100644 (file)
index 0000000..cd407d3
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = redmine.hdlink
+TYPE = hdlink
+COMPONENT = server
+SOURCES = redmine.cpp
+
+LIBS = nxcore.lib libnxsrv.lib libnetxms.lib jansson.lib libcurl.lib
+         
+include ..\..\..\..\Makefile.inc.w32
index e16e392..2024eb7 100644 (file)
@@ -16,4 +16,5 @@ netxmsd_LDADD = \
 EXTRA_DIST = \
        netxmsd.vcproj \
        netxmsd.h \
-       winsrv.cpp
+       winsrv.cpp \
+       Makefile.w32
diff --git a/src/server/netxmsd/Makefile.w32 b/src/server/netxmsd/Makefile.w32
new file mode 100644 (file)
index 0000000..f28023c
--- /dev/null
@@ -0,0 +1,8 @@
+TARGET = netxmsd.exe
+TYPE = exe
+COMPONENT = server
+SOURCES = netxmsd.cpp winsrv.cpp
+
+LIBS = nxcore.lib libnxsrv.lib libnetxms.lib dbghelp.lib
+         
+include ..\..\..\Makefile.inc.w32