]> cygwin.com Git - cygwin-apps/cygutils.git/blame - Makefile.am
Fix mkshortcut bug
[cygwin-apps/cygutils.git] / Makefile.am
CommitLineData
d4a28ab0
CW
1## Makefile.am -- Process this file with automake to produce Makefile.in
2
41326bf7 3AUTOMAKE_OPTIONS = subdir-objects
a15e13ca 4ACLOCAL_AMFLAGS = -I m4
a5139f37 5AM_LDFLAGS = -Wl,--major-image-version=$(VERSION_MAJOR) -Wl,--minor-image-version=$(VERSION_MINOR)
d4a28ab0 6
2cacf0ee 7SUBDIRS = po
41326bf7
CW
8DIST_SUBDIRS =
9
a15e13ca 10AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
41326bf7
CW
11
12if WITH_WINDOWS_PROGRAMS
13windows_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
16windows_ltlibraries = src/cygicons/libicons.la
17windows_headers = src/cygicons/cygicons.h
18cygicons_docs = src/cygicons/README
19lpr_docs = src/lpr/README
41326bf7
CW
20endif
21
b5edac4c
CW
22if WITH_NATIVE_IPC_PROGRAMS
23ipc_progs = src/ipc/semtool src/ipc/shmtool \
24 src/ipc/msgtool src/ipc/semstat
9420d22f 25ipc_scripts = src/ipc/ipck
41326bf7
CW
26endif
27
29197d74
CW
28if WITH_CYGWIN_SPECIFIC_PROGRAMS
29cygwin_specific_progs = src/cygdrop/cygdrop
30endif
31
76e235a1
CW
32bin_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
36bin_SCRIPTS = $(ipc_scripts)
37
65b579cb
CW
38lib_LTLIBRARIES = $(windows_ltlibraries)
39
76e235a1
CW
40noinst_HEADERS = \
41 src/lpr/Printer.hh src/lpr/PrinterException.hh src/lpr/Win32Utils.hh
41326bf7 42
65b579cb
CW
43include_HEADERS = $(windows_headers)
44
76e235a1 45man_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
50doc_DATA = \
51 AUTHORS COPYING ChangeLog HOW-TO-CONTRIBUTE \
52 NEWS PROGLIST README TODO
53
54licensesdir = $(docdir)/licenses
55licenses_DATA = $(licenses)
56
41326bf7 57EXTRA_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 65EXTRA_HEADERS = src/cygicons/cygicons.h
9420d22f 66EXTRA_SCRIPTS = src/ipc/ipck
41326bf7 67
65b579cb
CW
68lpr_docdir = $(docdir)/lpr
69lpr_doc_DATA = $(lpr_docs)
70cygicons_docdir = $(docdir)/cygicons
71cygicons_doc_DATA = $(cygicons_docs)
72
0c884560 73po_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 79extra_docs = \
65b579cb 80 src/lpr/README src/cygicons/README
0c884560 81
7156ebbc
CW
82licenses = licenses/COPYING.BSD-no-advert \
83 licenses/COPYING.GPLv2 \
84 licenses/COPYING.GPLv3
0c884560 85
65b579cb
CW
86cygicons_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 \
91 src/cygicons/cygwing.ico src/cygicons/cygwinyellow.ico
92
93EXTRA_DIST = bootstrap common.h \
94 BRANCHES $(man_MANS) $(doc_DATA) $(EXTRA_SCRIPTS) \
95 $(licenses) $(po_files) $(extra_docs) $(cygicons_list)
41326bf7 96
a15e13ca
CW
97DISTCLEANFILES = \
98 po/Makefile \
99 po/Makefile.in \
100 po/POTFILES \
65b579cb
CW
101 po/remove-potcdate.sed \
102 src/cygicons/cygicons.rc
103
104src_ascii_ascii_LDADD = -lpopt
105src_banner_banner_LDADD = -lpopt -lkernel32 -lgdi32
106src_clip_getclip_LDADD = -lpopt
107src_clip_putclip_LDADD = -lpopt
108src_conv_conv_LDADD = -lpopt
109src_cygstart_cygstart_LDADD = -lpopt
110src_dump_dump_LDADD = -lpopt
111src_lpr_lpr_LDADD = -lwinspool
112src_mkshortcut_mkshortcut_LDADD = -lpopt -lole32 -luuid
113src_readshortcut_readshortcut_LDADD = -lpopt -lole32 -luuid
114src_realpath_realpath_LDADD = -lpopt
115
116src_lpr_lpr_SOURCES = \
117 src/lpr/Printer.cc src/lpr/Win32Utils.cc \
118 src/lpr/lpr.cc src/lpr/Printer.hh \
119 src/lpr/Win32Utils.hh src/lpr/PrinterException.hh
120
5ca59930 121dist_src_cygicons_libicons_la_SOURCES = \
65b579cb 122 src/cygicons/cygicons.h
5ca59930
CW
123nodist_src_cygicons_libicons_la_SOURCES = \
124 src/cygicons/cygicons.rc
125
a5139f37 126src_cygicons_libicons_la_LDFLAGS = -version-info 0:0:0 -no-undefined $(AM_LDFLAGS)
41326bf7 127
40d43529
CW
128src_cygdrop_cygdrop_SOURCES = src/cygdrop/cygdrop.cc
129# This removes the unneeded dependency on cygstdc++-X.dll
130src_cygdrop_cygdrop_CXXFLAGS = -fno-exceptions
131
41326bf7
CW
132install-exec-hook: $(bin_PROGRAMS)
133 @$(NORMAL_INSTALL)
378d3d10 134 $(mkdir_p) $(DESTDIR)$(bindir)
b773d56f
CW
135 @t=`echo conv|sed '$(transform);s/$$/$(EXEEXT)/'`; \
136 for p in d2u u2d dos2unix unix2dos; do \
41326bf7
CW
137 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
138 f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
b773d56f
CW
139 echo "(cd $(DESTDIR)$(bindir) && ln -f $$t $$f)"; \
140 (cd $(DESTDIR)$(bindir) && ln -f $$t $$f); \
41326bf7 141 done
65b579cb
CW
142 if [ -e $(DESTDIR)$(libdir)/libicons.dll.a ]; then \
143 (cd $(DESTDIR)$(libdir) && mv libicons.dll.a libcygicons.dll.a) ;\
144 fi
145 if [ -e $(DESTDIR)$(libdir)/libicons.a ]; then \
146 (cd $(DESTDIR)$(libdir) && mv libicons.a libcygicons.a) ;\
147 fi
148 if [ -e $(DESTDIR)$(libdir)/libicons.la ]; then \
149 (cd $(DESTDIR)$(libdir) && \
150 cat libicons.la | sed -e 's/libicons.a/libcygicons.a/g' \
151 -e 's/libicons.dll.a/libcygicons.dll.a/g' > \
152 libcygicons.la && \
153 rm -f libicons.la) ;\
154 fi
21006e63 155
a15e13ca
CW
156uninstall-hook:
157 @$(NORMAL_UNINSTALL)
158 @for p in d2u u2d dos2unix unix2dos; do \
159 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
160 f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
161 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
162 rm -f $(DESTDIR)$(bindir)/$$f; \
163 done
65b579cb
CW
164 if [ -e $(DESTDIR)$(libdir)/libcygicons.la ]; then \
165 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/libcygicons.la'"; \
166 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/libcygicons.la"; \
167 fi
168
169# hacks for RC support
170RCFLAGS = -I$(top_builddir)/src/cygicons -I$(top_srcdir)/src/cygicons
5ca59930
CW
171ltrc_verbose = $(ltrc_verbose_$(V))
172ltrc_verbose_ = $(ltrc_verbose_$(AM_DEFAULT_VERBOSITY))
173ltrc_verbose_0 = @echo " CCRC " $@;
174
175LTRCCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) \
176 $(LIBTOOLFLAGS) --mode=compile $(RC) \
177 `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
178 $(CPPFLAGS) $(AM_RCFLAGS) $(RCFLAGS) |\
65b579cb
CW
179 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
180
181.rc.lo:
5ca59930 182 $(ltrc_verbose)$(LTRCCOMPILE) -i $< -o $@
65b579cb
CW
183
184## Extra dependencies for cygicons.lo
185src/cygicons/cygicons.lo: src/cygicons/cygicons.rc $(cygicons_list) src/cygicons/cygicons.h
a15e13ca 186
This page took 0.045115 seconds and 5 git commands to generate.