# Generated automatically from Makefile.in by configure.
#
#  Tests makefile for Objective-C collection library
#  Copyright (C) 1993 Free Software Foundation, Inc.
#
#  Written by:	R. Andrew McCallum <mccallum@cs.rochester.edu>
#  Dept. of Computer Science, U. of Rochester, Rochester, NY  14627
#
#  This file is part of the GNU Objective-C Collection library.
#
#  This library is free software; you can redistribute it and/or
#  modify it under the terms of the GNU Library General Public
#  License as published by the Free Software Foundation; either
#  version 2 of the License, or (at your option) any later version.
#
#  This library 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
#  Library General Public License for more details.
#
#  You should have received a copy of the GNU Library General Public
#  License along with this library; if not, write to the Free
#  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

SHELL = /bin/sh

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

srcdir = .
VPATH = .

CC = gcc
     
CFLAGS = -Wall -Wno-implicit -g -O
CPPFLAGS =
LDFLAGS =
     
DEFS =  -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
LIBS =  -L$(srcdir)/.. -lcoll -lobjc

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

ALL_CPPFLAGS = -I$(srcdir)/.. $(CPPFLAGS)
ALL_CFLAGS = $(CFLAGS)
ALL_OBJCFLAGS = $(CFLAGS) -Wno-protocol
ALL_LDFLAGS = $(LIBS) $(LDFLAGS)

.SUFFIXES: .m
.m.o:
	$(CC) -c $(ALL_CPPFLAGS) $(DEFS) $(ALL_OBJCFLAGS) $< -o $*.o
.c.o:
	$(CC) -c $(ALL_CPPFLAGS) $(DEFS) $(ALL_CFLAGS) $< -o $*.o

%: %.o $(srcdir)/../libcoll.a
	$(CC) $(ALL_CFLAGS) $< -o $@ $(ALL_LDFLAGS)

SRCS = \
test01.m \
test02.m \
test03.m \
test04.m \
test05.m \
test06.m \
test07.m \
test08.m \
test09.m \
test10.m \
test11.m

EXCS = \
test01 \
test02 \
test03 \
test04 \
test05 \
test06 \
test07 \
test08 \
test09 \
test10 \
test11

DISTFILES = $(SRCS) Makefile.in NXStringTable.example

all: $(EXCS)

mostlyclean:
	rm -f core *~ test08.data

clean: mostlyclean
	rm -f *.o $(EXCS)

distclean: clean
	rm -f Makefile config.status

realclean: distclean
	rm -f TAGS

dist-dir: $(srcdir)/../.fname
	@echo Run make dist from the parent directory.

dist: $(DISTFILES) dist-dir
	mkdir $(srcdir)/../`cat $(srcdir)/../.fname`/checks
	ln $(DISTFILES) $(srcdir)/../`cat $(srcdir)/../.fname`/checks

Makefile: Makefile.in
	cd $(srcdir)/..; $(SHELL) config.status
