####################################################################
#   Copyright (c) 1996 NPACT Working Group. You may copy,          #
#   distribute, and modify it freely as long as you preserve this  #
#   copyright and permission notice.                               #
#                                                                  #
#   NPACT Working Group is a joint force of                        #
#      NPAC at Syracuse University,                                #
#      PACT at Harbin Institute of Technology, and                 #
#      PACT at Peking University                                   #   
####################################################################

#
#  Makefile for example 
#

SHELL       = /bin/sh

VERSION     = @VERSION@

srcdir      = @srcdir@
top_srcdir  = @top_srcdir@

config_dir  = ../include

prefix      = @prefix@

exec_prefix = ${prefix}
bindir      = ${exec_prefix}/bin

VPATH       = .:${srcdir}

INCPREFIX   = ${prefix}
LIBPREFIX   = ${exec_prefix}


CFLAGS   = @CFLAGS@ @DEFS@ -I. -I${srcdir} -I$(config_dir) -I$(INCPREFIX)/include
CXXFLAGS = @CXXFLAGS@ @DEFS@ -I. -I${srcdir} -I$(config_dir) -I$(INCPREFIX)/include

CC  = @CC@
CXX = @CXX@

LIB=$(LIBPREFIX)/lib/libxsage.a $(LIBPREFIX)/lib/libbasic.a
LIBF = -lxsage -lbasic
LIBDIR = -L$(LIBPREFIX)/lib

PROGRAM = indent

OBJS = indent.o

.SUFFIXES:
.SUFFIXES: .o .c .C

.c.o:
	$(CC) -c $(CFLAGS) $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $<


all: Makefile $(PROGRAM)

Makefile: Makefile.in
	@echo 
	@echo Please configure the package to generate new makefile ...
	@exit 1

clean:
	rm -f *.o core $(PROGRAM)

$(PROGRAM): $(LIB) $(OBJS)
	$(CXX) -g -o $@ $(OBJS) $(LIBDIR) $(LIBF)


############
# file dependence information
############

indent.o: indent.C

