1 ## Makefile.am -- Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = subdir-objects
8 INCLUDES = -I$(top_builddir) -I$(top_srcdir)
10 if WITH_WINDOWS_PROGRAMS
11 windows_progs = src/banner/banner src/clip/getclip src/clip/putclip \
12 src/cygstart/cygstart src/lpr/lpr src/mkshortcut/mkshortcut \
13 src/readshortcut/readshortcut
16 if WITH_NATIVE_IPC_PROGRAMS
17 ipc_progs = src/ipc/semtool src/ipc/shmtool \
18 src/ipc/msgtool src/ipc/semstat
19 ipc_scripts = src/ipc/ipck
22 bin_PROGRAMS = src/ascii/ascii $(windows_progs) src/conv/conv \
23 src/dump/dump $(ipc_progs) \
26 bin_SCRIPTS = $(ipc_scripts)
29 src/lpr/Printer.hh src/lpr/PrinterException.hh src/lpr/Win32Utils.hh
31 man_MANS = src/cygstart/cygstart.1 \
32 src/mkshortcut/mkshortcut.1 \
33 src/readshortcut/readshortcut.1 \
36 EXTRA_PROGRAMS = src/banner/banner src/clip/getclip src/clip/putclip \
37 src/cygstart/cygstart \
38 src/ipc/semtool src/ipc/shmtool \
39 src/ipc/msgtool src/ipc/semstat \
40 src/lpr/lpr src/mkshortcut/mkshortcut src/readshortcut/readshortcut
42 EXTRA_SCRIPTS = src/ipc/ipck
45 po/ChangeLog po/LINGUAS po/Makefile.in.in po/Makevars po/POTFILES.in \
46 po/Rules-quot po/boldquot.sed po/en@boldquot.header po/en@quot.header \
47 po/insert-header.sin po/quot.sed po/remove-potcdate.sin
52 licenses = licenses/COPYING.BSD-no-advert licenses/COPYING.GPL
54 EXTRA_DIST = config.rpath PROGLIST bootstrap common.h \
55 HOW-TO-CONTRIBUTE BRANCHES $(man_MANS) $(EXTRA_SCRIPTS) \
56 $(licenses) $(po_files) $(extra_docs)
58 src_banner_banner_LDADD = -lkernel32 -lgdi32
59 src_lpr_lpr_LDADD = -lwinspool
60 src_mkshortcut_mkshortcut_LDADD = -lole32 -luuid
61 src_readshortcut_readshortcut_LDADD = -lole32 -luuid
63 src_lpr_lpr_SOURCES = src/lpr/Printer.cc src/lpr/Win32Utils.cc src/lpr/lpr.cc src/lpr/Printer.hh src/lpr/PrinterException.hh src/lpr/Win32Utils.hh
65 install-exec-hook: $(bin_PROGRAMS)
67 $(mkinstalldirs) $(DESTDIR)$(bindir)
68 @for p in d2u u2d dos2unix unix2dos; do \
69 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
70 f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
71 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) src/conv/conv${EXEEXT} $(DESTDIR)$(bindir)/$$f"; \
72 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) src/conv/conv${EXEEXT} $(DESTDIR)$(bindir)/$$f; \