mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
Merge "Makefile.vc: require CFG with clean target"
This commit is contained in:
commit
6c9405dbfb
33
Makefile.vc
33
Makefile.vc
@ -87,13 +87,14 @@ CFGSET = TRUE
|
|||||||
# Usage
|
# Usage
|
||||||
#
|
#
|
||||||
!IF "$(CFGSET)" == "FALSE"
|
!IF "$(CFGSET)" == "FALSE"
|
||||||
!MESSAGE Usage: nmake /f makefile.vc9 [CFG=<config>] [OBJDIR=<path>] [RTLIBCFG=<rtlib>] [<target>]
|
!MESSAGE Usage: nmake /f Makefile.vc [CFG=<config>] [OBJDIR=<path>] [RTLIBCFG=<rtlib>] [<target>]
|
||||||
!MESSAGE where <config> is one of:
|
!MESSAGE where <config> is one of:
|
||||||
!MESSAGE - release-static - release static library
|
!MESSAGE - release-static - release static library
|
||||||
!MESSAGE - debug-static - debug static library
|
!MESSAGE - debug-static - debug static library
|
||||||
!MESSAGE - (empty) - perform a clean
|
!MESSAGE <target> may be:
|
||||||
|
!MESSAGE - clean - perform a clean for CFG
|
||||||
!MESSAGE
|
!MESSAGE
|
||||||
!MESSAGE <rtlibcfg> controls the runtime library likage - can be 'static' or 'dynamic'.
|
!MESSAGE <rtlibcfg> controls the runtime library linkage - can be 'static' or 'dynamic'.
|
||||||
!MESSAGE <target> can be left blank in which case all is assumed
|
!MESSAGE <target> can be left blank in which case all is assumed
|
||||||
!MESSAGE <path> is the path where you like to build (obj, bins, etc.)
|
!MESSAGE <path> is the path where you like to build (obj, bins, etc.)
|
||||||
!MESSAGE default to ..\obj\
|
!MESSAGE default to ..\obj\
|
||||||
@ -105,21 +106,9 @@ CFGSET = TRUE
|
|||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Only the clean target can be used if a config was not provided.
|
# Rules
|
||||||
#
|
#
|
||||||
!IF "$(CFGSET)" == "FALSE"
|
!IF "$(CFGSET)" == "TRUE"
|
||||||
!MESSAGE
|
|
||||||
!MESSAGE No configuration provided - performing a clean.
|
|
||||||
clean:
|
|
||||||
@-erase /s *.dll 2> NUL
|
|
||||||
@-erase /s *.exp 2> NUL
|
|
||||||
@-erase /s *.idb 2> NUL
|
|
||||||
@-erase /s *.lib 2> NUL
|
|
||||||
@-erase /s *.obj 2> NUL
|
|
||||||
@-erase /s *.pch 2> NUL
|
|
||||||
@-erase /s *.pdb 2> NUL
|
|
||||||
@-erase /s *.res 2> NUL
|
|
||||||
!ELSE
|
|
||||||
# A config was provided, so the library can be built.
|
# A config was provided, so the library can be built.
|
||||||
#
|
#
|
||||||
|
|
||||||
@ -205,4 +194,14 @@ $(DIRBIN):
|
|||||||
$(MT) -manifest $@.manifest -outputresource:$@;1
|
$(MT) -manifest $@.manifest -outputresource:$@;1
|
||||||
del $@.manifest
|
del $@.manifest
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@-erase /s $(DIROBJ)\*.dll 2> NUL
|
||||||
|
@-erase /s $(DIROBJ)\*.exp 2> NUL
|
||||||
|
@-erase /s $(DIROBJ)\*.idb 2> NUL
|
||||||
|
@-erase /s $(DIROBJ)\*.lib 2> NUL
|
||||||
|
@-erase /s $(DIROBJ)\*.obj 2> NUL
|
||||||
|
@-erase /s $(DIROBJ)\*.pch 2> NUL
|
||||||
|
@-erase /s $(DIROBJ)\*.pdb 2> NUL
|
||||||
|
@-erase /s $(DIROBJ)\*.res 2> NUL
|
||||||
|
|
||||||
!ENDIF # End of case where a config was provided.
|
!ENDIF # End of case where a config was provided.
|
||||||
|
Loading…
Reference in New Issue
Block a user