]>
Commit | Line | Data |
---|---|---|
d4a28ab0 CW |
1 | ## Makefile.am -- Process this file with automake to produce Makefile.in |
2 | ||
41326bf7 | 3 | AUTOMAKE_OPTIONS = subdir-objects |
a15e13ca | 4 | ACLOCAL_AMFLAGS = -I m4 |
d4a28ab0 | 5 | |
2cacf0ee | 6 | SUBDIRS = po |
41326bf7 CW |
7 | DIST_SUBDIRS = |
8 | ||
a15e13ca | 9 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) |
41326bf7 CW |
10 | |
11 | if WITH_WINDOWS_PROGRAMS | |
12 | windows_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 |
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 | |
41326bf7 CW |
19 | endif |
20 | ||
b5edac4c CW |
21 | if WITH_NATIVE_IPC_PROGRAMS |
22 | ipc_progs = src/ipc/semtool src/ipc/shmtool \ | |
23 | src/ipc/msgtool src/ipc/semstat | |
9420d22f | 24 | ipc_scripts = src/ipc/ipck |
41326bf7 CW |
25 | endif |
26 | ||
76e235a1 CW |
27 | bin_PROGRAMS = src/ascii/ascii $(windows_progs) src/conv/conv \ |
28 | src/dump/dump $(ipc_progs) \ | |
29 | src/realpath/realpath | |
41326bf7 | 30 | |
9420d22f CW |
31 | bin_SCRIPTS = $(ipc_scripts) |
32 | ||
65b579cb CW |
33 | lib_LTLIBRARIES = $(windows_ltlibraries) |
34 | ||
76e235a1 CW |
35 | noinst_HEADERS = \ |
36 | src/lpr/Printer.hh src/lpr/PrinterException.hh src/lpr/Win32Utils.hh | |
41326bf7 | 37 | |
65b579cb CW |
38 | include_HEADERS = $(windows_headers) |
39 | ||
76e235a1 | 40 | man_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 |
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 | ||
41326bf7 | 52 | EXTRA_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 | 58 | EXTRA_HEADERS = src/cygicons/cygicons.h |
9420d22f | 59 | EXTRA_SCRIPTS = src/ipc/ipck |
41326bf7 | 60 | |
65b579cb CW |
61 | lpr_docdir = $(docdir)/lpr |
62 | lpr_doc_DATA = $(lpr_docs) | |
63 | cygicons_docdir = $(docdir)/cygicons | |
64 | cygicons_doc_DATA = $(cygicons_docs) | |
65 | ||
0c884560 | 66 | po_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 | 72 | extra_docs = \ |
65b579cb | 73 | src/lpr/README src/cygicons/README |
0c884560 CW |
74 | |
75 | licenses = licenses/COPYING.BSD-no-advert licenses/COPYING.GPL | |
76 | ||
65b579cb CW |
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) | |
41326bf7 | 87 | |
a15e13ca CW |
88 | DISTCLEANFILES = \ |
89 | po/Makefile \ | |
90 | po/Makefile.in \ | |
91 | po/POTFILES \ | |
65b579cb CW |
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 | |
41326bf7 CW |
116 | |
117 | install-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 |
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 | |
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 | |
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 | |
a15e13ca | 166 |