2 # WINDOWS32 SPECIFIC CONFIGURATION
8 SRCS += $(wildcard src/win32/*.c)
9 HDRS += $(wildcard src/win32/*.h)
11 DEFINES += -DWIN32 -D_WIN32_WINNT=0x0501
12 LIBS += -mno-cygwin -lws2_32 -liphlpapi
13 INCLUDES += -I$(TOPDIR)/src/win32
16 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).dll
17 INSTALL_LIB = cp $(PLUGIN_FULLNAME) ../..
20 LDFLAGS += -L$(TOPDIR)
21 #LIBS += $(TOPDIR)/src/win32/compat.o
28 olsr-$(VERS).zip: gui/win32/Main/Release/Switch.exe \
29 gui/win32/Shim/Release/Shim.exe \
32 src/cfgparser/olsrd_cfgparser.dll \
34 README-Link-Quality.html \
35 README-Link-Quality-Fish-Eye.txt \
36 README-Olsr-Switch.html \
37 gui/win32/Inst/linux-manual.txt \
38 files/olsrd.conf.win32.rfc \
39 files/olsrd.conf.win32.lq \
40 gui/win32/Main/RFC-Default.olsr \
41 gui/win32/Main/LQ-Default.olsr \
42 lib/dot_draw/olsrd_dot_draw.dll \
43 lib/nameservice/olsrd_nameservice.dll \
44 lib/httpinfo/olsrd_httpinfo.dll
46 $(STRIP) olsr_switch.exe
47 $(STRIP) src/cfgparser/olsrd_cfgparser.dll
48 $(STRIP) lib/dot_draw/olsrd_dot_draw.dll
49 $(STRIP) lib/nameservice/olsrd_nameservice.dll
50 $(STRIP) lib/httpinfo/olsrd_httpinfo.dll
51 rm -rf $(TEMP)/olsr-$(VERS)
52 rm -f $(TEMP)/olsr-$(VERS).zip
53 rm -f olsr-$(VERS).zip
54 mkdir $(TEMP)/olsr-$(VERS)
55 cp gui/win32/Main/Release/Switch.exe $(TEMP)/olsr-$(VERS)
56 cp gui/win32/Shim/Release/Shim.exe $(TEMP)/olsr-$(VERS)
57 cp olsrd.exe $(TEMP)/olsr-$(VERS)
58 cp olsr_switch.exe $(TEMP)/olsr-$(VERS)
59 cp src/cfgparser/olsrd_cfgparser.dll $(TEMP)/olsr-$(VERS)
60 cp README $(TEMP)/olsr-$(VERS)
61 cp README-Link-Quality.html $(TEMP)/olsr-$(VERS)
62 cp README-Link-Quality-Fish-Eye.txt $(TEMP)/olsr-$(VERS)
63 cp README-Olsr-Switch.html $(TEMP)/olsr-$(VERS)
64 cp gui/win32/Inst/linux-manual.txt $(TEMP)/olsr-$(VERS)
65 cp files/olsrd.conf.win32.rfc $(TEMP)/olsr-$(VERS)/olsrd.conf.rfc
66 cp files/olsrd.conf.win32.lq $(TEMP)/olsr-$(VERS)/olsrd.conf.lq
67 cp gui/win32/Main/RFC-Default.olsr $(TEMP)/olsr-$(VERS)
68 cp gui/win32/Main/LQ-Default.olsr $(TEMP)/olsr-$(VERS)/Default.olsr
69 cp lib/dot_draw/olsrd_dot_draw.dll $(TEMP)/olsr-$(VERS)
70 cp lib/nameservice/olsrd_nameservice.dll $(TEMP)/olsr-$(VERS)
71 cp lib/httpinfo/olsrd_httpinfo.dll $(TEMP)/olsr-$(VERS)
72 cd $(TEMP); echo y | cacls olsr-$(VERS) /T /G Everyone:F
73 cd $(TEMP); zip -q -r olsr-$(VERS).zip olsr-$(VERS)
74 cp $(TEMP)/olsr-$(VERS).zip .
75 rm -rf $(TEMP)/olsr-$(VERS)
76 rm -f $(TEMP)/olsr-$(VERS).zip
78 olsr-$(VERS)-setup.exe: gui/win32/Main/Release/Switch.exe \
79 gui/win32/Shim/Release/Shim.exe \
82 src/cfgparser/olsrd_cfgparser.dll \
84 README-Link-Quality.html \
85 README-Link-Quality-Fish-Eye.txt \
86 README-Olsr-Switch.html \
87 gui/win32/Inst/linux-manual.txt \
88 files/olsrd.conf.win32.rfc \
89 files/olsrd.conf.win32.lq \
90 gui/win32/Main/RFC-Default.olsr \
91 gui/win32/Main/LQ-Default.olsr \
92 lib/dot_draw/olsrd_dot_draw.dll \
93 lib/nameservice/olsrd_nameservice.dll \
94 lib/httpinfo/olsrd_httpinfo.dll \
95 gui/win32/Inst/installer.nsi
97 $(STRIP) olsr_switch.exe
98 $(STRIP) src/cfgparser/olsrd_cfgparser.dll
99 $(STRIP) lib/dot_draw/olsrd_dot_draw.dll
100 $(STRIP) lib/nameservice/olsrd_nameservice.dll
101 $(STRIP) lib/httpinfo/olsrd_httpinfo.dll
103 rm -f olsr-$(VERS)-setup.exe
104 C:/Program\ Files/NSIS/makensis gui\win32\Inst\installer.nsi
105 mv olsr-setup.exe olsr-$(VERS)-setup.exe