-
-
Notifications
You must be signed in to change notification settings - Fork 359
/
Makefile.in
59 lines (43 loc) · 1.63 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Run ./configure in the main MapServer directory to turn this Makefile.in
# into a proper Makefile
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
bindir = @bindir@
top_builddir = @top_builddir@
SHELL = @SHELL@
CXX= @CXX@
CC= @CC@
LD= @CXX@
LIBTOOL=@LIBTOOL@
INSTALL=@INSTALL@
PYTHON=@PYTHON@
SWIG=@SWIG@
LTCC=$(LIBTOOL) --mode=compile --tag=CC
LTCXX=$(LIBTOOL) --mode=compile --tag=CXX
LTLD=$(LIBTOOL) --mode=link --tag=CXX
LTINSTALL=$(LIBTOOL) --mode=install
XTRALIBS= @XTRALIBS@
PYLIBDIR=`$(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)"`
PYINCDIR=`$(PYTHON) -c "from distutils.sysconfig import get_python_inc; print get_python_inc(1)"`
RUNPATH= -rpath $(PYLIBDIR)
DEFINES=@ALL_ENABLED@
CFLAGS = $(DEFINES) @CFLAGS@ -I$(PYINCDIR) @MS_INC@ @ALL_INC@
LT_LDFLAGS= $(RUNPATH) -module
OBJ_SUFFIX=lo
LINK=$(LTLD) $(LD) $(LT_LDFLAGS)
MS_LIB = $(top_builddir)/libmapserver.la
.SUFFIXES:
.SUFFIXES: .cpp .c .$(OBJ_SUFFIX)
all: _mapscript.la
_mapscript.la: mapscript_wrap.lo pygdioctx/pygdioctx.lo $(MS_LIB)
$(LINK) -o $@ mapscript_wrap.lo pygdioctx/pygdioctx.lo $(MS_LIB)
%.lo: %.c
$(LTCC) $(CC) $(CFLAGS) -c -o $@ $<
mapscript_wrap.c: ../mapscript.i
$(SWIG) -python -shadow -modern -templatereduce -fastdispatch -fvirtual -fastproxy -modernargs -castmode -dirvtable -fastinit -fastquery -noproxydel -nobuildnone $(DEFINES) -o mapscript_wrap.c ../mapscript.i
install: _mapscript.la
$(LTINSTALL) $(INSTALL) _mapscript.la $(DESTDIR)$(PYLIBDIR)
$(INSTALL) -c mapscript.py $(DESTDIR)$(PYLIBDIR)
clean:
-rm -rf .libs *.lo *.la *.so *.o pygdioctx/*.o pygdioctx/*.lo mapscript_wrap.c mapscript.py