]> cygwin.com Git - cygwin-apps/cygutils.git/blame - Makefile.am
Ensure uniformity of --version options.
[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
d4a28ab0 5
2cacf0ee 6SUBDIRS = po
41326bf7
CW
7DIST_SUBDIRS =
8
a15e13ca 9AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
41326bf7
CW
10
11if WITH_WINDOWS_PROGRAMS
12windows_progs = src/banner/banner src/clip/getclip src/clip/putclip \
c56f3b40
CW
13 src/cygstart/cygstart src/lpr/lpr src/mkshortcut/mkshortcut \
14 src/readshortcut/readshortcut
65b579cb
CW
15windows_ltlibraries = src/cygicons/libicons.la
16windows_headers = src/cygicons/cygicons.h
17cygicons_docs = src/cygicons/README
18lpr_docs = src/lpr/README
41326bf7
CW
19endif
20
b5edac4c
CW
21if WITH_NATIVE_IPC_PROGRAMS
22ipc_progs = src/ipc/semtool src/ipc/shmtool \
23 src/ipc/msgtool src/ipc/semstat
9420d22f 24ipc_scripts = src/ipc/ipck
41326bf7
CW
25endif
26
76e235a1
CW
27bin_PROGRAMS = src/ascii/ascii $(windows_progs) src/conv/conv \
28 src/dump/dump $(ipc_progs) \
29 src/realpath/realpath
41326bf7 30
9420d22f
CW
31bin_SCRIPTS = $(ipc_scripts)
32
65b579cb
CW
33lib_LTLIBRARIES = $(windows_ltlibraries)
34
76e235a1
CW
35noinst_HEADERS = \
36 src/lpr/Printer.hh src/lpr/PrinterException.hh src/lpr/Win32Utils.hh
41326bf7 37
65b579cb
CW
38include_HEADERS = $(windows_headers)
39
76e235a1 40man_MANS = src/cygstart/cygstart.1 \
2cacf0ee 41 src/mkshortcut/mkshortcut.1 \
c56f3b40 42 src/readshortcut/readshortcut.1 \
b773d56f 43 src/lpr/lpr.1
41326bf7 44
65b579cb
CW
45doc_DATA = \
46 AUTHORS COPYING ChangeLog HOW-TO-CONTRIBUTE \
47 NEWS PROGLIST README TODO
48
49licensesdir = $(docdir)/licenses
50licenses_DATA = $(licenses)
51
41326bf7 52EXTRA_PROGRAMS = src/banner/banner src/clip/getclip src/clip/putclip \
b5edac4c
CW
53 src/cygstart/cygstart \
54 src/ipc/semtool src/ipc/shmtool \
55 src/ipc/msgtool src/ipc/semstat \
c56f3b40 56 src/lpr/lpr src/mkshortcut/mkshortcut src/readshortcut/readshortcut
9420d22f 57
65b579cb 58EXTRA_HEADERS = src/cygicons/cygicons.h
9420d22f 59EXTRA_SCRIPTS = src/ipc/ipck
41326bf7 60
65b579cb
CW
61lpr_docdir = $(docdir)/lpr
62lpr_doc_DATA = $(lpr_docs)
63cygicons_docdir = $(docdir)/cygicons
64cygicons_doc_DATA = $(cygicons_docs)
65
0c884560 66po_files = \
a15e13ca
CW
67 po/ChangeLog po/LINGUAS po/Makefile.in.in po/Makevars \
68 po/Makevars.template po/POTFILES.in \
0c884560
CW
69 po/Rules-quot po/boldquot.sed po/en@boldquot.header po/en@quot.header \
70 po/insert-header.sin po/quot.sed po/remove-potcdate.sin
21006e63 71
0c884560 72extra_docs = \
65b579cb 73 src/lpr/README src/cygicons/README
0c884560
CW
74
75licenses = licenses/COPYING.BSD-no-advert licenses/COPYING.GPL
76
65b579cb
CW
77cygicons_list = \
78 src/cygicons/cygwin-kde.ico src/cygicons/cygwings.ico \
79 src/cygicons/cygwin.ico src/cygicons/cygwinpurple.ico \
80 src/cygicons/cygwinblue.ico src/cygicons/cygwinred.ico \
81 src/cygicons/cygwincyan.ico src/cygicons/cygwinshiny.ico \
82 src/cygicons/cygwing.ico src/cygicons/cygwinyellow.ico
83
84EXTRA_DIST = bootstrap common.h \
85 BRANCHES $(man_MANS) $(doc_DATA) $(EXTRA_SCRIPTS) \
86 $(licenses) $(po_files) $(extra_docs) $(cygicons_list)
41326bf7 87
a15e13ca
CW
88DISTCLEANFILES = \
89 po/Makefile \
90 po/Makefile.in \
91 po/POTFILES \
65b579cb
CW
92 po/remove-potcdate.sed \
93 src/cygicons/cygicons.rc
94
95src_ascii_ascii_LDADD = -lpopt
96src_banner_banner_LDADD = -lpopt -lkernel32 -lgdi32
97src_clip_getclip_LDADD = -lpopt
98src_clip_putclip_LDADD = -lpopt
99src_conv_conv_LDADD = -lpopt
100src_cygstart_cygstart_LDADD = -lpopt
101src_dump_dump_LDADD = -lpopt
102src_lpr_lpr_LDADD = -lwinspool
103src_mkshortcut_mkshortcut_LDADD = -lpopt -lole32 -luuid
104src_readshortcut_readshortcut_LDADD = -lpopt -lole32 -luuid
105src_realpath_realpath_LDADD = -lpopt
106
107src_lpr_lpr_SOURCES = \
108 src/lpr/Printer.cc src/lpr/Win32Utils.cc \
109 src/lpr/lpr.cc src/lpr/Printer.hh \
110 src/lpr/Win32Utils.hh src/lpr/PrinterException.hh
111
112src_cygicons_libicons_la_SOURCES = \
113 src/cygicons/cygicons.rc \
114 src/cygicons/cygicons.h
115src_cygicons_libicons_la_LDFLAGS = -version-info 0:0:0 -no-undefined
41326bf7
CW
116
117install-exec-hook: $(bin_PROGRAMS)
118 @$(NORMAL_INSTALL)
378d3d10 119 $(mkdir_p) $(DESTDIR)$(bindir)
b773d56f
CW
120 @t=`echo conv|sed '$(transform);s/$$/$(EXEEXT)/'`; \
121 for p in d2u u2d dos2unix unix2dos; do \
41326bf7
CW
122 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
123 f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
b773d56f
CW
124 echo "(cd $(DESTDIR)$(bindir) && ln -f $$t $$f)"; \
125 (cd $(DESTDIR)$(bindir) && ln -f $$t $$f); \
41326bf7 126 done
65b579cb
CW
127 if [ -e $(DESTDIR)$(libdir)/libicons.dll.a ]; then \
128 (cd $(DESTDIR)$(libdir) && mv libicons.dll.a libcygicons.dll.a) ;\
129 fi
130 if [ -e $(DESTDIR)$(libdir)/libicons.a ]; then \
131 (cd $(DESTDIR)$(libdir) && mv libicons.a libcygicons.a) ;\
132 fi
133 if [ -e $(DESTDIR)$(libdir)/libicons.la ]; then \
134 (cd $(DESTDIR)$(libdir) && \
135 cat libicons.la | sed -e 's/libicons.a/libcygicons.a/g' \
136 -e 's/libicons.dll.a/libcygicons.dll.a/g' > \
137 libcygicons.la && \
138 rm -f libicons.la) ;\
139 fi
21006e63 140
a15e13ca
CW
141uninstall-hook:
142 @$(NORMAL_UNINSTALL)
143 @for p in d2u u2d dos2unix unix2dos; do \
144 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
145 f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
146 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
147 rm -f $(DESTDIR)$(bindir)/$$f; \
148 done
65b579cb
CW
149 if [ -e $(DESTDIR)$(libdir)/libcygicons.la ]; then \
150 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/libcygicons.la'"; \
151 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/libcygicons.la"; \
152 fi
153
154# hacks for RC support
155RCFLAGS = -I$(top_builddir)/src/cygicons -I$(top_srcdir)/src/cygicons
156
157LTRCCOMPILE = $(LIBTOOL) --mode=compile $(RC) \
158 `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(RCFLAGS) |\
159 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
160
161.rc.lo:
162 $(LTRCCOMPILE) -i $< -o $@
163
164## Extra dependencies for cygicons.lo
165src/cygicons/cygicons.lo: src/cygicons/cygicons.rc $(cygicons_list) src/cygicons/cygicons.h
a15e13ca 166
This page took 0.038912 seconds and 5 git commands to generate.