File: Makefile.am

package info (click to toggle)
libpano13 2.9.12.dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 8,616 kB
  • ctags: 3,403
  • sloc: ansic: 31,169; sh: 8,383; cpp: 1,714; makefile: 236; perl: 202
file content (127 lines) | stat: -rw-r--r-- 3,413 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
ACLOCAL_AMFLAGS = -I m4

STD_SRC = filter.c parser.c queryfeature.c correct.c perspect.c \
	  adjust.c  remap.c lmdif.c  file.c \
	  math.c pan.c PTDialogs.c fftn.c fourier.c resample.c \
	  optimize.c morpher.c Triangulate.c \
	  seamer.c hdrfile.c rgbe.c rgbe.h \
	  tiff.c ZComb.c jpeg.c png.c  multilayer.c sys_common.c PTcommon.c ColourBrightness.c\
	  metadata.c jpegicc.c ptstitch.c ptfeather.c

if HasJava
JAVA_SRC = ptpicker.c pteditor.c
else
JAVA_SRC = javastub.c
endif

STD_HDR = panorama.h filter.h version.h panotypes.h PTcommon.h pt_stdint.h file.h

INTERNAL_HDR = fftn.h f2c.h ZComb.h adjust.h ColourBrightness.h PTcommon.h pt_stdint.h pttiff.h metadata.h jpegicc.h ptstitch.h ptfeather.h

TOOL_HDR = queryfeature.h pteditor.h ptutils.h 

SYS_HDR = sys_X11.h sys_ansi.h sys_mac.h sys_win.h 

if HAVE_X11
X11_SRC =  sys_X11.c 
else
X11_SRC =
endif

if HAVE_CYGWIN
WIN_SRC =  sys_ansi.c bmp.c
WIN_DEFS = -D__Win__=1
WIN_LDFS = -mwindows -avoid-version -no-undefined -export-symbols $(srcdir)/libpano12.def 

$(PANO_WIN32_RESOURCE): pano12.rc
	        $(top_srcdir)/build/win32/lt-compile-resource pano12.rc $@

install-exec-hook:
	mv $(DESTDIR)$(bindir)/cygpano12.dll $(DESTDIR)$(bindir)/pano12.dll
endif

if HAVE_MINGW
WIN_SRC =  sys_ansi.c bmp.c
WIN_DEFS = -D__Win__=1
WIN_LDFS = -mwindows -avoid-version -no-undefined -export-symbols $(srcdir)/libpano12.def 

$(PANO_WIN32_RESOURCE): pano12.rc
	        $(top_srcdir)/build/win32/lt-compile-resource pano12.rc $@

install-exec-hook:
	mv $(DESTDIR)$(bindir)/libpano12.dll $(DESTDIR)$(bindir)/pano12.dll
endif

if HAVE_MAC
MAC_SRC =  PixMap.c pict.c shell_mac.c sys_mac.c ppm.c
MAC_HDR =  PixMap.h

install-exec-hook:
	@true

endif

if HAVE_LINUX
LIN_SRC =  sys_ansi.c ppm.c
LIN_DEFS = -D__Ansi__=1
LIN_LDFS = -version-info 0:0:0

install-exec-hook:
	@true

endif

if HAVE_DARWIN
DAR_SRC =  sys_ansi.c ppm.c
DAR_DEFS = -D__Ansi__=1
DAR_LDFS = -version-info 0:0:0

install-exec-hook:
	@true

endif

AM_CPPFLAGS = $(JAVA_FLAGS) $(JPEG_FLAGS) $(PNG_FLAGS) $(TIFF_FLAGS) $(ZLIB_FLAGS) $(WIN_DEFS) $(LIN_DEFS) $(DAR_DEFS) $(ENDIAN_FLAG)

lib_LTLIBRARIES = libpano13.la

libpano13_la_SOURCES = $(STD_SRC) $(JAVA_SRC) $(X11_SRC) $(WIN_SRC) $(MAC_SRC) $(LIN_SRC) $(DAR_SRC)
libpano13_la_LIBADD = $(LIB_JPEG) $(LIB_PNG) $(LIB_TIFF) $(LIB_ZLIB) @PANO_WIN32_RESOURCE@
libpano13_la_LDFLAGS = $(LIN_LDFS) $(WIN_LDFS) $(DAR_LDFS)
libpano13_la_DEPENDENCIES = @PANO_WIN32_RESOURCE@

pkginclude_HEADERS = $(STD_HDR) $(TOOL_HDR)

noinst_HEADERS = $(INTERNAL_HDR) $(SYS_HDR) $(MAC_HDR)

SUBDIRS=m4 . tools doc build tests

distdir=lib$(PACKAGE)-$(VERSION)

dist-hook:
	rm -rf `find $(distdir) -name CVS`
	rm -rf `find $(distdir) -name .cvsignore`

EXTRA_DIST =  gpl.txt README.linux README.windows README.mac \
	      makefile.linux makefile.mac makefile.win32 \
	      bootstrap filter.r pano12.def libpano12.def pano12.rc \
	      seamer_.c sys_X11.c sys_win.c bmp.c PixMap.c pict.c shell_mac.c \
	      sys_mac.c ppm.c PixMap.h sys_ansi.c ppm.c ZComb.h adjust.h \
	      pano12vc.def pano12vcd.def libpano.vcproj PanoTools.pbproj.tgz

MAINTAINERCLEANFILES = \
	COPYING				\
	INSTALL				\
	aclocal.m4			\
	config.h.in			\
	config.h.in~		\
	Makefile.in			\
	configure

maintainer-clean-local:
	rm -rf config

# I know this is wrong!!!
darwin: libpano13.la filter.r
	echo "FIXME: What should this be on osx??"
	/Developer/Tools/Rez -t APPL -o libpano13.dynlib filter.r