Commit 887535dc authored by Kevin Cozens's avatar Kevin Cozens Committed by Kevin Cozens

Added.

2007-02-10  Kevin Cozens  <kcozens@cvs.gnome.org>

	* operations/Makefile-operations.am: Added.

	* operations/render/Makefile.am
	* operations/svg/Makefile.am
	* operations/blur/Makefile.am
	* operations/file-io/Makefile.am
	* operations/display/Makefile.am
	* operations/meta/Makefile.am
	* operations/core/Makefile.am
	* operations/transparency/Makefile.am
	* operations/Makefile.am
	* operations/transform/Makefile.am
	* operations/workshop/Makefile.am
	* operations/workshop/generated/Makefile.am
	* operations/color/Makefile.am
	* operations/generated/Makefile.am: Simplified all operation
	Makefile.am files by removing all of the common stuff. The
	file operations/Makefile-operations.am contains the common
	parts and is included from the other Makefile.am files.

svn path=/trunk/; revision=1315
parent 47fd4d79
2007-02-10 Kevin Cozens <kcozens@cvs.gnome.org>
* operations/Makefile-operations.am: Added.
* operations/render/Makefile.am
* operations/svg/Makefile.am
* operations/blur/Makefile.am
* operations/file-io/Makefile.am
* operations/display/Makefile.am
* operations/meta/Makefile.am
* operations/core/Makefile.am
* operations/transparency/Makefile.am
* operations/Makefile.am
* operations/transform/Makefile.am
* operations/workshop/Makefile.am
* operations/workshop/generated/Makefile.am
* operations/color/Makefile.am
* operations/generated/Makefile.am: Simplified all operation
Makefile.am files by removing all of the common stuff. The
file operations/Makefile-operations.am contains the common
parts and is included from the other Makefile.am files.
2007-02-10 Kevin Cozens <kcozens@cvs.gnome.org>
* gegl/gegl-init.c (gegl_post_parse_hook): Updated default
path to gegl libraries to include version number.
path to gegl plug-ins to include version number.
2007-02-10 Øyvind Kolås <pippin@gimp.org>
......
if OS_WIN32
no_undefined = -no-undefined
endif
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
EXTRA_DIST = $(wildcard *.c)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared $(no_undefined)
LDADD = @DEP_LIBS@ @BABL_LIBS@
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
clean-local:
rm -f $(SOBJS) $(OFILES) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
-$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
......@@ -11,5 +11,6 @@ SUBDIRS = \
transform \
transparency
EXTRA_DIST=workshop
EXTRA_DIST=workshop \
Makefile-operations.am
EXTRA_DIST = $(wildcard *.c)
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
include $(top_srcdir)/operations/Makefile-operations.am
EXTRA_DIST = $(wildcard *.c)
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
include $(top_srcdir)/operations/Makefile-operations.am
EXTRA_DIST = $(wildcard *.c)
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
include $(top_srcdir)/operations/Makefile-operations.am
EXTRA_DIST = $(wildcard *.c)
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS) $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
include $(top_srcdir)/operations/Makefile-operations.am
display.so: display.c $(GEGLHEADERS)
@[ ! -z "$(SDL_LIBS)" ] &&\
(echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) $(SDL_CFLAGS) $(SDL_LIBS)) \
|| true
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
-$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
EXTRA_DIST = $(wildcard *.c) $(wildcard *.cpp)
CFILES = $(wildcard $(srcdir)/*.c)
CXXFILES = $(wildcard $(srcdir)/*.cpp)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so)) \
$(subst $(srcdir)/,,$(CXXFILES:.cpp=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so)) \
$(subst $(srcdir),$(ext_dir),$(CXXFILES:.cpp=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
include $(top_srcdir)/operations/Makefile-operations.am
all-local: $(SOBJS)
CXXFILES = $(wildcard $(srcdir)/*.cpp)
SOBJS += $(subst $(srcdir)/,,$(CXXFILES:.cpp=.so))
INSTALLED_ITEMS += $(subst $(srcdir),$(ext_dir),$(CXXFILES:.cpp=.so))
EXTRA_DIST += $(wildcard *.cpp)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
# If extensions needing external libraries are to be compiled with this make
# file, each of them can be added according to this pattern:
......@@ -34,6 +19,7 @@ jpg-load.so: jpg-load.c
png-load.so: png-load.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) $(PNG_CFLAGS) $(PNG_LIBS)
png-save.so: png-save.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) $(PNG_CFLAGS) $(PNG_LIBS)
......@@ -44,6 +30,7 @@ svg-load.so: svg-load.c
$(CAIRO_CFLAGS) $(CAIRO_LIBS) \
$(RSVG_CFLAGS) $(RSVG_LIBS);\
fi
pixbuf.so: pixbuf.c
@if [ ! -z "$(RSVG_LIBS)" ]; then \
echo $@;\
......@@ -55,22 +42,3 @@ exr-load.so: exr-load.cpp
echo $@;\
$(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) $(OPENEXR_CFLAGS) $(OPENEXR_LIBS);\
fi
#############################################################################
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
-$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
EXTRA_DIST = $(wildcard *.c) $(wildcard *.rb)
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
include $(top_srcdir)/operations/Makefile-operations.am
EXTRA_DIST = $(wildcard *.c)
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
include $(top_srcdir)/operations/Makefile-operations.am
EXTRA_DIST = $(wildcard *.c) $(wildcard perlin/*.[ch])
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
include $(top_srcdir)/operations/Makefile-operations.am
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
EXTRA_DIST += $(wildcard perlin/*.[ch])
text.so: text.c $(GEGLHEADERS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) \
$(CAIRO_CFLAGS) $(CAIRO_LIBS) \
$(PANGO_CFLAGS) $(PANGO_LIBS) \
$(PANGOCAIRO_CFLAGS) $(PANGOCAIRO_LIBS)
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
-$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
EXTRA_DIST = $(wildcard *.c)
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
include $(top_srcdir)/operations/Makefile-operations.am
EXTRA_DIST = $(wildcard *.[ch])
CFILES = $(wildcard $(srcdir)/*.c)
OFILES = $(subst $(srcdir)/,,$(CFILES:.c=.o))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
include $(top_srcdir)/operations/Makefile-operations.am
SOBJS = affine.so
OFILES = $(subst $(srcdir)/,,$(CFILES:.c=.o))
EXTRA_DIST += $(wildcard *.h)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
SOBJS = affine.so
%.o: %.c chant.h module.h matrix.h $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) -c $<
affine.so: $(OFILES)
@echo $@;$(CC) $(LDFLAGS) $(LDADD) $(OFILES) -o affine.so
clean-local:
rm -f $(SOBJS) *.o *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(ext_dir)/affine.so
check-local: all-local
EXTRA_DIST=$(wildcard *.c)
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
include $(top_srcdir)/operations/Makefile-operations.am
SUBDIRS = generated
EXTRA_DIST = $(wildcard *.c) $(wildcard perlin/*.[ch])
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
-$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
include $(top_srcdir)/operations/Makefile-operations.am
gst.so: gst.c $(GEGLHEADERS)
-$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) `pkg-config gstreamer-0.10 --libs --cflags`
......@@ -42,5 +9,3 @@ gtk-display.so: gtk-display.c $(GEGLHEADERS)
@[ ! -z "$(GTK_LIBS)" ] &&\
(echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) $(GTK_CFLAGS) $(GTK_LIBS))\
||true
EXTRA_DIST = $(wildcard *.c) $(wildcard *.rb)
CFILES = $(wildcard $(srcdir)/*.c)
SOBJS = $(subst $(srcdir)/,,$(CFILES:.c=.so))
INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
GEGLHEADERS = $(wildcard $(top_srcdir)/gegl/*.h)\
$(wildcard $(top_srcdir)/gegl/buffer/*.h)
include $(top_srcdir)/operations/Makefile-operations.am
all-local: $(SOBJS)
CFLAGS += @DEP_CFLAGS@ @BABL_CFLAGS@ \
-I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
LDFLAGS += -shared
LDADD = @DEP_LIBS@ @BABL_LIBS@
#win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
%.so: %.c $(GEGLHEADERS)
@echo $@;$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
clean-local:
rm -f $(SOBJS) *~
ext_dir = $(DESTDIR)$(prefix)/lib/gegl-@GEGL_API_VERSION@
install-exec-local: all-local
$(INSTALL) -d $(ext_dir)
$(INSTALL) $(SOBJS) $(ext_dir)
uninstall-local:
rm -f $(INSTALLED_ITEMS)
check-local: all-local
EXTRA_DIST += $(wildcard *.rb)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment