3 # ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
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
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.
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.
22 # The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23 # All rights reserved.
25 # The Original Code is: all of this file.
27 # Contributor(s): Hans Lambermont
29 # ***** END GPL/BL DUAL LICENSE BLOCK *****
30 # blender keyreader-library makefile
34 SOURCEDIR = intern/$(LIBNAME)
35 DIR = $(OCGDIR)/$(SOURCEDIR)
36 CSRCS = mt19937int.c key.c
40 include nan_compile.mk
42 CFLAGS += $(LEVEL_2_C_WARNINGS)
44 CPPFLAGS += -I$(NAN_OPENSSL)/include -Ipython/
48 # OBJS is for the library, set by nan_compile.mk
49 LOADER_OBJS = $(DIR)/$(DEBUG_DIR)keyloader.o
52 LIBS = $(NAN_OPENSSL)/lib/libcrypto.a
54 ifeq ($(FREE_WINDOWS),true)
55 LIBS = $(NAN_OPENSSL)/lib/libcrypto.a
57 LIBS = $(NAN_OPENSSL)/lib/libeay32.lib
58 LIBS += advapi32.lib gdi32.lib
64 link: $(DIR)/$(DEBUG_DIR)keyloader
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/
81 ranlib $(LCGDIR)/$(LIBNAME)/lib/lib$(LIBNAME).a
84 $(DIR)/$(DEBUG_DIR)keyloader: $(LOADER_OBJS) $(LIB_a)
85 $(CC) $(LDFLAGS) -o $@ $(LOADER_OBJS) $(LIB_a) $(LIBS)
88 $(RM) $(DIR)/key* $(DIR)/debug/key*
89 $(RM) $(DIR)/nan* $(DIR)/debug/nan*