# This software is in the public domain and may be freely copied and
# distributed.
#
# THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
# WARRANTY. IN PARTICULAR, THE AUTHORS DO NOT MAKE ANY REPRESENTATION OR
# WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR
# ITS FITNESS FOR ANY PARTICULAR PURPOSE.

# -DEXC_NO_POLLUTE: tell EXC to be name space clean by prefixing every exported
# name with exc_, else use convenient shorthands for some exported names. See
# exc.doc for details. You may want to use this on a per-file basis instead
# (e.g. see files ok.c, notok.c).

#EXC_FLAGS=-DEXC_NO_POLLUTE

# WARNING: cc -Ox generates bogus code on SCO 3.2v4.2 (use cc -O instead)

CC = cc
CFLAGS = -O $(EXC_FLAGS)

#CC = gcc
#CFLAGS = -Wall $(EXC_FLAGS) -O2

#
# you shouldn't have to change anything below this line
#

all:	test

test:	ok notok
	@tst

test2:	ok notok notok2
	@tst
	@tst2

notok:	notok.o exc.o snprintf.o
	$(CC) $(CFLAGS) -o $@ notok.o exc.o snprintf.o

notok2:	notok2.o exc.o snprintf.o
	$(CC) $(CFLAGS) -o $@ notok2.o exc.o snprintf.o

ok:	ok.o exc.o snprintf.o
	$(CC) $(CFLAGS) -o $@ ok.o exc.o snprintf.o

exc.o ok.o notok.o notok2.o: exc.h config.h

clean:
	rm -f notok2 notok ok *.o core core.* mon.out gmon.out
