1 ## Makefile.am -- Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = subdir-objects
4 ACLOCAL_AMFLAGS = -I m4
5 AM_LDFLAGS = -Wl,--major-image-version=$(VERSION_MAJOR) -Wl,--minor-image-version=$(VERSION_MINOR)
10 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
12 if WITH_WINDOWS_PROGRAMS
13 windows_progs = src/banner/banner src/clip/getclip src/clip/putclip \
14 src/cygstart/cygstart src/lpr/lpr src/mkshortcut/mkshortcut \
15 src/readshortcut/readshortcut
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
22 if WITH_NATIVE_IPC_PROGRAMS
23 ipc_progs = src/ipc/semtool src/ipc/shmtool \
24 src/ipc/msgtool src/ipc/semstat
25 ipc_scripts = src/ipc/ipck
28 if WITH_CYGWIN_SPECIFIC_PROGRAMS
29 cygwin_specific_progs = src/cygdrop/cygdrop
32 bin_PROGRAMS = src/ascii/ascii $(windows_progs) src/conv/conv \
33 src/dump/dump $(ipc_progs) \
34 src/realpath/realpath $(cygwin_specific_progs)
36 bin_SCRIPTS = $(ipc_scripts)
38 lib_LTLIBRARIES = $(windows_ltlibraries)
41 src/lpr/Printer.hh src/lpr/PrinterException.hh src/lpr/Win32Utils.hh
43 include_HEADERS = $(windows_headers)
45 man_MANS = src/cygstart/cygstart.1 \
46 src/mkshortcut/mkshortcut.1 \
47 src/readshortcut/readshortcut.1 \
51 AUTHORS COPYING ChangeLog HOW-TO-CONTRIBUTE \
52 NEWS PROGLIST README TODO
54 licensesdir = $(docdir)/licenses
55 licenses_DATA = $(licenses)
57 EXTRA_PROGRAMS = src/banner/banner src/clip/getclip src/clip/putclip \
58 src/cygstart/cygstart \
59 src/ipc/semtool src/ipc/shmtool \
60 src/ipc/msgtool src/ipc/semstat \
62 src/mkshortcut/mkshortcut src/readshortcut/readshortcut \
65 EXTRA_HEADERS = src/cygicons/cygicons.h
66 EXTRA_SCRIPTS = src/ipc/ipck
68 lpr_docdir = $(docdir)/lpr
69 lpr_doc_DATA = $(lpr_docs)
70 cygicons_docdir = $(docdir)/cygicons
71 cygicons_doc_DATA = $(cygicons_docs)
74 po/ChangeLog po/LINGUAS po/Makefile.in.in po/Makevars \
75 po/Makevars.template po/POTFILES.in \
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
80 src/lpr/README src/cygicons/README
82 licenses = licenses/COPYING.BSD-no-advert \
83 licenses/COPYING.GPLv2 \
84 licenses/COPYING.GPLv3
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 \
91 src/cygicons/cygwing.ico src/cygicons/cygwinyellow.ico \
92 src/cygicons/hippo.ico
94 EXTRA_DIST = bootstrap common.h \
95 BRANCHES $(man_MANS) $(doc_DATA) $(EXTRA_SCRIPTS) \
96 $(licenses) $(po_files) $(extra_docs) $(cygicons_list) \
97 src/cygicons/hippo.svg
103 po/remove-potcdate.sed \
104 src/cygicons/cygicons.rc
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
114 src_mkshortcut_mkshortcut_LDADD = -lpopt -lole32 /usr/lib/w32api/libuuid.a
115 src_readshortcut_readshortcut_LDADD = -lpopt -lole32 /usr/lib/w32api/libuuid.a
116 src_realpath_realpath_LDADD = -lpopt
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
123 dist_src_cygicons_libicons_la_SOURCES = \
124 src/cygicons/cygicons.h
125 nodist_src_cygicons_libicons_la_SOURCES = \
126 src/cygicons/cygicons.rc
128 src_cygicons_libicons_la_LDFLAGS = -version-info 0:0:0 -no-undefined $(AM_LDFLAGS)
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
134 install-exec-hook: $(bin_PROGRAMS)
136 $(mkdir_p) $(DESTDIR)$(bindir)
137 @t=`echo conv|sed '$(transform);s/$$/$(EXEEXT)/'`; \
138 for p in d2u u2d dos2unix unix2dos; do \
139 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
140 f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
141 echo "(cd $(DESTDIR)$(bindir) && ln -f $$t $$f)"; \
142 (cd $(DESTDIR)$(bindir) && ln -f $$t $$f); \
144 if [ -e $(DESTDIR)$(libdir)/libicons.dll.a ]; then \
145 (cd $(DESTDIR)$(libdir) && mv libicons.dll.a libcygicons.dll.a) ;\
147 if [ -e $(DESTDIR)$(libdir)/libicons.a ]; then \
148 (cd $(DESTDIR)$(libdir) && mv libicons.a libcygicons.a) ;\
150 if [ -e $(DESTDIR)$(libdir)/libicons.la ]; then \
151 (cd $(DESTDIR)$(libdir) && \
152 cat libicons.la | sed -e 's/libicons.a/libcygicons.a/g' \
153 -e 's/libicons.dll.a/libcygicons.dll.a/g' > \
155 rm -f libicons.la) ;\
160 @for p in d2u u2d dos2unix unix2dos; do \
161 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
162 f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
163 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
164 rm -f $(DESTDIR)$(bindir)/$$f; \
166 if [ -e $(DESTDIR)$(libdir)/libcygicons.la ]; then \
167 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/libcygicons.la'"; \
168 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/libcygicons.la"; \
171 # hacks for RC support
172 RCFLAGS = -I$(top_builddir)/src/cygicons -I$(top_srcdir)/src/cygicons
173 ltrc_verbose = $(ltrc_verbose_$(V))
174 ltrc_verbose_ = $(ltrc_verbose_$(AM_DEFAULT_VERBOSITY))
175 ltrc_verbose_0 = @echo " CCRC " $@;
177 LTRCCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) \
178 $(LIBTOOLFLAGS) --mode=compile $(RC) \
179 `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
180 $(CPPFLAGS) $(AM_RCFLAGS) $(RCFLAGS) |\
181 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
184 $(ltrc_verbose)$(LTRCCOMPILE) -i $< -o $@
186 ## Extra dependencies for cygicons.lo
187 src/cygicons/cygicons.lo: src/cygicons/cygicons.rc $(cygicons_list) src/cygicons/cygicons.h