1GDIALOG       = gtkada-dialog
2GTKADA_CONFIG = gtkada-config
3
4GNATMAKELDFLAGS = -largs -L../lib-obj -lgtkada $(GTK_LIBS)
5
6OBJ_DIR=obj
7include ../Makefile.common
8
9## These cannot be shared in Makefile.common, since relative paths might be
10## generated for configure (../install-sh), or absolute paths (/usr/bin/install)
11INSTALL         = @INSTALL@
12INSTALL_DATA    = @INSTALL_DATA@
13INSTALL_PROGRAM = @INSTALL_PROGRAM@
14INSTALL_SCRIPT  = @INSTALL_SCRIPT@
15
16all: force
17	${GNATMAKE} -Ptools ${GPR_BUILD} ${GNATMAKELDFLAGS} ${LDFLAGS}
18
19install: force
20	-${CHMOD} +x ${GTKADA_CONFIG}
21	${INSTALL_SCRIPT} ${GTKADA_CONFIG} "${DESTDIR}${bindir}"
22	${INSTALL_PROGRAM} ${OBJ_DIR}/${GDIALOG}${EXEEXT} "${DESTDIR}${bindir}"
23
24clean: module_clean
25
26distclean: module_distclean
27	-${RM} ${GTKADA_CONFIG}
28