pre-inst/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Wed Jul 15 16:04:47 2020 +0100 (2020-07-15)
changeset 98 71127797ca73
parent 32 066e557ac453
permissions -rw-r--r--
app-manager --update and --setup are documented to take URIs but they are not treated as such
     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 CCLD = $(CXX)
    13 
    14 bin_PROGRAMS=pre-inst
    15 
    16 pre_inst_SOURCES=pre-inst.c post.c post.h
    17 pre_inst_LDFLAGS=$(AM_LDFLAGS) -all-static
    18 pre_inst_LIBTOOLFLAGS=--tag=CXX
    19 if HAVE_WINDRES
    20 pre_inst_SOURCES+=resources.rc pre-inst.exe.manifest resource.h
    21 endif
    22 
    23 .rc.$(OBJEXT):
    24 	$(AM_V_GEN)$(WINDRES) $(INCLUDES) $< $@
    25 
    26 resources.$(OBJEXT): resources.rc resource.h pre-inst.exe.manifest pre-inst.ico
    27 
    28 .png.pnm:
    29 	$(AM_V_GEN)pngtopnm $< | pnmquant -quiet 256 > $@
    30 
    31 pre-inst.ico:     icon16.pnm icon22.pnm icon32.pnm
    32 	$(AM_V_GEN)ppmtowinicon -output=$@ $^
    33 
    34 EXTRA_DIST=icon16.png icon22.png icon32.png