pre-inst/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Tue Jun 29 10:08:58 2021 +0100 (2021-06-29)
changeset 107 6ae203c8b28d
parent 32 066e557ac453
permissions -rw-r--r--
Prepare to release 0.6.1
     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