1# ******************************************************************************
2# 
3# libcsc: Make Subsystem
4# 
5# 	----------------------------------------------------------------
6# 
7# Copyright (c) 2001, Douglas R. Jerome, Peoria, AZ USA
8# 
9# 	This program is free software; you can redistribute it and/or modify
10# 	it under the terms of the GNU Library General Public License as
11# 	published by the Free Software Foundation; either version 2 of the
12# 	License, or (at your option) any later version.
13# 
14# 	This program is distributed in the hope that it will be useful,
15# 	but WITHOUT ANY WARRANTY; without even the implied warranty of
16# 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# 	GNU General Public License for more details.
18# 
19# 	You should have received a copy of the GNU Library General Public
20# 	License along with this program; if not, write to the Free Software
21# 	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22# 
23# 	----------------------------------------------------------------
24# 
25# FILE NAME
26# 
27# 	$RCSfile: Makefile.include,v $
28# 	$Revision: 1.1 $
29# 	$Date: 2001/07/10 04:21:55 $
30# 
31# PROGRAM INFORMATION
32# 
33# 	Developed by:	libcsc project
34# 	Developer:	Douglas R. Jerome, drj, <jerome@primenet.com>
35# 
36# FILE DESCRIPTION
37# 
38# 	This is the libcsc make file for the include directory. It does the
39# 	fetching from RCS and installation of the csc header files.
40# 
41# CHANGE LOG
42# 
43# 	25jun01	drj	File generation.
44# 
45# ******************************************************************************
46
47
48# *************************************************************************** #
49# Macro Definitions                                                           #
50# *************************************************************************** #
51
52C_HEADER_FILES	= libcsc.h	\
53		  libcsc_debug.h
54
55
56# *************************************************************************** #
57# More Macro Definitions                                                      #
58# *************************************************************************** #
59
60INSTALL	= install -c
61
62
63# *************************************************************************** #
64# Make Rules
65# *************************************************************************** #
66
67%::	${PROJECTDIR}/RCS/%,v
68	$(CO) $(COFLAGS) $@ $<
69
70
71# *************************************************************************** #
72# Make Targets                                                                #
73# *************************************************************************** #
74
75headers:	${C_HEADER_FILES}
76
77install:	${C_HEADER_FILES}
78	@for file in ${C_HEADER_FILES}; do				\
79		if [ -r $${file} -a -n "${INSTALLINC}" ]; then		\
80			${INSTALL} -m 644 $${file} ${INSTALLINC};	\
81		else							\
82			echo "ERROR ***** (displayed on next line)";	\
83			echo "${INSTALL} -m 644 $${file} ${INSTALLINC}";\
84		fi							\
85	done
86
87clean:
88
89
90# end of Makefile
91