]> cygwin.com Git - cygwin-apps/cygutils.git/blob - Makefile.am
Only build cygdrop when $host is cygwin.
[cygwin-apps/cygutils.git] / Makefile.am
1 ## Makefile.am -- Process this file with automake to produce Makefile.in
2
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)
6
7 SUBDIRS = po
8 DIST_SUBDIRS =
9
10 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
11
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
20 endif
21
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
26 endif
27
28 if WITH_CYGWIN_SPECIFIC_PROGRAMS
29 cygwin_specific_progs = src/cygdrop/cygdrop
30 endif
31
32 bin_PROGRAMS = src/ascii/ascii $(windows_progs) src/conv/conv \
33 src/dump/dump $(ipc_progs) \
34 src/realpath/realpath $(cygwin_specific_progs)
35
36 bin_SCRIPTS = $(ipc_scripts)
37
38 lib_LTLIBRARIES = $(windows_ltlibraries)
39
40 noinst_HEADERS = \
41 src/lpr/Printer.hh src/lpr/PrinterException.hh src/lpr/Win32Utils.hh
42
43 include_HEADERS = $(windows_headers)
44
45 man_MANS = src/cygstart/cygstart.1 \
46 src/mkshortcut/mkshortcut.1 \
47 src/readshortcut/readshortcut.1 \
48 src/lpr/lpr.1
49
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
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 \
61 src/lpr/lpr \
62 src/mkshortcut/mkshortcut src/readshortcut/readshortcut \
63 src/cygdrop/cygdrop
64
65 EXTRA_HEADERS = src/cygicons/cygicons.h
66 EXTRA_SCRIPTS = src/ipc/ipck
67
68 lpr_docdir = $(docdir)/lpr
69 lpr_doc_DATA = $(lpr_docs)
70 cygicons_docdir = $(docdir)/cygicons
71 cygicons_doc_DATA = $(cygicons_docs)
72
73 po_files = \
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
78
79 extra_docs = \
80 src/lpr/README src/cygicons/README
81
82 licenses = licenses/COPYING.BSD-no-advert licenses/COPYING.GPL
83
84 cygicons_list = \
85 src/cygicons/cygwin-kde.ico src/cygicons/cygwings.ico \
86 src/cygicons/cygwin.ico src/cygicons/cygwinpurple.ico \
87 src/cygicons/cygwinblue.ico src/cygicons/cygwinred.ico \
88 src/cygicons/cygwincyan.ico src/cygicons/cygwinshiny.ico \
89 src/cygicons/cygwing.ico src/cygicons/cygwinyellow.ico
90
91 EXTRA_DIST = bootstrap common.h \
92 BRANCHES $(man_MANS) $(doc_DATA) $(EXTRA_SCRIPTS) \
93 $(licenses) $(po_files) $(extra_docs) $(cygicons_list)
94
95 DISTCLEANFILES = \
96 po/Makefile \
97 po/Makefile.in \
98 po/POTFILES \
99 po/remove-potcdate.sed \
100 src/cygicons/cygicons.rc
101
102 src_ascii_ascii_LDADD = -lpopt
103 src_banner_banner_LDADD = -lpopt -lkernel32 -lgdi32
104 src_clip_getclip_LDADD = -lpopt
105 src_clip_putclip_LDADD = -lpopt
106 src_conv_conv_LDADD = -lpopt
107 src_cygstart_cygstart_LDADD = -lpopt
108 src_dump_dump_LDADD = -lpopt
109 src_lpr_lpr_LDADD = -lwinspool
110 src_mkshortcut_mkshortcut_LDADD = -lpopt -lole32 -luuid
111 src_readshortcut_readshortcut_LDADD = -lpopt -lole32 -luuid
112 src_realpath_realpath_LDADD = -lpopt
113
114 src_lpr_lpr_SOURCES = \
115 src/lpr/Printer.cc src/lpr/Win32Utils.cc \
116 src/lpr/lpr.cc src/lpr/Printer.hh \
117 src/lpr/Win32Utils.hh src/lpr/PrinterException.hh
118
119 dist_src_cygicons_libicons_la_SOURCES = \
120 src/cygicons/cygicons.h
121 nodist_src_cygicons_libicons_la_SOURCES = \
122 src/cygicons/cygicons.rc
123
124 src_cygicons_libicons_la_LDFLAGS = -version-info 0:0:0 -no-undefined $(AM_LDFLAGS)
125
126 src_cygdrop_cygdrop_SOURCES = src/cygdrop/cygdrop.cc
127 # This removes the unneeded dependency on cygstdc++-X.dll
128 src_cygdrop_cygdrop_CXXFLAGS = -fno-exceptions
129
130 install-exec-hook: $(bin_PROGRAMS)
131 @$(NORMAL_INSTALL)
132 $(mkdir_p) $(DESTDIR)$(bindir)
133 @t=`echo conv|sed '$(transform);s/$$/$(EXEEXT)/'`; \
134 for p in d2u u2d dos2unix unix2dos; do \
135 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
136 f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
137 echo "(cd $(DESTDIR)$(bindir) && ln -f $$t $$f)"; \
138 (cd $(DESTDIR)$(bindir) && ln -f $$t $$f); \
139 done
140 if [ -e $(DESTDIR)$(libdir)/libicons.dll.a ]; then \
141 (cd $(DESTDIR)$(libdir) && mv libicons.dll.a libcygicons.dll.a) ;\
142 fi
143 if [ -e $(DESTDIR)$(libdir)/libicons.a ]; then \
144 (cd $(DESTDIR)$(libdir) && mv libicons.a libcygicons.a) ;\
145 fi
146 if [ -e $(DESTDIR)$(libdir)/libicons.la ]; then \
147 (cd $(DESTDIR)$(libdir) && \
148 cat libicons.la | sed -e 's/libicons.a/libcygicons.a/g' \
149 -e 's/libicons.dll.a/libcygicons.dll.a/g' > \
150 libcygicons.la && \
151 rm -f libicons.la) ;\
152 fi
153
154 uninstall-hook:
155 @$(NORMAL_UNINSTALL)
156 @for p in d2u u2d dos2unix unix2dos; do \
157 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
158 f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
159 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
160 rm -f $(DESTDIR)$(bindir)/$$f; \
161 done
162 if [ -e $(DESTDIR)$(libdir)/libcygicons.la ]; then \
163 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/libcygicons.la'"; \
164 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/libcygicons.la"; \
165 fi
166
167 # hacks for RC support
168 RCFLAGS = -I$(top_builddir)/src/cygicons -I$(top_srcdir)/src/cygicons
169 ltrc_verbose = $(ltrc_verbose_$(V))
170 ltrc_verbose_ = $(ltrc_verbose_$(AM_DEFAULT_VERBOSITY))
171 ltrc_verbose_0 = @echo " CCRC " $@;
172
173 LTRCCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) \
174 $(LIBTOOLFLAGS) --mode=compile $(RC) \
175 `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
176 $(CPPFLAGS) $(AM_RCFLAGS) $(RCFLAGS) |\
177 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
178
179 .rc.lo:
180 $(ltrc_verbose)$(LTRCCOMPILE) -i $< -o $@
181
182 ## Extra dependencies for cygicons.lo
183 src/cygicons/cygicons.lo: src/cygicons/cygicons.rc $(cygicons_list) src/cygicons/cygicons.h
184
This page took 0.042397 seconds and 5 git commands to generate.