]>
Commit | Line | Data |
---|---|---|
d4a28ab0 CW |
1 | ## Makefile.am -- Process this file with automake to produce Makefile.in |
2 | ||
41326bf7 | 3 | AUTOMAKE_OPTIONS = subdir-objects |
a15e13ca | 4 | ACLOCAL_AMFLAGS = -I m4 |
a5139f37 | 5 | AM_LDFLAGS = -Wl,--major-image-version=$(VERSION_MAJOR) -Wl,--minor-image-version=$(VERSION_MINOR) |
d4a28ab0 | 6 | |
2cacf0ee | 7 | SUBDIRS = po |
41326bf7 CW |
8 | DIST_SUBDIRS = |
9 | ||
a15e13ca | 10 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) |
41326bf7 CW |
11 | |
12 | if WITH_WINDOWS_PROGRAMS | |
13 | windows_progs = src/banner/banner src/clip/getclip src/clip/putclip \ | |
c56f3b40 | 14 | src/cygstart/cygstart src/lpr/lpr src/mkshortcut/mkshortcut \ |
29197d74 | 15 | src/readshortcut/readshortcut |
65b579cb CW |
16 | windows_ltlibraries = src/cygicons/libicons.la |
17 | windows_headers = src/cygicons/cygicons.h | |
18 | cygicons_docs = src/cygicons/README | |
19 | lpr_docs = src/lpr/README | |
41326bf7 CW |
20 | endif |
21 | ||
b5edac4c CW |
22 | if WITH_NATIVE_IPC_PROGRAMS |
23 | ipc_progs = src/ipc/semtool src/ipc/shmtool \ | |
24 | src/ipc/msgtool src/ipc/semstat | |
9420d22f | 25 | ipc_scripts = src/ipc/ipck |
41326bf7 CW |
26 | endif |
27 | ||
29197d74 CW |
28 | if WITH_CYGWIN_SPECIFIC_PROGRAMS |
29 | cygwin_specific_progs = src/cygdrop/cygdrop | |
30 | endif | |
31 | ||
76e235a1 CW |
32 | bin_PROGRAMS = src/ascii/ascii $(windows_progs) src/conv/conv \ |
33 | src/dump/dump $(ipc_progs) \ | |
29197d74 | 34 | src/realpath/realpath $(cygwin_specific_progs) |
41326bf7 | 35 | |
9420d22f CW |
36 | bin_SCRIPTS = $(ipc_scripts) |
37 | ||
65b579cb CW |
38 | lib_LTLIBRARIES = $(windows_ltlibraries) |
39 | ||
76e235a1 CW |
40 | noinst_HEADERS = \ |
41 | src/lpr/Printer.hh src/lpr/PrinterException.hh src/lpr/Win32Utils.hh | |
41326bf7 | 42 | |
65b579cb CW |
43 | include_HEADERS = $(windows_headers) |
44 | ||
76e235a1 | 45 | man_MANS = src/cygstart/cygstart.1 \ |
2cacf0ee | 46 | src/mkshortcut/mkshortcut.1 \ |
c56f3b40 | 47 | src/readshortcut/readshortcut.1 \ |
b773d56f | 48 | src/lpr/lpr.1 |
41326bf7 | 49 | |
65b579cb CW |
50 | doc_DATA = \ |
51 | AUTHORS COPYING ChangeLog HOW-TO-CONTRIBUTE \ | |
52 | NEWS PROGLIST README TODO | |
53 | ||
54 | licensesdir = $(docdir)/licenses | |
55 | licenses_DATA = $(licenses) | |
56 | ||
41326bf7 | 57 | EXTRA_PROGRAMS = src/banner/banner src/clip/getclip src/clip/putclip \ |
b5edac4c CW |
58 | src/cygstart/cygstart \ |
59 | src/ipc/semtool src/ipc/shmtool \ | |
60 | src/ipc/msgtool src/ipc/semstat \ | |
40d43529 CW |
61 | src/lpr/lpr \ |
62 | src/mkshortcut/mkshortcut src/readshortcut/readshortcut \ | |
63 | src/cygdrop/cygdrop | |
9420d22f | 64 | |
65b579cb | 65 | EXTRA_HEADERS = src/cygicons/cygicons.h |
9420d22f | 66 | EXTRA_SCRIPTS = src/ipc/ipck |
41326bf7 | 67 | |
65b579cb CW |
68 | lpr_docdir = $(docdir)/lpr |
69 | lpr_doc_DATA = $(lpr_docs) | |
70 | cygicons_docdir = $(docdir)/cygicons | |
71 | cygicons_doc_DATA = $(cygicons_docs) | |
72 | ||
0c884560 | 73 | po_files = \ |
a15e13ca CW |
74 | po/ChangeLog po/LINGUAS po/Makefile.in.in po/Makevars \ |
75 | po/Makevars.template po/POTFILES.in \ | |
0c884560 CW |
76 | po/Rules-quot po/boldquot.sed po/en@boldquot.header po/en@quot.header \ |
77 | po/insert-header.sin po/quot.sed po/remove-potcdate.sin | |
21006e63 | 78 | |
0c884560 | 79 | extra_docs = \ |
65b579cb | 80 | src/lpr/README src/cygicons/README |
0c884560 | 81 | |
7156ebbc CW |
82 | licenses = licenses/COPYING.BSD-no-advert \ |
83 | licenses/COPYING.GPLv2 \ | |
84 | licenses/COPYING.GPLv3 | |
0c884560 | 85 | |
65b579cb CW |
86 | cygicons_list = \ |
87 | src/cygicons/cygwin-kde.ico src/cygicons/cygwings.ico \ | |
88 | src/cygicons/cygwin.ico src/cygicons/cygwinpurple.ico \ | |
89 | src/cygicons/cygwinblue.ico src/cygicons/cygwinred.ico \ | |
90 | src/cygicons/cygwincyan.ico src/cygicons/cygwinshiny.ico \ | |
7b4dda32 CW |
91 | src/cygicons/cygwing.ico src/cygicons/cygwinyellow.ico \ |
92 | src/cygicons/hippo.ico | |
65b579cb CW |
93 | |
94 | EXTRA_DIST = bootstrap common.h \ | |
95 | BRANCHES $(man_MANS) $(doc_DATA) $(EXTRA_SCRIPTS) \ | |
7b4dda32 CW |
96 | $(licenses) $(po_files) $(extra_docs) $(cygicons_list) \ |
97 | src/cygicons/hippo.svg | |
41326bf7 | 98 | |
a15e13ca CW |
99 | DISTCLEANFILES = \ |
100 | po/Makefile \ | |
101 | po/Makefile.in \ | |
102 | po/POTFILES \ | |
65b579cb CW |
103 | po/remove-potcdate.sed \ |
104 | src/cygicons/cygicons.rc | |
105 | ||
106 | src_ascii_ascii_LDADD = -lpopt | |
107 | src_banner_banner_LDADD = -lpopt -lkernel32 -lgdi32 | |
108 | src_clip_getclip_LDADD = -lpopt | |
109 | src_clip_putclip_LDADD = -lpopt | |
110 | src_conv_conv_LDADD = -lpopt | |
111 | src_cygstart_cygstart_LDADD = -lpopt | |
112 | src_dump_dump_LDADD = -lpopt | |
113 | src_lpr_lpr_LDADD = -lwinspool | |
a4905427 CW |
114 | src_mkshortcut_mkshortcut_LDADD = -lpopt -lole32 /usr/lib/w32api/libuuid.a |
115 | src_readshortcut_readshortcut_LDADD = -lpopt -lole32 /usr/lib/w32api/libuuid.a | |
65b579cb CW |
116 | src_realpath_realpath_LDADD = -lpopt |
117 | ||
118 | src_lpr_lpr_SOURCES = \ | |
119 | src/lpr/Printer.cc src/lpr/Win32Utils.cc \ | |
120 | src/lpr/lpr.cc src/lpr/Printer.hh \ | |
121 | src/lpr/Win32Utils.hh src/lpr/PrinterException.hh | |
122 | ||
5ca59930 | 123 | dist_src_cygicons_libicons_la_SOURCES = \ |
65b579cb | 124 | src/cygicons/cygicons.h |
5ca59930 CW |
125 | nodist_src_cygicons_libicons_la_SOURCES = \ |
126 | src/cygicons/cygicons.rc | |
127 | ||
a5139f37 | 128 | src_cygicons_libicons_la_LDFLAGS = -version-info 0:0:0 -no-undefined $(AM_LDFLAGS) |
41326bf7 | 129 | |
40d43529 CW |
130 | src_cygdrop_cygdrop_SOURCES = src/cygdrop/cygdrop.cc |
131 | # This removes the unneeded dependency on cygstdc++-X.dll | |
132 | src_cygdrop_cygdrop_CXXFLAGS = -fno-exceptions | |
133 | ||
41326bf7 CW |
134 | install-exec-hook: $(bin_PROGRAMS) |
135 | @$(NORMAL_INSTALL) | |
378d3d10 | 136 | $(mkdir_p) $(DESTDIR)$(bindir) |
65b579cb CW |
137 | if [ -e $(DESTDIR)$(libdir)/libicons.dll.a ]; then \ |
138 | (cd $(DESTDIR)$(libdir) && mv libicons.dll.a libcygicons.dll.a) ;\ | |
139 | fi | |
140 | if [ -e $(DESTDIR)$(libdir)/libicons.a ]; then \ | |
141 | (cd $(DESTDIR)$(libdir) && mv libicons.a libcygicons.a) ;\ | |
142 | fi | |
143 | if [ -e $(DESTDIR)$(libdir)/libicons.la ]; then \ | |
144 | (cd $(DESTDIR)$(libdir) && \ | |
145 | cat libicons.la | sed -e 's/libicons.a/libcygicons.a/g' \ | |
146 | -e 's/libicons.dll.a/libcygicons.dll.a/g' > \ | |
147 | libcygicons.la && \ | |
148 | rm -f libicons.la) ;\ | |
149 | fi | |
21006e63 | 150 | |
a15e13ca CW |
151 | uninstall-hook: |
152 | @$(NORMAL_UNINSTALL) | |
65b579cb CW |
153 | if [ -e $(DESTDIR)$(libdir)/libcygicons.la ]; then \ |
154 | echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/libcygicons.la'"; \ | |
155 | $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/libcygicons.la"; \ | |
156 | fi | |
157 | ||
158 | # hacks for RC support | |
159 | RCFLAGS = -I$(top_builddir)/src/cygicons -I$(top_srcdir)/src/cygicons | |
5ca59930 CW |
160 | ltrc_verbose = $(ltrc_verbose_$(V)) |
161 | ltrc_verbose_ = $(ltrc_verbose_$(AM_DEFAULT_VERBOSITY)) | |
162 | ltrc_verbose_0 = @echo " CCRC " $@; | |
163 | ||
164 | LTRCCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) \ | |
165 | $(LIBTOOLFLAGS) --mode=compile $(RC) \ | |
166 | `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | |
167 | $(CPPFLAGS) $(AM_RCFLAGS) $(RCFLAGS) |\ | |
65b579cb CW |
168 | sed -e 's/-I/--include-dir /g;s/-D/--define /g'` |
169 | ||
170 | .rc.lo: | |
5ca59930 | 171 | $(ltrc_verbose)$(LTRCCOMPILE) -i $< -o $@ |
65b579cb CW |
172 | |
173 | ## Extra dependencies for cygicons.lo | |
174 | src/cygicons/cygicons.lo: src/cygicons/cygicons.rc $(cygicons_list) src/cygicons/cygicons.h | |
a15e13ca | 175 |