|
ali@24
|
1 |
AM_CFLAGS=-g $(SETUP_CFLAGS)
|
|
ali@24
|
2 |
LDADD=../plover/libplover.la $(SETUP_LIBS)
|
|
ali@24
|
3 |
if PLOVER_MINGW
|
|
ali@24
|
4 |
LDADD+=-lcomctl32
|
|
ali@24
|
5 |
# pre-inst is not intended to produce any output (and any that is produced
|
|
ali@24
|
6 |
# can be safely junked). Thus -mwindows is appropriate since if called with
|
|
ali@24
|
7 |
# a console window attached no output should be visible anyway and if called
|
|
ali@24
|
8 |
# when no console window is attached we don't want one to be created.
|
|
ali@24
|
9 |
AM_LDFLAGS=-mwindows
|
|
ali@24
|
10 |
endif
|
|
ali@24
|
11 |
INCLUDES=-I$(top_srcdir) -I$(srcdir)
|
|
ali@32
|
12 |
CCLD = $(CXX)
|
|
ali@24
|
13 |
|
|
ali@24
|
14 |
bin_PROGRAMS=pre-inst
|
|
ali@24
|
15 |
|
|
ali@96
|
16 |
pre_inst_SOURCES=pre-inst.c post.c post.h
|
|
ali@24
|
17 |
pre_inst_LDFLAGS=$(AM_LDFLAGS) -all-static
|
|
ali@32
|
18 |
pre_inst_LIBTOOLFLAGS=--tag=CXX
|
|
ali@24
|
19 |
if HAVE_WINDRES
|
|
ali@24
|
20 |
pre_inst_SOURCES+=resources.rc pre-inst.exe.manifest resource.h
|
|
ali@24
|
21 |
endif
|
|
ali@24
|
22 |
|
|
ali@24
|
23 |
.rc.$(OBJEXT):
|
|
ali@24
|
24 |
$(AM_V_GEN)$(WINDRES) $(INCLUDES) $< $@
|
|
ali@24
|
25 |
|
|
ali@24
|
26 |
resources.$(OBJEXT): resources.rc resource.h pre-inst.exe.manifest pre-inst.ico
|
|
ali@24
|
27 |
|
|
ali@24
|
28 |
.png.pnm:
|
|
ali@24
|
29 |
$(AM_V_GEN)pngtopnm $< | pnmquant -quiet 256 > $@
|
|
ali@24
|
30 |
|
|
ali@24
|
31 |
pre-inst.ico: icon16.pnm icon22.pnm icon32.pnm
|
|
ali@24
|
32 |
$(AM_V_GEN)ppmtowinicon -output=$@ $^
|
|
ali@24
|
33 |
|
|
ali@24
|
34 |
EXTRA_DIST=icon16.png icon22.png icon32.png
|