# makefile for testing and installing the numerical array classes

VERSION = 0.9.2
NAME = g++array-$(VERSION)

prefix = /usr/local
includedir = $(prefix)/include

MAKE = make
INSTALL_DATA = install

C++_FILES = Viewport.h expansion.h fft.h instance.h lin_alg.h transform.h \
	utilities.h

C_FILES = c_array.h c_gnussl.h c_complex.h

all: C C++

C-install:
	if [ -d $(includedir) ]; then echo $(includedir) exists already; \
		else $(INSTALL_DATA) -d $(includedir); fi
	$(INSTALL_DATA) -m 0644 $(C_FILES) $(includedir)

C++-install:
	if [ -d $(includedir) ]; then echo $(includedir) exists already; \
		else $(INSTALL_DATA) -d $(includedir); fi
	$(INSTALL_DATA) -m 0644 $(C++_FILES) $(includedir)

install: C-install C++-install

uninstall:
	cd $(includedir); rm -rf $(C_FILES) $(C++_FILES)

