forked from old/legacy-imlib2
94 lines
2.1 KiB
Makefile
94 lines
2.1 KiB
Makefile
AUTOMAKE_OPTIONS = 1.4 foreign
|
|
AM_CFLAGS = $(CFLAGS_WARNINGS) $(CFLAGS_VISIBILITY) $(CFLAGS_ASAN)
|
|
AM_CPPFLAGS = -DPACKAGE_LIB_DIR=\"$(libdir)\" \
|
|
-I$(top_builddir) \
|
|
$(X_CFLAGS) \
|
|
$(FREETYPE_CFLAGS)
|
|
|
|
# Older automakes (<1.10) do not use INCLUDES when compiling .S files
|
|
AM_CCASFLAGS = -I$(top_builddir)
|
|
|
|
lib_LTLIBRARIES = libImlib2.la
|
|
include_HEADERS = Imlib2.h
|
|
libImlib2_la_SOURCES = \
|
|
api.c \
|
|
asm.h \
|
|
blend.c blend.h \
|
|
color_helpers.c color_helpers.h \
|
|
colormod.c colormod.h \
|
|
common.h \
|
|
debug.c debug.h \
|
|
dynamic_filters.c dynamic_filters.h \
|
|
ellipse.c \
|
|
file.c file.h \
|
|
filter.c filter.h \
|
|
font.h \
|
|
font_draw.c \
|
|
font_load.c \
|
|
font_main.c \
|
|
font_query.c \
|
|
grad.c grad.h \
|
|
image.c image.h \
|
|
image_tags.c \
|
|
line.c \
|
|
loaders.c loaders.h \
|
|
modules.c \
|
|
polygon.c \
|
|
rectangle.c \
|
|
rgbadraw.c rgbadraw.h \
|
|
rotate.c rotate.h \
|
|
scale.c scale.h \
|
|
script.c script.h \
|
|
span.c span.h \
|
|
updates.c updates.h
|
|
|
|
MMX_SRCS = \
|
|
asm_blend.S \
|
|
asm_blend_cmod.S \
|
|
asm_rgba.S \
|
|
asm_rotate.S \
|
|
asm_scale.S
|
|
|
|
AMD64_SRCS = \
|
|
amd64_blend.S \
|
|
amd64_blend_cmod.S
|
|
|
|
MMX_OBJS = $(MMX_SRCS:.S=.lo)
|
|
AMD64_OBJS = $(AMD64_SRCS:.S=.lo)
|
|
|
|
EXTRA_DIST = $(MMX_SRCS) $(AMD64_SRCS) asm_loadimmq.S
|
|
|
|
MY_LIBS = $(FREETYPE_LIBS) $(DLOPEN_LIBS) -lm
|
|
if BUILD_X11
|
|
libImlib2_la_SOURCES += \
|
|
x11_color.c x11_color.h \
|
|
x11_context.c x11_context.h \
|
|
x11_draw.c x11_draw.h \
|
|
x11_grab.c x11_grab.h \
|
|
x11_pixmap.c x11_pixmap.h \
|
|
x11_rend.c x11_rend.h \
|
|
x11_rgba.c x11_rgba.h \
|
|
x11_ximage.c x11_ximage.h
|
|
MY_LIBS += -lXext -lX11 @X_SHM_FD_LIBS@
|
|
endif
|
|
if BUILD_DEBUG
|
|
MY_LIBS += $(CLOCK_LIBS)
|
|
endif
|
|
|
|
if BUILD_MMX
|
|
libImlib2_la_LIBADD = $(MMX_OBJS) $(MY_LIBS)
|
|
libImlib2_la_DEPENDENCIES = $(top_builddir)/config.h $(MMX_OBJS)
|
|
EXTRA_libImlib2_la_SOURCES = $(MMX_SRCS)
|
|
else
|
|
if BUILD_AMD64
|
|
libImlib2_la_LIBADD = $(AMD64_OBJS) $(MY_LIBS)
|
|
libImlib2_la_DEPENDENCIES = $(top_builddir)/config.h $(AMD64_OBJS)
|
|
EXTRA_libImlib2_la_SOURCES = $(AMD64_SRCS)
|
|
else
|
|
libImlib2_la_LIBADD = $(MY_LIBS)
|
|
libImlib2_la_DEPENDENCIES = $(top_builddir)/config.h
|
|
endif
|
|
endif
|
|
libImlib2_la_LDFLAGS = -version-info @lt_version@
|
|
|