2004-01-08 17:29:42 +00:00
|
|
|
# mkvtoolnix - Makefile for MinGW
|
|
|
|
# because I was fed up fighting against libtool
|
|
|
|
|
|
|
|
# Put all the user changeable options into one file
|
|
|
|
include Makefile.mingw.options
|
|
|
|
|
|
|
|
#
|
|
|
|
# System settings. Don't change anything below here.
|
|
|
|
#
|
|
|
|
ifneq (,$(findstring aviclasses,$(AVILIB)))
|
|
|
|
SUBDIRS = avilib-0.6.10 aviclasses src
|
|
|
|
else
|
|
|
|
SUBDIRS = avilib-0.6.10 src
|
|
|
|
endif
|
|
|
|
|
|
|
|
# And now the targets.
|
|
|
|
.PHONY: config.h
|
|
|
|
|
|
|
|
all: config.h subdirs
|
|
|
|
|
2004-01-08 18:22:24 +00:00
|
|
|
config.h:
|
|
|
|
if [ ! -f config.h ]; then \
|
|
|
|
cp config.h.mingw config.h ; \
|
|
|
|
else \
|
|
|
|
true; \
|
|
|
|
fi
|
|
|
|
|
2004-01-08 17:29:42 +00:00
|
|
|
subdirs:
|
|
|
|
list='$(SUBDIRS)'; \
|
|
|
|
for subdir in $$list; do \
|
2004-01-08 18:22:24 +00:00
|
|
|
echo "Making all in $$subdir"; \
|
2004-01-08 17:29:42 +00:00
|
|
|
(cd $$subdir && make -f Makefile.mingw) || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
|
|
|
list='$(SUBDIRS)'; \
|
|
|
|
for subdir in $$list; do \
|
2004-01-08 18:22:24 +00:00
|
|
|
echo "Making clean in $$subdir"; \
|
2004-01-08 17:29:42 +00:00
|
|
|
(cd $$subdir && make -f Makefile.mingw clean) || exit 1; \
|
|
|
|
done
|
|
|
|
|
2004-01-08 18:22:24 +00:00
|
|
|
depend:
|
|
|
|
list='$(SUBDIRS)'; \
|
|
|
|
for subdir in $$list; do \
|
|
|
|
echo "Making depend in $$subdir"; \
|
|
|
|
(cd $$subdir && make -f Makefile.mingw depend) || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|