1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-12 03:35:52 +01:00

wrlib: Use a Conditional for XPM in the makefile instead of #if in source

Now that the builtin XPM loading is separated from the saving code, the
use of the conditionals provided by autotools provides a better result
as it avoids unnecessary compilation.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-11-08 18:50:01 +01:00
committed by Carlos R. Mafra
parent aa99207ab4
commit 3b2362662e
2 changed files with 2 additions and 4 deletions

View File

@@ -34,7 +34,6 @@ libwraster_la_SOURCES = \
scale.c \
rotate.c \
convolve.c \
nxpm.c \
save_xpm.c \
xutil.c \
ppm.c
@@ -57,6 +56,8 @@ endif
if USE_XPM
libwraster_la_SOURCES += xpm.c
else
libwraster_la_SOURCES += nxpm.c
endif
LTCOMPILE2=`echo $(LTCOMPILE) | sed -e s/-fomit-frame-pointer//`