PDOS

[uia] / trunk / uia / yam / Makefile  

View of /trunk/uia/yam/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1845 - (download) (annotate)
Fri Mar 30 16:03:49 2007 UTC (2 years, 7 months ago) by jastr
File size: 2133 byte(s)
big reorg merge:
merge -r 1807:1841 branches/reorg branch->trunk
#
#  $Id$
# 
#  Copyright (c) 2006 Sean C. Rhea (srhea@srhea.net)
#  
#  Permission is hereby granted, free of charge, to any person
#  obtaining a copy of this software and associated documentation
#  files (the "Software"), to deal in the Software without
#  restriction, including without limitation the rights to use, copy,
#  modify, merge, publish, distribute, sublicense, and/or sell copies
#  of the Software, and to permit persons to whom the Software is
#  furnished to do so, subject to the following conditions:
#  
#  The above copyright notice and this permission notice shall be
#  included in all copies or substantial portions of the Software.
#  
#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
#  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
#  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
#  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
#  DEALINGS IN THE SOFTWARE.
#

PUBLIC_INCLUDES = $(shell find . -name '*.h*')
PUBLIC_LIBS = base/libyam.a sunrpc/libyam_sunrpc.a

SUBDIRS = base sfscompat sunrpc/rpcgen sunrpc examples

all: include_dir lib_dir subdirs
.PHONY: include_dir lib_dir subdirs clean install install distclean

include_dir:
	@if ! test -d include/yam; then mkdir -p include/yam; fi && \
	cd include/yam && \
	for file in $(PUBLIC_INCLUDES); \
	do if ! test -L $${file##*/}; then ln -s ../.$$file ;fi; \
	done

lib_dir:
	@if ! test -d lib; then mkdir lib; fi && \
	cd lib && \
	for file in $(PUBLIC_LIBS); \
	do if ! test -L $${file##*/}; then ln -s ../$$file ;fi; \
	done

subdirs:
	@for dir in $(SUBDIRS); \
	do $(MAKE) -wC $$dir || exit; \
	done

# XXX
install:

instal:
	@for dir in $(SUBDIRS); \
	do $(MAKE) -wC $$dir install || exit; \
	done

clean:
	rm -rf lib include
	@for dir in $(SUBDIRS); \
	do $(MAKE) -wC $$dir clean || exit; \
	done

distclean: clean
	rm -rf config.log config.status confdefs.h autom4te.cache Makeconf


Maintained by PDOS
ViewVC Help
Powered by ViewVC 1.0.3