$(RANLIB) libcurl.a
$(STRIP) $@
-DLLINITOBJ =
+RESOURCE = libcurl.res
# remove the last line above to keep debug info
-libcurl.dll libcurldll.a: libcurl.a libcurl.def $(DLLINITOBJ)
+libcurl.dll libcurldll.a: libcurl.a libcurl.def $(RESOURCE)
$(RM) $@
- dllwrap --dllname $@ --output-lib libcurldll.a --export-all --def libcurl.def $(libcurl_a_LIBRARIES) $(DLLINITOBJ) $(DLL_LIBS) -lwsock32 -lws2_32 -lwinmm
+ dllwrap --dllname $@ --output-lib libcurldll.a --export-all --def libcurl.def $(libcurl_a_LIBRARIES) $(RESOURCE) $(DLL_LIBS) -lwsock32 -lws2_32 -lwinmm
$(STRIP) $@
# remove the last line above to keep debug info
.S.o:
$(COMPILE) -c $<
+libcurl.res: libcurl.rc
+ windres -DCURLDEBUG=0 -O COFF -o $@ -i $^
+
clean:
- $(RM) $(libcurl_a_OBJECTS)
+ $(RM) $(libcurl_a_OBJECTS) $(RESOURCE)
distrib: clean
-
$(RM) $(libcurl_a_LIBRARIES)
LNK = $(LNKLIB) /out:$(TARGET)\r
CC = $(CCNODBG)\r
CFGSET = TRUE\r
+RESOURCE = $(DIROBJ)\libcurl.res\r
!ENDIF\r
\r
######################\r
LNK = $(LNKDLL) /out:$(TARGET) /IMPLIB:"$(LIB_NAME).lib"\r
CC = $(CCNODBG)\r
CFGSET = TRUE\r
+RESOURCE = $(DIROBJ)\libcurl.res\r
!ENDIF\r
\r
######################\r
LINKLIBS = $(LINKLIBS)\r
CC = $(CCNODBG) $(CFLAGSSSL)\r
CFGSET = TRUE\r
+RESOURCE = $(DIROBJ)\libcurl.res\r
!ENDIF\r
\r
######################\r
LINKLIBS = $(LINKLIBS) $(SSLLIBS)\r
CC = $(CCNODBG) $(CFLAGSSSL)\r
CFGSET = TRUE\r
+RESOURCE = $(DIROBJ)\libcurl.res\r
!ENDIF\r
\r
######################\r
LINKLIBS = $(LINKLIBS) $(SSLLIBS)\r
CC = $(CCNODBG) $(CFLAGSSSL)\r
CFGSET = TRUE\r
+RESOURCE = $(DIROBJ)\libcurl.res\r
!ENDIF\r
\r
\r
LNK = $(LNKLIB) /out:$(TARGET)\r
CC = $(CCDEBUG)\r
CFGSET = TRUE\r
+RESOURCE = $(DIROBJ)\libcurl.res\r
!ENDIF\r
\r
######################\r
LNK = $(LNKDLL) /DEBUG /out:$(TARGET) /IMPLIB:"$(LIB_NAME_DEBUG).lib" /PDB:"$(LIB_NAME_DEBUG).pdb"\r
CC = $(CCDEBUG)\r
CFGSET = TRUE\r
+RESOURCE = $(DIROBJ)\libcurl.res\r
!ENDIF\r
\r
######################\r
LINKLIBS = $(LINKLIBS)\r
CC = $(CCDEBUG) $(CFLAGSSSL)\r
CFGSET = TRUE\r
+RESOURCE = $(DIROBJ)\libcurl.res\r
!ENDIF\r
\r
######################\r
LINKLIBS = $(LINKLIBS) $(SSLLIBS)\r
CC = $(CCDEBUG) $(CFLAGSSSL)\r
CFGSET = TRUE\r
+RESOURCE = $(DIROBJ)\libcurl.res\r
!ENDIF\r
\r
#######################\r
$(DIROBJ)\http_digest.obj \\r
$(DIROBJ)\http_negotiate.obj \\r
$(DIROBJ)\http_ntlm.obj \\r
- $(DIROBJ)\md5.obj\r
+ $(DIROBJ)\md5.obj \\r
+ $(RESOURCE)\r
\r
all : $(TARGET)\r
\r
$(DIROBJ):\r
@if not exist "$(DIROBJ)" mkdir $(DIROBJ)\r
\r
-.SUFFIXES: .c .obj\r
+.SUFFIXES: .c .obj .res\r
\r
{.\}.c{$(DIROBJ)\}.obj:\r
$(CC) $(CFLAGS) /Fo"$@" $<\r
\r
+debug-dll\libcurl.res \\r
+debug-ssl-dll\libcurl.res \\r
+release-libcurl-ssl-dll\libcurl.res: libcurl.rc\r
+ rc /dCURL_DEBUG=1 /Fo $@ libcurl.rc\r
+\r
+release-dll\libcurl.res \\r
+release-ssl-dll\libcurl.res \\r
+release-libcurl-ssl-dll\libcurl.res: libcurl.rc\r
+ rc /dCURL_DEBUG=0 /Fo $@ libcurl.rc\r
+\r
clean:\r
-@erase $(DIROBJ)\*.obj\r
+ -@erase $(DIROBJ)\*.res\r
-@erase vc60.idb\r
-@erase vc60.pch\r