-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile.in
38 lines (31 loc) · 1.09 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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)