pre-inst/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Sat Nov 15 19:04:45 2014 +0000 (2014-11-15)
changeset 24 2b9f54d14cc2
child 32 066e557ac453
permissions -rw-r--r--
Add GUI front-end to setup and update
     1 AM_CFLAGS=-g $(SETUP_CFLAGS)
     2 LDADD=../plover/libplover.la $(SETUP_LIBS)
     3 if PLOVER_MINGW
     4 LDADD+=-lcomctl32
     5 # pre-inst is not intended to produce any output (and any that is produced
     6 # can be safely junked). Thus -mwindows is appropriate since if called with
     7 # a console window attached no output should be visible anyway and if called
     8 # when no console window is attached we don't want one to be created.
     9 AM_LDFLAGS=-mwindows
    10 endif
    11 INCLUDES=-I$(top_srcdir) -I$(srcdir)
    12 
    13 bin_PROGRAMS=pre-inst
    14 
    15 pre_inst_SOURCES=pre-inst.c
    16 pre_inst_LDFLAGS=$(AM_LDFLAGS) -all-static
    17 if HAVE_WINDRES
    18 pre_inst_SOURCES+=resources.rc pre-inst.exe.manifest resource.h
    19 endif
    20 
    21 .rc.$(OBJEXT):
    22 	$(AM_V_GEN)$(WINDRES) $(INCLUDES) $< $@
    23 
    24 resources.$(OBJEXT): resources.rc resource.h pre-inst.exe.manifest pre-inst.ico
    25 
    26 .png.pnm:
    27 	$(AM_V_GEN)pngtopnm $< | pnmquant -quiet 256 > $@
    28 
    29 pre-inst.ico:     icon16.pnm icon22.pnm icon32.pnm
    30 	$(AM_V_GEN)ppmtowinicon -output=$@ $^
    31 
    32 EXTRA_DIST=icon16.png icon22.png icon32.png