/****************************************************************************
 * Imakefile for imakestuff subdir of P3D
 * Authors Joel Welling and Chris Nuuja
 * Copyright 1989, Pittsburgh Supercomputing Center, Carnegie Mellon University
 *
 * Permission use, copy, and modify this software and its documentation
 * without fee for personal use or use within your organization is hereby
 * granted, provided that the above copyright notice is preserved in all
 * copies and that that copyright and this permission notice appear in
 * supporting documentation.  Permission to redistribute this software to
 * other organizations or individuals is not granted;  that must be
 * negotiated with the PSC.  Neither the PSC nor Carnegie Mellon
 * University make any representations about the suitability of this
 * software for any purpose.  It is provided "as is" without express or
 * implied warranty.
 *****************************************************************************/
SUBMAKES= 

SUBIMAKES=

EXECUTABLES= ccimake imake mkdepend

CSOURCE= ccimake.c imake.c include.c main.c parse.c pr.c cppsetup.c

HFILES= imakemdep.h def.h

OTHER_SOURCE= Imake.tmpl header.imake cpp.ed

DOCS= imake.man mkdepend.man

/* This directory should make without flags. */
CFLAGS=

all:: imake mkdepend

imake: ccimake imakemdep.h imake.c
	$(CC) -o imake imake.c `./ccimake`

ccimake: ccimake.c imakemdep.h
	$(CC) -o ccimake ccimake.c

mkdepend: include.o main.o parse.o pr.o cppsetup.o
	$(CC) -o mkdepend include.o main.o parse.o pr.o cppsetup.o

main.o: 
	$(CC) -c `./ccimake` '-DINCLUDEDIR="/usr/include"' main.c 



