# Generated automatically from Makefile.in by configure.
TOP = ../..
srcdir = .

include $(TOP)/config/Makedefs

CCINCS = -I. -I$(srcdir) -Ispecs -I$(srcdir)/specs -I$(TOP) -I$(srcdir)/$(TOP)
CCCINCS = $(CCINCS)

COMLIB = $(TOP)/common/libcommon.a
LIBS = specs/libthor.a $(COMLIB)

LDIRT = client oo7 theta

CCSRCS = \
    main.c \
    oo7.c \
    theta.c \
    binary_veneer.c \
    promises.c \
    th-veneer.c

SUBDIRS = specs
TARGETS = client oo7 theta

all: client
	@if egrep -s TRUE $(TOP)/config/vdefs/OO7.h; then $(MAKE) oo7; fi
	@if egrep -s TRUE $(TOP)/config/vdefs/COMPILER.h; then \
	    $(MAKE) theta; fi

client: main.o promises.o binary_veneer.o
	$(CC) $(CFLAGS) -o $@ main.o binary_veneer.o $(LIBS)

oo7: oo7.o promises.o binary_veneer.o
	$(CC) $(CFLAGS) -o $@ binary_veneer.o promises.o oo7.o $(COMMON_OBJS) $(LIBS)

theta: theta.o binary_veneer.o
	$(CC) $(CFLAGS) -o $@ binary_veneer.o theta.o $(COMMON_OBJS) $(LIBS)

ascii-client: main.o promises.o th-veneer.o
	$(CC) $(CFLAGS) -Dascii -o $@ main.o promises.o th-veneer.o specs/libthor-ascii.a $(COMLIB)

