~ubuntu-branches/ubuntu/intrepid/blender/intrepid-updates

« back to all changes in this revision

Viewing changes to intern/keymaker/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-08-08 02:45:40 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080808024540-kkjp7ekfivzhuw3l
Tags: 2.46+dfsg-4
* Fix python syntax warning in import_dxf.py, which led to nasty output
  in installation/upgrade logs during byte-compilation, using a patch
  provided by the script author (Closes: #492280):
   - debian/patches/45_fix_python_syntax_warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# $Id: Makefile,v 1.6 2003/05/24 20:04:18 hos Exp $
3
 
# ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
 
#
5
 
# This program is free software; you can redistribute it and/or
6
 
# modify it under the terms of the GNU General Public License
7
 
# as published by the Free Software Foundation; either version 2
8
 
# of the License, or (at your option) any later version. The Blender
9
 
# Foundation also sells licenses for use in proprietary software under
10
 
# the Blender License.  See http://www.blender.org/BL/ for information
11
 
# about this.
12
 
#
13
 
# This program is distributed in the hope that it will be useful,
14
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
# GNU General Public License for more details.
17
 
#
18
 
# You should have received a copy of the GNU General Public License
19
 
# along with this program; if not, write to the Free Software Foundation,
20
 
# Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21
 
#
22
 
# The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23
 
# All rights reserved.
24
 
#
25
 
# The Original Code is: all of this file.
26
 
#
27
 
# Contributor(s): Hans Lambermont
28
 
#
29
 
# ***** END GPL/BL DUAL LICENSE BLOCK *****
30
 
# blender keyreader-library makefile
31
 
#
32
 
 
33
 
LIBNAME = blenkey
34
 
SOURCEDIR = intern/$(LIBNAME)
35
 
DIR = $(OCGDIR)/$(SOURCEDIR)
36
 
CSRCS = mt19937int.c key.c
37
 
 
38
 
ALLTARGETS = $(OBJS)
39
 
 
40
 
include nan_compile.mk
41
 
 
42
 
CFLAGS += $(LEVEL_2_C_WARNINGS)
43
 
 
44
 
CPPFLAGS += -I$(NAN_OPENSSL)/include -Ipython/
45
 
 
46
 
include nan_link.mk
47
 
 
48
 
# OBJS is for the library, set by nan_compile.mk
49
 
LOADER_OBJS = $(DIR)/$(DEBUG_DIR)keyloader.o
50
 
 
51
 
ifneq ($(OS),windows)
52
 
    LIBS = $(NAN_OPENSSL)/lib/libcrypto.a
53
 
else
54
 
        ifeq ($(FREE_WINDOWS),true)
55
 
                LIBS = $(NAN_OPENSSL)/lib/libcrypto.a
56
 
        else
57
 
            LIBS = $(NAN_OPENSSL)/lib/libeay32.lib
58
 
                LIBS += advapi32.lib gdi32.lib
59
 
        endif
60
 
endif
61
 
 
62
 
all debug:: link
63
 
 
64
 
link: $(DIR)/$(DEBUG_DIR)keyloader
65
 
 
66
 
strip:
67
 
    ifneq ($(OS),windows)
68
 
        strip keyloader
69
 
        @ls -la keyloader
70
 
    else
71
 
        @ls -la keyloader.exe
72
 
    endif
73
 
 
74
 
install: all debug
75
 
        @[ -d $(LCGDIR)/$(LIBNAME) ] || mkdir $(LCGDIR)/$(LIBNAME)
76
 
        @[ -d $(LCGDIR)/$(LIBNAME)/include ] || mkdir $(LCGDIR)/$(LIBNAME)/include
77
 
        @[ -d $(LCGDIR)/$(LIBNAME)/lib ] || mkdir $(LCGDIR)/$(LIBNAME)/lib
78
 
        @../tools/cpifdiff.sh blenkey.h $(LCGDIR)/$(LIBNAME)/include/
79
 
        @../tools/cpifdiff.sh $(LIB_a) $(LCGDIR)/$(LIBNAME)/lib/
80
 
ifeq ($(OS),darwin)
81
 
        ranlib $(LCGDIR)/$(LIBNAME)/lib/lib$(LIBNAME).a
82
 
endif
83
 
 
84
 
$(DIR)/$(DEBUG_DIR)keyloader: $(LOADER_OBJS) $(LIB_a)
85
 
        $(CC) $(LDFLAGS) -o $@ $(LOADER_OBJS) $(LIB_a) $(LIBS)
86
 
        
87
 
clean::
88
 
        $(RM) $(DIR)/key* $(DIR)/debug/key*
89
 
        $(RM) $(DIR)/nan* $(DIR)/debug/nan*
90
 
 
91
 
tags:
92
 
        etags *.c *.h