# Makefile template for GNU indent
# Copyright (C) 1994, Joseph Arceneaux.  All rights reserved
# Copyright (C) 1992, Free Software Foundation, Inc.
#
# This file is part of GNU indent.
#
# GNU indent is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# 
# GNU indent is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with GNU indent; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

#### Start of system configuration section. ####

SRC = Src/
OBJ = Obj/

CC = SC

DEFS = DEFINE=DIRENT DEFINE=USG

#### End of system configuration section. ####

OBJECTS = $(OBJ)indent.o $(OBJ)io.o $(OBJ)lexi.o $(OBJ)parse.o \
		  $(OBJ)comments.o $(OBJ)args.o $(OBJ)globs.o $(OBJ)backup.o

# Make the program and documentation
#
all: Indent

Indent: $(OBJECTS)
	@$(CC) LINK TO $@ $(OBJECTS)

.c.o:
	@$(CC) $< $(DEFS) OBJNAME=$@


$(OBJ)backup.o  : $(SRC)backup.c $(SRC)backup.h $(SRC)sys.h
$(OBJ)globs.o   : $(SRC)globs.c $(SRC)sys.h

$(OBJ)indent.o  : $(SRC)indent.c $(SRC)indent.h $(SRC)sys.h
$(OBJ)args.o    : $(SRC)args.c $(SRC)version.h $(SRC)indent.h $(SRC)sys.h
$(OBJ)io.o      : $(SRC)io.c $(SRC)indent.h $(SRC)sys.h
$(OBJ)lexi.o    : $(SRC)lexi.c $(SRC)indent.h $(SRC)sys.h
$(OBJ)parse.o   : $(SRC)parse.c $(SRC)indent.h $(SRC)sys.h
$(OBJ)comments.o: $(SRC)comments.c $(SRC)indent.h $(SRC)sys.h
$(OBJ)memcpy.o  : $(SRC)memcpy.c $(SRC)indent.h $(SRC)sys.h

