pre-inst/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Fri Mar 22 11:53:00 2019 +0000 (2019-03-22)
changeset 93 691fae7db8fe
parent 24 2b9f54d14cc2
child 96 d2d88f14283e
permissions -rw-r--r--
Added tag 0.5.7 for changeset e07ceadab395
     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
    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