#
#  Makefile
#  ARToolKit5
#
#  This file is part of ARToolKit.
#
#  ARToolKit is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  ARToolKit is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public License
#  along with ARToolKit.  If not, see <http://www.gnu.org/licenses/>.
#
#  As a special exception, the copyright holders of this library give you
#  permission to link this library with independent modules to produce an
#  executable, regardless of the license terms of these independent modules, and to
#  copy and distribute the resulting executable under terms of your choice,
#  provided that you also meet, for each linked independent module, the terms and
#  conditions of the license of that module. An independent module is a module
#  which is neither derived from nor based on this library. If you modify this
#  library, you may extend this exception to your version of the library, but you
#  are not obligated to do so. If you do not wish to do so, delete this exception
#  statement from your version.
#
#  Copyright 2015 Daqri, LLC.
#  Copyright 2002-2015 ARToolworks, Inc.
#
#  Author(s): Hirokazu Kato, Philip Lamb
#

all:
	(cd AR;                make -f Makefile)
	(cd ARICP;             make -f Makefile)
	(cd AR2;               make -f Makefile)
	(cd KPM;               make -f Makefile)
	(cd Util;              make -f Makefile)
	(cd ARMulti;           make -f Makefile)
	(cd Gl;                make -f Makefile)
	(cd Video;             make -f Makefile)
	(cd VideoDummy;        make -f Makefile)
	(cd VideoLinuxV4L2;    make -f Makefile)
	#(cd VideoLinuxV4L;     make -f Makefile)
	#(cd VideoLinux1394Cam; make -f Makefile)
	#(cd VideoLinuxDV;      make -f Makefile)
	#(cd VideoQuickTime;    make -f Makefile)
	#(cd VideoQuickTime7;   make -f Makefile)
	#(cd VideoGStreamer;    make -f Makefile)
	#(cd VideoImage;        make -f Makefile)
	#(cd ARosg;             make -f Makefile)
	#(cd ARvrml;            make -f Makefile)
	(cd Eden;              make -f Makefile)
	(cd ARWrapper;         make -f Makefile)

clean:
	(cd AR;                make -f Makefile clean)
	(cd ARICP;             make -f Makefile clean)
	(cd AR2;               make -f Makefile clean)
	(cd KPM;               make -f Makefile clean)
	(cd Util;              make -f Makefile clean)
	(cd ARMulti;           make -f Makefile clean)
	(cd Gl;                make -f Makefile clean)
	(cd Video;             make -f Makefile clean)
	(cd VideoDummy;        make -f Makefile clean)
	(cd VideoLinuxV4L;     make -f Makefile clean)
	(cd VideoLinuxV4L2;    make -f Makefile clean)
	(cd VideoLinux1394Cam; make -f Makefile clean)
	#(cd VideoLinuxDV;      make -f Makefile clean)
	(cd VideoQuickTime;    make -f Makefile clean)
	(cd VideoQuickTime7;   make -f Makefile clean)
	(cd VideoGStreamer;    make -f Makefile clean)
	(cd VideoImage;        make -f Makefile clean)
	(cd ARosg;             make -f Makefile clean)
	(cd ARvrml;            make -f Makefile clean)
	(cd Eden;              make -f Makefile clean)
	(cd ARWrapper;         make -f Makefile clean)

allclean:
	(cd AR;                make -f Makefile allclean)
	(cd ARICP;             make -f Makefile allclean)
	(cd AR2;               make -f Makefile allclean)
	(cd KPM;               make -f Makefile allclean)
	(cd Util;              make -f Makefile allclean)
	(cd ARMulti;           make -f Makefile allclean)
	(cd Gl;                make -f Makefile allclean)
	(cd Video;             make -f Makefile allclean)
	(cd VideoDummy;        make -f Makefile allclean)
	(cd VideoLinuxV4L;     make -f Makefile allclean)
	(cd VideoLinuxV4L2;    make -f Makefile allclean)
	(cd VideoLinux1394Cam; make -f Makefile allclean)
	#(cd VideoLinuxDV;      make -f Makefile allclean)
	(cd VideoQuickTime;    make -f Makefile allclean)
	(cd VideoQuickTime7;   make -f Makefile allclean)
	(cd VideoGStreamer;    make -f Makefile allclean)
	(cd VideoImage;        make -f Makefile allclean)
	(cd ARosg;             make -f Makefile allclean)
	(cd ARvrml;            make -f Makefile allclean)
	(cd Eden;              make -f Makefile allclean)
	(cd ARWrapper;         make -f Makefile allclean)
	rm -f Makefile

distclean:
	(cd AR;                make -f Makefile distclean)
	(cd ARICP;             make -f Makefile distclean)
	(cd AR2;               make -f Makefile distclean)
	(cd KPM;               make -f Makefile distclean)
	(cd Util;              make -f Makefile distclean)
	(cd ARMulti;           make -f Makefile distclean)
	(cd Gl;                make -f Makefile distclean)
	(cd Video;             make -f Makefile distclean)
	(cd VideoDummy;        make -f Makefile distclean)
	(cd VideoLinuxV4L;     make -f Makefile distclean)
	(cd VideoLinuxV4L2;    make -f Makefile distclean)
	(cd VideoLinux1394Cam; make -f Makefile distclean)
	#(cd VideoLinuxDV;      make -f Makefile distclean)
	(cd VideoQuickTime;    make -f Makefile distclean)
	(cd VideoQuickTime7;   make -f Makefile distclean)
	(cd VideoGStreamer;    make -f Makefile distclean)
	(cd VideoImage;        make -f Makefile distclean)
	(cd ARosg;             make -f Makefile distclean)
	(cd ARvrml;            make -f Makefile distclean)
	(cd Eden;              make -f Makefile distclean)
	(cd ARWrapper;         make -f Makefile distclean)
	rm -f Makefile

