]> cygwin.com Git - cygwin-apps/cygutils.git/blob - Makefile.am
Update version number
[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
6 SUBDIRS = po
7 DIST_SUBDIRS =
8
9 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
10
11 if WITH_WINDOWS_PROGRAMS
12 windows_progs = src/banner/banner src/clip/getclip src/clip/putclip \
13 src/cygstart/cygstart src/lpr/lpr src/mkshortcut/mkshortcut \
14 src/readshortcut/readshortcut
15 windows_ltlibraries = src/cygicons/libicons.la
16 windows_headers = src/cygicons/cygicons.h
17 cygicons_docs = src/cygicons/README
18 lpr_docs = src/lpr/README
19 endif
20
21 if WITH_NATIVE_IPC_PROGRAMS
22 ipc_progs = src/ipc/semtool src/ipc/shmtool \
23 src/ipc/msgtool src/ipc/semstat
24 ipc_scripts = src/ipc/ipck
25 endif
26
27 bin_PROGRAMS = src/ascii/ascii $(windows_progs) src/conv/conv \
28 src/dump/dump $(ipc_progs) \
29 src/realpath/realpath
30
31 bin_SCRIPTS = $(ipc_scripts)
32
33 lib_LTLIBRARIES = $(windows_ltlibraries)
34
35 noinst_HEADERS = \
36 src/lpr/Printer.hh src/lpr/PrinterException.hh src/lpr/Win32Utils.hh
37
38 include_HEADERS = $(windows_headers)
39
40 man_MANS = src/cygstart/cygstart.1 \
41 src/mkshortcut/mkshortcut.1 \
42 src/readshortcut/readshortcut.1 \
43 src/lpr/lpr.1
44
45 doc_DATA = \
46 AUTHORS COPYING ChangeLog HOW-TO-CONTRIBUTE \
47 NEWS PROGLIST README TODO
48
49 licensesdir = $(docdir)/licenses
50 licenses_DATA = $(licenses)
51
52 EXTRA_PROGRAMS = src/banner/banner src/clip/getclip src/clip/putclip \
53 src/cygstart/cygstart \
54 src/ipc/semtool src/ipc/shmtool \
55 src/ipc/msgtool src/ipc/semstat \
56 src/lpr/lpr src/mkshortcut/mkshortcut src/readshortcut/readshortcut
57
58 EXTRA_HEADERS = src/cygicons/cygicons.h
59 EXTRA_SCRIPTS = src/ipc/ipck
60
61 lpr_docdir = $(docdir)/lpr
62 lpr_doc_DATA = $(lpr_docs)
63 cygicons_docdir = $(docdir)/cygicons
64 cygicons_doc_DATA = $(cygicons_docs)
65
66 po_files = \
67 po/ChangeLog po/LINGUAS po/Makefile.in.in po/Makevars \
68 po/Makevars.template po/POTFILES.in \
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
71
72 extra_docs = \
73 src/lpr/README src/cygicons/README
74
75 licenses = licenses/COPYING.BSD-no-advert licenses/COPYING.GPL
76
77 cygicons_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
84 EXTRA_DIST = bootstrap common.h \
85 BRANCHES $(man_MANS) $(doc_DATA) $(EXTRA_SCRIPTS) \
86 $(licenses) $(po_files) $(extra_docs) $(cygicons_list)
87
88 DISTCLEANFILES = \
89 po/Makefile \
90 po/Makefile.in \
91 po/POTFILES \
92 po/remove-potcdate.sed \
93 src/cygicons/cygicons.rc
94
95 src_ascii_ascii_LDADD = -lpopt
96 src_banner_banner_LDADD = -lpopt -lkernel32 -lgdi32
97 src_clip_getclip_LDADD = -lpopt
98 src_clip_putclip_LDADD = -lpopt
99 src_conv_conv_LDADD = -lpopt
100 src_cygstart_cygstart_LDADD = -lpopt
101 src_dump_dump_LDADD = -lpopt
102 src_lpr_lpr_LDADD = -lwinspool
103 src_mkshortcut_mkshortcut_LDADD = -lpopt -lole32 -luuid
104 src_readshortcut_readshortcut_LDADD = -lpopt -lole32 -luuid
105 src_realpath_realpath_LDADD = -lpopt
106
107 src_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
112 src_cygicons_libicons_la_SOURCES = \
113 src/cygicons/cygicons.rc \
114 src/cygicons/cygicons.h
115 src_cygicons_libicons_la_LDFLAGS = -version-info 0:0:0 -no-undefined
116
117 install-exec-hook: $(bin_PROGRAMS)
118 @$(NORMAL_INSTALL)
119 $(mkdir_p) $(DESTDIR)$(bindir)
120 @t=`echo conv|sed '$(transform);s/$$/$(EXEEXT)/'`; \
121 for p in d2u u2d dos2unix unix2dos; do \
122 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
123 f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
124 echo "(cd $(DESTDIR)$(bindir) && ln -f $$t $$f)"; \
125 (cd $(DESTDIR)$(bindir) && ln -f $$t $$f); \
126 done
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
140
141 uninstall-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
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
155 RCFLAGS = -I$(top_builddir)/src/cygicons -I$(top_srcdir)/src/cygicons
156
157 LTRCCOMPILE = $(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
165 src/cygicons/cygicons.lo: src/cygicons/cygicons.rc $(cygicons_list) src/cygicons/cygicons.h
166
This page took 0.040542 seconds and 5 git commands to generate.