-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
49 lines (38 loc) · 1.04 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $Id: Makefile.am,v 1.19 2007/02/18 07:35:04 mikrom Exp $
#
EXTRA_DIST = australia4c.kap
SUBDIRS = . tests
.PHONY: valgrind-check
valgrind-check:
cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
lib_LIBRARIES = libbsb.a
libbsb_a_SOURCES = bsb_io.c
INCLUDES = -I$(top_builddir)
include_HEADERS = bsb.h
bin_PROGRAMS = bsb2ppm ppm2bsb bsbfix
if HAVE_LIBTIFF
bin_PROGRAMS += bsb2tif tif2bsb
endif
if HAVE_LIBPNG
bin_PROGRAMS += bsb2png
endif
if HAVE_LIBQT
bin_PROGRAMS += bsbview
bsbview_SOURCES =
bsbview:
cd bsbview_src;qmake -makefile bsbview.pro
cd bsbview_src;make
cp bsbview_src/bsbview .
endif
LDADD = libbsb.a
bsb2tif_LDADD = libbsb.a -ltiff -lm
tif2bsb_LDADD = libbsb.a -ltiff -lm
# Under MinGW libpng needs -lz (doesn't hurt under other platforms)
bsb2png_LDADD = libbsb.a -lpng -lz -lm
if USE_MSVC
# The '; true' is necessary to throw away the remaining arguments from the
# command line in the Makefile (which is too rigid to permit /out:<arg>)
libbsb_a_AR = link.exe -lib -nologo /out:libbsb.a $(libbsb_a_OBJECTS) ; true
else
libbsb_a_AR = ar crv
endif