mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 15:12:32 +01:00
The functions are declared in different files but they were called in another file which re-declared the prototypes. This is dangerous as it can lead to misaligned prototypes when functions changes. They are now grouped in the library internal header 'imgformat.h'
76 lines
1.7 KiB
Makefile
76 lines
1.7 KiB
Makefile
## automake input file for wrlib
|
|
|
|
SUBDIRS = .
|
|
|
|
AUTOMAKE_OPTIONS =
|
|
|
|
EXTRA_DIST = tests libwraster.map get-wraster-flags.in
|
|
|
|
lib_LTLIBRARIES = libwraster.la
|
|
|
|
libwraster_la_LDFLAGS = -version-info @WRASTER_VERSION@
|
|
|
|
if HAVE_LD_VERSION_SCRIPT
|
|
libwraster_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libwraster.map
|
|
endif
|
|
|
|
bin_SCRIPTS = get-wraster-flags
|
|
|
|
include_HEADERS = wraster.h
|
|
|
|
libwraster_la_SOURCES = \
|
|
imgformat.h \
|
|
raster.c \
|
|
alpha_combine.c \
|
|
draw.c \
|
|
color.c \
|
|
load.c \
|
|
save.c \
|
|
gradient.c \
|
|
xpixmap.c \
|
|
convert.c \
|
|
context.c \
|
|
misc.c \
|
|
scale.c \
|
|
rotate.c \
|
|
convolve.c \
|
|
nxpm.c \
|
|
xpm.c \
|
|
xutil.c \
|
|
ppm.c \
|
|
png.c \
|
|
jpeg.c \
|
|
tiff.c \
|
|
gif.c
|
|
|
|
|
|
LTCOMPILE2=`echo $(LTCOMPILE) | sed -e s/-fomit-frame-pointer//`
|
|
COMPILE2=`echo $(COMPILE) | sed -e s/-fomit-frame-pointer//`
|
|
|
|
AM_CPPFLAGS = $(DFLAGS) @HEADER_SEARCH_PATH@
|
|
|
|
libwraster_la_LIBADD = @LIBRARY_SEARCH_PATH@ @GFXLIBS@ @XLIBS@ @LIBXMU@ -lm
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = wrlib.pc
|
|
|
|
DISTCLEANFILES = $(pkgconfig_DATA) get-wraster-flags
|
|
|
|
wrlib.pc: Makefile
|
|
@echo "Generating $@"
|
|
@echo 'Name: wrlib' > $@
|
|
@echo 'Description: Image manipulation and conversion library' >> $@
|
|
@echo 'Version: $(VERSION)' >> $@
|
|
@echo 'Libs: $(lib_search_path) -lwraster' >> $@
|
|
@echo 'Libs.private: $(GFXLIBS) $(XLIBS) -lm' >> $@
|
|
@echo 'Cflags: $(inc_search_path)' >> $@
|
|
|
|
get-wraster-flags: get-wraster-flags.in Makefile
|
|
@echo "Generating $@"
|
|
@$(SED) -e 's#$${inc_search_path}#$(inc_search_path)#;' \
|
|
-e 's#$${lib_search_path}#$(lib_search_path)#;' \
|
|
-e 's#$${GFXLIBS}#$(GFXLIBS)#;' \
|
|
-e 's#$${XLIBS}#$(XLIBS)#;' < $(abs_srcdir)/get-wraster-flags.in > $@
|
|
@chmod 755 $@
|
|
|