1# 2# ***** BEGIN LICENSE BLOCK ***** 3# 4# Copyright (C) 2009-2019 Olof Hagsand and Benny Holmgren 5# 6# This file is part of CLIXON 7# 8# Licensed under the Apache License, Version 2.0 (the "License"); 9# you may not use this file except in compliance with the License. 10# You may obtain a copy of the License at 11# 12# http://www.apache.org/licenses/LICENSE-2.0 13# 14# Unless required by applicable law or agreed to in writing, software 15# distributed under the License is distributed on an "AS IS" BASIS, 16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17# See the License for the specific language governing permissions and 18# limitations under the License. 19# 20# Alternatively, the contents of this file may be used under the terms of 21# the GNU General Public License Version 3 or later (the "GPL"), 22# in which case the provisions of the GPL are applicable instead 23# of those above. If you wish to allow use of your version of this file only 24# under the terms of the GPL, and not to allow others to 25# use your version of this file under the terms of Apache License version 2, 26# indicate your decision by deleting the provisions above and replace them with 27# the notice and other provisions required by the GPL. If you do not delete 28# the provisions above, a recipient may use your version of this file under 29# the terms of any one of the Apache License version 2 or the GPL. 30# 31# ***** END LICENSE BLOCK ***** 32# 33VPATH = @srcdir@ 34srcdir = @srcdir@ 35top_srcdir = @top_srcdir@ 36CC = @CC@ 37CFLAGS = @CFLAGS@ 38LDFLAGS = @LDFLAGS@ 39LIBS = @LIBS@ 40 41SHELL = /bin/sh 42 43SUBDIRS = main 44 45.PHONY: all clean depend install $(SUBDIRS) 46 47all: $(SUBDIRS) 48 49depend: 50 for i in $(SUBDIRS); \ 51 do (cd $$i; $(MAKE) $(MFLAGS) $@); done 52 53$(SUBDIRS): 54 (cd $@; $(MAKE) $(MFLAGS) all) 55 56install-include: 57 for i in $(SUBDIRS); \ 58 do (cd $$i && $(MAKE) $(MFLAGS) $@||exit 1); done; 59 60install: 61 for i in $(SUBDIRS); \ 62 do (cd $$i && $(MAKE) $(MFLAGS) $@)||exit 1; done 63 64uninstall: 65 for i in $(SUBDIRS); \ 66 do (cd $$i; $(MAKE) $(MFLAGS) $@)||exit 1; done 67 68clean: 69 for i in $(SUBDIRS); \ 70 do (cd $$i; $(MAKE) $(MFLAGS) $@); done 71 72distclean: clean 73 rm -f Makefile *~ .depend 74 for i in $(SUBDIRS); \ 75 do (cd $$i; $(MAKE) $(MFLAGS) $@); done 76 77TAGS: 78 find $(srcdir) -name '*.[chyl]' -print | etags - 79