]> Creatis software - gdcm.git/blob - src/Makefile
* Truckload of changes. Parsing of header is barely functional
[gdcm.git] / src / Makefile
1
2 ###CC   = gcc
3 ###LINK = gcc -shared -o ptinpoly.so
4 SWIG = ~/Local/bin/swig
5 SWIGFLAGS= -python -c++
6
7 PYTHON=python
8 PYTHON_PREFIX  =`$(PYTHON) -c "import sys; print sys.exec_prefix"`
9 PYTHON_VERSION =`$(PYTHON) -c "import sys; print sys.version[:3]"`
10 PYTHON_INCLUDES="-I$(PYTHON_PREFIX)/include/python$(PYTHON_VERSION)"
11
12 CXXFLAGS=`glib-config --cflags`
13 CPPFLAGS=-g
14 LDFLAGS=`glib-config --libs` -g
15
16 %.o : %.cxx
17         $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
18 %_wrap.cxx : %.i
19         $(SWIG) $(SWIGFLAGS) $(PYTHON_INCLUDES) -o $@ $<
20
21 all: gdcmUtil.o    \
22         gdcmHeader.o    \
23         gdcmElValue.o   \
24         gdcmDictEntry.o \
25         gdcmDict.o      \
26         gdcmDictSet.o   \
27         gdcmElValSet.o
28         g++ -shared -o gdcmlib.so $^ $(LDFLAGS)
29
30 test: gdcmHeader.o
31
32 clean:
33         rm -f *_wrap* *.so *.o *.pyc
34
35 .SECONDARY: dcm_wrap.cxx