File Makefile.am of Package arachne

## Process this file with automake to produce Makefile.in


##Copyright (C) 2007, 2008 Hayden Walles
##
##This file is part of Arachne.
##
##Arachne is free software; you can redistribute it and/or modify
##it under the terms of the GNU General Public License as published by
##the Free Software Foundation; either version 2 of the License, or
##(at your option) any later version.
##
## Arachne is distributed in the hope that it will be useful,
##but WITHOUT ANY WARRANTY; without even the implied warranty of
##MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##GNU General Public License for more details.
##
##You should have received a copy of the GNU General Public License
##along with this program; if not, write to the Free Software
##Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


#The way this file is arranged, if GTK+ is for some reason not detected properly by configure, but is actually installed, Arachne can be built by ensuring config.h contains '#define USE_GTK 1', running 'make' and then running 'make arachne'.

SUBDIRS = seamstress

AM_CPPFLAGS = -I$(srcdir)/seamstress

bin_PROGRAMS = mapseams removeseams retarget
if USE_GRAPHICS
bin_PROGRAMS += arachne
endif

AM_LDFLAGS = -rpath $(libdir)

arachne_SOURCES = arachne.c  image.c  arachne.h image.h seamstress/seamstress.h
if USE_WINDOWS
arachne_SOURCES += gui-windows.c arachne-res.rc resource.h
.rc.o:
	windres  $< $@
else
arachne_SOURCES += gui-gtk.c icons.c viewhtml.c
endif

removeseams_SOURCES = removeseams.c image.c image.h seamstress/seamstress.h
retarget_SOURCES = retarget.c image.c image.h seamstress/seamstress.h
mapseams_SOURCES = mapseams.c image.c image.h seamstress/seamstress.h

arachne_LDADD =  seamstress/libseamstress.la
if USE_WINDOWS
arachne_LDFLAGS = -mwindows
arachne_LDADD += -lcomctl32
else
arachne_LDADD += $(GTK_LIBS) $(GDK_PIXBUF_LIBS)
endif

removeseams_LDADD = seamstress/libseamstress.la
retarget_LDADD = seamstress/libseamstress.la
mapseams_LDADD =  seamstress/libseamstress.la
arachne_CPPFLAGS = -DDIR_PKG_DATA=\"$(pkgdatadir)\" $(AM_CPPFLAGS)

if ! USE_WINDOWS
arachne_CFLAGS = $(GTK_CFLAGS) $(GDK_PIXBUF_CFLAGS) 
endif

dist_pkgdata_DATA = doc/protect.jpg doc/expose.jpg   doc/narrow1.jpg  doc/wide.jpg doc/mainwin.jpg  doc/narrow2.jpg  doc/waiting.jpg doc/narrow.jpg   doc/a125.html  doc/ln11.html  doc/x110.html  doc/x120.html  doc/x75.html doc/b221.html  doc/t1.html    doc/x116.html  doc/x29.html


EXTRA_DIST = icons/arachne16.png     icons/ergsplus.png icons/arachne24.png     icons/ergsplus24.png icons/arachne32.png     icons/horzmode.png icons/arachne48.png     icons/horzmode24.png icons/ergsminus.png     icons/origmode.png icons/ergsminus24.png   icons/origmode24.png icons/ergsnormal.png    icons/vertmode.png icons/ergsnormal24.png  icons/vertmode24.png icons/arachne.ico icons/horzmode.ico icons/vertmode.ico icons/ergsminus.ico icons/ergsplus.ico icons/ergsnormal.ico icons/origmode.ico doc/arachne.sgml doc/arachne.dsl




openSUSE Build Service is sponsored by