bin_PROGRAMS = exp004viz

exp004viz_SOURCES = \
	controller/clear_selection.c \
	controller/exp004display.c \
	controller/exp004mouse.c \
	controller/exp004processhits.c \
	controller/exp004reshape.c \
	controller/keyboard.c \
	controller/selection_from_db.c \
	controller/selection_to_db.c \
	exp004viz.c \
	model/exp004base.c \
	util/check_error.c \
	util/pick_convert.c \
	view/exp004geometry.c \
	view/exp004init.c \
	view/exp004view.c

exp004viz_LDADD = ${GLUT_LIBS}

noinst_HEADERS = \
	controller/clear_selection.h \
	controller/exp004display.h \
	controller/exp004mouse.h \
	controller/exp004processhits.h \
	controller/exp004reshape.h \
	controller/keyboard.h \
	controller/selection_from_db.h \
	controller/selection_to_db.h \
	model/exp004base.h \
	model/exp004state.h \
	util/check_error.h \
	util/pick_convert.h \
	view/exp004geometry.h \
	view/exp004state0.h \
	view/exp004init.h \
	view/exp004view.h

AM_CFLAGS = -Wall -std=gnu99 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include/ncbi

# DB2 Precompiler for Embedded SQL
%.c : %.sqc
	db2 CONNECT TO exp004;
	db2 PRECOMPILE $<;

CLEANFILES = \
	clear_selection.c \
	exp004base.c \
	selection_from_db.c \
	selection_to_db.c