update/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Fri Jul 08 08:26:29 2016 +0100 (2016-07-08)
changeset 59 296eac3183bc
parent 32 066e557ac453
child 61 31fb35727621
permissions -rw-r--r--
Second steps towards adding updatez
     1 AM_CFLAGS=-g $(SETUP_CFLAGS)
     2 LDADD=../plover/libplover.la $(SETUP_LIBS)
     3 INCLUDES=-I$(top_srcdir)
     4 CCLD = $(CXX)
     5 
     6 bin_PROGRAMS=update updatez
     7 bin_SCRIPTS=update.js
     8 
     9 update_SOURCES=update.c
    10 update_LDFLAGS=-all-static
    11 update_LIBTOOLFLAGS=--tag=CXX
    12 if HAVE_WINDRES
    13 update_SOURCES+=update-res.rc update.exe.manifest
    14 endif
    15 
    16 updatez_SOURCES=updatez.c
    17 updatez_LDFLAGS=-all-static
    18 updatez_LIBTOOLFLAGS=--tag=CXX
    19 if HAVE_WINDRES
    20 updatez_SOURCES+=updatez-res.rc updatez.exe.manifest
    21 endif
    22 
    23 .rc.$(OBJEXT):
    24 	$(AM_V_GEN)$(WINDRES) $< $@
    25 
    26 update-res.$(OBJEXT): update-res.rc update.exe.manifest update.ico
    27 updatez-res.$(OBJEXT): updatez-res.rc updatez.exe.manifest update.ico
    28 
    29 %.js: $(srcdir)/%.js.in
    30 	$(AM_V_GEN)sed -e 's/$$/\r/' $(srcdir)/$@.in > $@
    31 
    32 .png.pnm:
    33 	$(AM_V_GEN)pngtopnm $< | pnmquant -quiet 256 > $@
    34 
    35 update.ico:     icon16.pnm icon22.pnm icon32.pnm
    36 	$(AM_V_GEN)ppmtowinicon -output=$@ $^
    37 
    38 EXTRA_DIST=icon16.png icon22.png icon32.png update.js.in
    39 CLEANFILES=update.js