~ubuntu-branches/ubuntu/karmic/gmsh/karmic

« back to all changes in this revision

Viewing changes to contrib/Netgen/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Daniel Leidert
  • Date: 2008-05-18 12:46:05 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080518124605-716xqbqeo07o497k
Tags: 2.2.0-2
[Christophe Prud'homme]
* Bug fix: "gmsh ships no .desktop", thanks to Vassilis Pandis (Closes:
  #375770). Applied the Ubuntu patch.

[Daniel Leidert]
* debian/control (Vcs-Svn): Fixed.
  (Build-Depends): Use texlive instead of tetex-bin.
* debian/gmsh.doc-base (Section): Fixed accordingly to doc-base (>= 0.8.10).
* debian/rules: Removed some variable declarations, that lead to double
  configuration and seem to be useless.
  (build/gmsh): Try to avoid multiple runs by using a stamp.
  (orig-tarball): Renamed to get-orig-source and changed to use uscan.
* debian/watch: Added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Makefile,v 1.18 2007-05-24 14:21:53 geuzaine Exp $
 
1
# $Id: Makefile,v 1.36 2008-04-06 07:51:38 geuzaine Exp $
2
2
#
3
 
# Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
 
3
# Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
4
4
#
5
5
# This program is free software; you can redistribute it and/or modify
6
6
# it under the terms of the GNU General Public License as published by
21
21
 
22
22
include ../../variables
23
23
 
24
 
LIB     = ../../lib/libGmshNetgen.a
25
 
INCLUDE = -I../../Common -Ilibsrc/include -Ilibsrc/interface
26
 
CFLAGS  = ${OPTIM} ${FLAGS} ${INCLUDE} -DNO_PARALLEL_THREADS -UWIN32
 
24
LIB = ../../lib/libGmshNetgen${LIBEXT}
 
25
 
 
26
INC = ${DASH}I../../Common ${DASH}Ilibsrc/include ${DASH}Ilibsrc/interface
 
27
 
 
28
CFLAGS = ${OPTIM} ${FLAGS} ${INC} ${SYSINCLUDE}\
 
29
         ${DASH}DNO_PARALLEL_THREADS ${DASH}UWIN32
27
30
 
28
31
SRC = libsrc/opti/linopt.cpp \
29
32
        libsrc/opti/bfgs.cpp \
125
128
        libsrc/general/mystring.cpp \
126
129
        nglib_addon.cpp
127
130
 
128
 
OBJ = ${SRC:.cpp=.o}
 
131
OBJ = ${SRC:.cpp=${OBJEXT}}
129
132
 
130
 
.SUFFIXES: .o .cpp
 
133
.SUFFIXES: ${OBJEXT} .cpp
131
134
 
132
135
${LIB}: ${OBJ} 
133
 
        ${AR} ${LIB} ${OBJ} 
 
136
        ${AR} ${ARFLAGS}${LIB} ${OBJ} 
134
137
        ${RANLIB} ${LIB}
135
138
 
136
 
.cpp.o:
137
 
        ${CXX} ${CFLAGS} -c $< -o ${<:.cpp=.o}
 
139
.cpp${OBJEXT}:
 
140
        ${CXX} ${CFLAGS} ${DASH}c $< ${DASH}o ${<:.cpp=${OBJEXT}}
 
141
        if [ -r ${notdir ${<:.cpp=${OBJEXT}}} ]; then\
 
142
           mv -f ${notdir ${<:.cpp=${OBJEXT}}} ${<:.cpp=${OBJEXT}};\
 
143
        fi
 
144
 
 
145
# don't apply ugly hack above for files in this directory
 
146
nglib_addon${OBJEXT}:
 
147
        ${CXX} ${CFLAGS} ${DASH}c nglib_addon.cpp
138
148
 
139
149
clean:
140
 
        rm -f *.o libsrc/*/*.o
 
150
        rm -f *.o *.obj libsrc/*/*.o libsrc/*/*.obj
141
151
 
142
152
depend:
143
153
        (sed '/^# DO NOT DELETE THIS LINE/q' Makefile && \