Prechádzať zdrojové kódy

fixed installer - no openssl libs

valenok 15 rokov pred
rodič
commit
39b03600e6
5 zmenil súbory, kde vykonal 10 pridanie a 14 odobranie
  1. 7 10
      Makefile
  2. 2 3
      win32/installer.nsi
  3. BIN
      win32/libeay32.dll
  4. 1 1
      win32/mongoose.conf
  5. BIN
      win32/ssleay32.dll

+ 7 - 10
Makefile

@@ -51,20 +51,17 @@ solaris:
 #  o  Set VC variable below to where VS 6.0 is installed on your system
 #  o  Run "PATH_TO_VC6\bin\nmake windows"
 
-VC=	q:\vc6
+VC=	z:
 #DBG=	/Zi /DDEBUG /Od /DDEBUG
 DBG=	/DNDEBUG /Os
-CL=	$(VC)\bin\cl.exe  /MD /TC /nologo /W4 /c $(DBG) /I $(VC)/include
-LINK=	$(VC)\bin\link.exe /incremental:no /libpath:$(VC)\lib ws2_32.lib
-OUT=	c:\out
-DLL=	$(OUT)\_$(PROG).dll
-EXE=	$(OUT)\$(PROG).exe
+SSL=	y:\release\cyassl.lib crypt32.lib advapi32.lib
+CL=	cl /MD /TC /nologo $(DBG) /DNO_SSL_DL /I $(VC)\include
+LINK=	/link /incremental:no /libpath:$(VC)\lib ws2_32.lib $(SSL)
 
 windows:
-	$(CL) main.c /Fd$(OUT)\main.pdb /Fo$(OUT)\main.obj
-	$(CL) mongoose.c /Fd$(OUT)\mongoose.pdb /Fo$(OUT)\mongoose.obj
-	$(LINK) $(OUT)\mongoose.obj /DLL /DEF:win32\dll.def /out:$(DLL)
-	$(LINK) $(OUT)\main.obj $(OUT)\mongoose.obj /out:$(EXE)
+	$(CL) main.c mongoose.c $(LINK) /DLL /DEF:win32\dll.def \
+		/out:_$(PROG).dll
+	$(CL) main.c mongoose.c $(LINK) /out:$(PROG).exe
 
 # Build for Windows under MinGW
 #MINGWDBG= -DDEBUG -O0

+ 2 - 3
win32/installer.nsi

@@ -2,7 +2,7 @@
 !define MENUDIR "Mongoose web server"
 !define	SVC "Mongoose ${VERSION}"
 
-OutFile c:\mongoose-${VERSION}.install.exe
+OutFile mongoose-${VERSION}.install.exe
 Name "Mongoose ${VERSION}"
 InstallDir C:\mongoose-${VERSION}
 
@@ -25,8 +25,7 @@ Section "Mongoose files (required)"
 SectionEnd
 
 Section "SSL files"
-  File ssleay32.dll
-  File libeay32.dll
+  SectionIn RO
   File ssl_cert.pem
 
   # Following lines add full path to the certificate file in the mongoose.conf

BIN
win32/libeay32.dll


+ 1 - 1
win32/mongoose.conf

@@ -5,7 +5,7 @@
 
 document_root c:\
 
-                                                                      
+# Placeholder for ssl_certificate                                                                                                                                                   
 
 listening_ports 80,443s
 access_log_file c:\mongoose_access_log.txt

BIN
win32/ssleay32.dll