Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (31 sloc) 1.09 KB
APXS=@APXS@
PACKAGE=@PACKAGE_NAME@
VERSION=@PACKAGE_VERSION@
PACKAGEDIR=$(PACKAGE)-$(VERSION)
PACKAGETGZ=$(PACKAGE)-$(VERSION).tar.gz
ifneq ("@IMLIB2_CONFIG@","")
IMLIB2_INCLUDES=`@IMLIB2_CONFIG@ --cflags`
IMLIB2_LIBS=`@IMLIB2_CONFIG@ --libs`
endif
ifneq ("@WAND_CONFIG@","")
WAND_INCLUDES=`@WAND_CONFIG@ --cppflags | sed -e s/-fopenmp/-Wc,-fopenmp/`
WAND_LIBS=`@WAND_CONFIG@ --libs`
endif
CFLAGS=@CFLAGS_IMLIB2@ @CFLAGS_WAND@ @CFLAGS_JPEG@
LIBS=@LIBS_JPEG@
all:
$(APXS) -c $(CFLAGS) $(LIBS) $(IMLIB2_INCLUDES) $(IMLIB2_LIBS) $(WAND_INCLUDES) $(WAND_LIBS) \
mod_small_light.c mod_small_light_*.c
install:
$(APXS) -ia mod_small_light.la
clean:
rm -rf *.o *.a *.so *.lo *.la *.slo a.out .libs .deps
distclean: clean
rm -rf Makefile config.cache config.log config.status autom4te.cache $(PACKAGETGZ) $(PACKAGEDIR)
dist:
mkdir $(PACKAGEDIR)
autoconf
cp mod_small_light.c mod_small_light.h mod_small_light_*.c mod_small_light_*.h $(PACKAGEDIR)
cp configure configure.in Makefile.in README README.* LICENSE ChangeLog $(PACKAGEDIR)
tar cvzf $(PACKAGETGZ) $(PACKAGEDIR)
rm -rf $(PACKAGEDIR)