AM_CFLAGS=-g $(SETUP_CFLAGS) LDADD=../plover/libplover.la $(SETUP_LIBS) if PLOVER_MINGW LDADD+=-lcomctl32 # pre-inst is not intended to produce any output (and any that is produced # can be safely junked). Thus -mwindows is appropriate since if called with # a console window attached no output should be visible anyway and if called # when no console window is attached we don't want one to be created. AM_LDFLAGS=-mwindows endif INCLUDES=-I$(top_srcdir) -I$(srcdir) bin_PROGRAMS=pre-inst pre_inst_SOURCES=pre-inst.c pre_inst_LDFLAGS=$(AM_LDFLAGS) -all-static if HAVE_WINDRES pre_inst_SOURCES+=resources.rc pre-inst.exe.manifest resource.h endif .rc.$(OBJEXT): $(AM_V_GEN)$(WINDRES) $(INCLUDES) $< $@ resources.$(OBJEXT): resources.rc resource.h pre-inst.exe.manifest pre-inst.ico .png.pnm: $(AM_V_GEN)pngtopnm $< | pnmquant -quiet 256 > $@ pre-inst.ico: icon16.pnm icon22.pnm icon32.pnm $(AM_V_GEN)ppmtowinicon -output=$@ $^ EXTRA_DIST=icon16.png icon22.png icon32.png