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