mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
Automake does not know how to compile Windows Resource files, so we have manually told automake how to do this. One particular short-coming is that dependencies are not automatically generated and tracked as they are with other known automake targets. Address this by creating an extra makefile that contains the automake rules needed for building source for Windows targets. This also includes outputting more accurate tags during compilation instead of using the generic "GEN" tag. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
27 lines
754 B
Makefile
27 lines
754 B
Makefile
AM_V_DLLTOOL = $(am__v_DLLTOOL_$(V))
|
|
am__v_DLLTOOL_ = $(am__v_DLLTOOL_$(AM_DEFAULT_VERBOSITY))
|
|
am__v_DLLTOOL_0 = @echo " DLLTOOL " $@;
|
|
am__v_DLLTOOL_1 =
|
|
|
|
AM_V_RC = $(am__v_RC_$(V))
|
|
am__v_RC_ = $(am__v_RC_$(AM_DEFAULT_VERBOSITY))
|
|
am__v_RC_0 = @echo " RC " $@;
|
|
am__v_RC_1 =
|
|
|
|
LTRC = $(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) \
|
|
$(LIBTOOLFLAGS) --mode=compile $(RC) $(AM_RCFLAGS) \
|
|
$(RCFLAGS)
|
|
|
|
RCPPARGS = \
|
|
--preprocessor-arg -MT \
|
|
--preprocessor-arg $@ \
|
|
--preprocessor-arg -MD \
|
|
--preprocessor-arg -MP \
|
|
--preprocessor-arg -MF \
|
|
--preprocessor-arg $$depbase.Tpo
|
|
|
|
.rc.lo:
|
|
$(AM_V_RC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
|
|
$(LTRC) $(RCPPARGS) -i $< -o $@ &&\
|
|
$(am__mv) $$depbase.Tpo $$depbase.Plo
|