1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/pre-inst/Makefile.am Mon Nov 02 19:04:58 2015 +0000
1.3 @@ -0,0 +1,32 @@
1.4 +AM_CFLAGS=-g $(SETUP_CFLAGS)
1.5 +LDADD=../plover/libplover.la $(SETUP_LIBS)
1.6 +if PLOVER_MINGW
1.7 +LDADD+=-lcomctl32
1.8 +# pre-inst is not intended to produce any output (and any that is produced
1.9 +# can be safely junked). Thus -mwindows is appropriate since if called with
1.10 +# a console window attached no output should be visible anyway and if called
1.11 +# when no console window is attached we don't want one to be created.
1.12 +AM_LDFLAGS=-mwindows
1.13 +endif
1.14 +INCLUDES=-I$(top_srcdir) -I$(srcdir)
1.15 +
1.16 +bin_PROGRAMS=pre-inst
1.17 +
1.18 +pre_inst_SOURCES=pre-inst.c
1.19 +pre_inst_LDFLAGS=$(AM_LDFLAGS) -all-static
1.20 +if HAVE_WINDRES
1.21 +pre_inst_SOURCES+=resources.rc pre-inst.exe.manifest resource.h
1.22 +endif
1.23 +
1.24 +.rc.$(OBJEXT):
1.25 + $(AM_V_GEN)$(WINDRES) $(INCLUDES) $< $@
1.26 +
1.27 +resources.$(OBJEXT): resources.rc resource.h pre-inst.exe.manifest pre-inst.ico
1.28 +
1.29 +.png.pnm:
1.30 + $(AM_V_GEN)pngtopnm $< | pnmquant -quiet 256 > $@
1.31 +
1.32 +pre-inst.ico: icon16.pnm icon22.pnm icon32.pnm
1.33 + $(AM_V_GEN)ppmtowinicon -output=$@ $^
1.34 +
1.35 +EXTRA_DIST=icon16.png icon22.png icon32.png