# Makefile for the picard program.

prefix      = @prefix@
exec_prefix = @exec_prefix@

libdir     = @libdir@
includedir = @includedir@

srcdir = @srcdir@
VPATH  = @srcdir@

CC       = @CC@
DEFS     = @DEFS@
CPPFLAGS = @CPPFLAGS@ $(DEFS)
CFLAGS   = @CFLAGS@
LIBS     = @LIBS@
LDFLAGS  = @LDFLAGS@

INSTALL         = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA    = @INSTALL_DATA@

RANLIB = @RANLIB@

all: libenterprise.a

clean:
	rm -f a.out core *.o libenterprise.a

realclean: clean

distclean: clean
	rm -f confdefs.h config.status config.log config.cache conf.h
	rm -f Makefile

install: libenterprise.a enterprise.h
	$(INSTALL_PROGRAM) libenterprise.a $(libdir)
	$(INSTALL_DATA) enterprise.h $(includedir)

libenterprise.a: helm.o computer.o saucer.o
	ar cru $@ $?
	$(RANLIB) $@
