mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-01 03:26:09 +08:00
728 lines
22 KiB
Makefile
728 lines
22 KiB
Makefile
###############################################################
|
|
#
|
|
# Gnu tools makefile
|
|
#
|
|
# gnumake, gcc, g++, clang, clang++
|
|
#
|
|
# Warning:
|
|
# The officially supported way to build opennurbs on Linux is CMake.
|
|
# This makefile is kept here for users who prefer
|
|
# a makefile and are prepared to modify it to suit their needs.
|
|
# It might or might not be kept up-to-date - but we try.
|
|
# Use "at your own pleasure" only!
|
|
#
|
|
# Any new combination of operating system, compiler,
|
|
# and build configuration might require some modification to this file.
|
|
#
|
|
# Tested on Linux Debian 12 with g++ 12.2.0
|
|
# TODO: test on Mac
|
|
#
|
|
# Usage: In the simplest case, the command
|
|
#
|
|
# make all
|
|
#
|
|
# will build a debug build of the static archive libopennurbs_public.a and all examples.
|
|
# Thus, this makefile is only for use within the public opennurbs repository, even though it also exists in the upstream repository.
|
|
#
|
|
#
|
|
|
|
RM = /bin/rm
|
|
# If you don't mind the risk of using the -f option and your rm
|
|
# asks too many questions, then uncomment the next line.
|
|
# RM = /bin/rm -f
|
|
|
|
AR = ar rcsv
|
|
|
|
# If your system doesn't use ranlib, uncomment the "echo" define.
|
|
RANLIB = ranlib
|
|
# RANLIB = echo
|
|
|
|
###############################################################
|
|
#
|
|
#
|
|
|
|
# Choose one of the following definitions for GCC_OPTIMIZER_FLAGS
|
|
# unoptimized debug build
|
|
ON_GNU_OPTIMIZER_FLAGS = -g
|
|
# optimized release build
|
|
#ON_GNU_OPTIMIZER_FLAGS = -O
|
|
|
|
ON_GNU_WARNING_FLAGS = -Wall \
|
|
-Wno-overloaded-virtual \
|
|
-Wno-switch \
|
|
-Wno-unknown-pragmas \
|
|
-Wno-unused-private-field
|
|
# -Wno-inconsistent-missing-override \
|
|
|
|
|
|
# Required to get Apple platform NSString declaration
|
|
GCC_INPUT_FILETYPE = sourcecode.cpp.objcpp
|
|
|
|
# In order to get full wide character (UNICODE) support, you need to define _GNU_SOURCE
|
|
ON_GNU_COMMON_FLAGS = $(ON_GNU_OPTIMIZER_FLAGS) $(ON_GNU_WARNING_FLAGS) -D_GNU_SOURCE -I.
|
|
|
|
# C compiler and flags
|
|
CC = gcc
|
|
# uncomment below for Clang
|
|
#CC = clang
|
|
CFLAGS = $(ON_GNU_COMMON_FLAGS)
|
|
|
|
# C++ compiler and flags
|
|
CCC = g++
|
|
# uncomment below for Clang
|
|
#CCC = clang++
|
|
CCFLAGS = $(ON_GNU_COMMON_FLAGS) -std=c++14
|
|
|
|
LINK = $(CCC)
|
|
LINKFLAGS =
|
|
# below necessary LINKFLAGS on Linux for the UUID library
|
|
#LINKFLAGS = -luuid
|
|
|
|
###############################################################
|
|
|
|
.c.o :
|
|
$(CC) $(CFLAGS) -c $*.c -o $*.o
|
|
|
|
.cpp.o :
|
|
$(CCC) $(CCFLAGS) -c $*.cpp -o $*.o
|
|
|
|
###############################################################
|
|
|
|
OPENNURBS_LIB_NAME = opennurbs_public
|
|
OPENNURBS_LIB_FILE = lib$(OPENNURBS_LIB_NAME).a
|
|
|
|
ON_INC = opennurbs.h \
|
|
opennurbs_3dm.h \
|
|
opennurbs_3dm_attributes.h \
|
|
opennurbs_3dm_properties.h \
|
|
opennurbs_3dm_settings.h \
|
|
opennurbs_annotationbase.h \
|
|
opennurbs_arc.h \
|
|
opennurbs_arccurve.h \
|
|
opennurbs_archivable_dictionary.h \
|
|
opennurbs_archive.h \
|
|
opennurbs_array.h \
|
|
opennurbs_array_defs.h \
|
|
opennurbs_base32.h \
|
|
opennurbs_base64.h \
|
|
opennurbs_beam.h \
|
|
opennurbs_bezier.h \
|
|
opennurbs_bitmap.h \
|
|
opennurbs_bounding_box.h \
|
|
opennurbs_box.h \
|
|
opennurbs_brep.h \
|
|
opennurbs_circle.h \
|
|
opennurbs_color.h \
|
|
opennurbs_compress.h \
|
|
opennurbs_compstat.h \
|
|
opennurbs_cone.h \
|
|
opennurbs_crc.h \
|
|
opennurbs_curve.h \
|
|
opennurbs_curveonsurface.h \
|
|
opennurbs_curveproxy.h \
|
|
opennurbs_cylinder.h \
|
|
opennurbs_date.h \
|
|
opennurbs_decals.h \
|
|
opennurbs_defines.h \
|
|
opennurbs_detail.h \
|
|
opennurbs_dimension.h \
|
|
opennurbs_dimensionformat.h \
|
|
opennurbs_dimensionstyle.h \
|
|
opennurbs_dithering.h \
|
|
opennurbs_dll_resource.h \
|
|
opennurbs_ellipse.h \
|
|
opennurbs_error.h \
|
|
opennurbs_evaluate_nurbs.h \
|
|
opennurbs_extensions.h \
|
|
opennurbs_file_utilities.h \
|
|
opennurbs_font.h \
|
|
opennurbs_fpoint.h \
|
|
opennurbs_freetype.h \
|
|
opennurbs_freetype_include.h \
|
|
opennurbs_fsp.h \
|
|
opennurbs_fsp_defs.h \
|
|
opennurbs_function_list.h \
|
|
opennurbs_geometry.h \
|
|
opennurbs_gl.h \
|
|
opennurbs_ground_plane.h \
|
|
opennurbs_group.h \
|
|
opennurbs_hash_table.h \
|
|
opennurbs_hatch.h \
|
|
opennurbs_hsort_template.h \
|
|
opennurbs_input_libsdir.h \
|
|
opennurbs_instance.h \
|
|
opennurbs_internal_defines.h \
|
|
opennurbs_internal_glyph.h \
|
|
opennurbs_internal_V2_annotation.h \
|
|
opennurbs_internal_V5_annotation.h \
|
|
opennurbs_internal_V5_dimstyle.h \
|
|
opennurbs_intersect.h \
|
|
opennurbs_ipoint.h \
|
|
opennurbs_knot.h \
|
|
opennurbs_layer.h \
|
|
opennurbs_leader.h \
|
|
opennurbs_light.h \
|
|
opennurbs_line.h \
|
|
opennurbs_linear_workflow.h \
|
|
opennurbs_linecurve.h \
|
|
opennurbs_linestyle.h \
|
|
opennurbs_linetype.h \
|
|
opennurbs_locale.h \
|
|
opennurbs_lock.h \
|
|
opennurbs_lookup.h \
|
|
opennurbs_mapchan.h \
|
|
opennurbs_material.h \
|
|
opennurbs_math.h \
|
|
opennurbs_matrix.h \
|
|
opennurbs_md5.h \
|
|
opennurbs_memory.h \
|
|
opennurbs_mesh_modifiers.h \
|
|
opennurbs_mesh.h \
|
|
opennurbs_model_component.h \
|
|
opennurbs_model_geometry.h \
|
|
opennurbs_nurbscurve.h \
|
|
opennurbs_nurbssurface.h \
|
|
opennurbs_object.h \
|
|
opennurbs_object_history.h \
|
|
opennurbs_objref.h \
|
|
opennurbs_offsetsurface.h \
|
|
opennurbs_optimize.h \
|
|
opennurbs_parse.h \
|
|
opennurbs_photogrammetry.h \
|
|
opennurbs_plane.h \
|
|
opennurbs_planesurface.h \
|
|
opennurbs_pluginlist.h \
|
|
opennurbs_point.h \
|
|
opennurbs_pointcloud.h \
|
|
opennurbs_pointgeometry.h \
|
|
opennurbs_pointgrid.h \
|
|
opennurbs_polycurve.h \
|
|
opennurbs_polyedgecurve.h \
|
|
opennurbs_polyline.h \
|
|
opennurbs_polylinecurve.h \
|
|
opennurbs_post_effects.h \
|
|
opennurbs_private_wrap_defs.h \
|
|
opennurbs_progress_reporter.h \
|
|
opennurbs_qsort_template.h \
|
|
opennurbs_quaternion.h \
|
|
opennurbs_rand.h \
|
|
opennurbs_render_channels.h \
|
|
opennurbs_render_content.h \
|
|
opennurbs_rendering.h \
|
|
opennurbs_revsurface.h \
|
|
opennurbs_rtree.h \
|
|
opennurbs_safe_frame.h \
|
|
opennurbs_sectionstyle.h \
|
|
opennurbs_sha1.h \
|
|
opennurbs_skylight.h \
|
|
opennurbs_sleeplock.h \
|
|
opennurbs_sphere.h \
|
|
opennurbs_std_string.h \
|
|
opennurbs_string.h \
|
|
opennurbs_string_value.h \
|
|
opennurbs_subd.h \
|
|
opennurbs_subd_data.h \
|
|
opennurbs_sumsurface.h \
|
|
opennurbs_sun.h \
|
|
opennurbs_surface.h \
|
|
opennurbs_surfaceproxy.h \
|
|
opennurbs_symmetry.h \
|
|
opennurbs_system.h \
|
|
opennurbs_system_compiler.h \
|
|
opennurbs_system_runtime.h \
|
|
opennurbs_terminator.h \
|
|
opennurbs_text.h \
|
|
opennurbs_text_style.h \
|
|
opennurbs_textcontext.h \
|
|
opennurbs_textglyph.h \
|
|
opennurbs_textiterator.h \
|
|
opennurbs_textlog.h \
|
|
opennurbs_textobject.h \
|
|
opennurbs_textrun.h \
|
|
opennurbs_texture.h \
|
|
opennurbs_texture_mapping.h \
|
|
opennurbs_topology.h \
|
|
opennurbs_torus.h \
|
|
opennurbs_unicode.h \
|
|
opennurbs_userdata.h \
|
|
opennurbs_uuid.h \
|
|
opennurbs_version.h \
|
|
opennurbs_version_number.h \
|
|
opennurbs_viewport.h \
|
|
opennurbs_windows_targetver.h \
|
|
opennurbs_wip.h \
|
|
opennurbs_workspace.h \
|
|
opennurbs_xform.h \
|
|
opennurbs_xml.h \
|
|
opennurbs_zlib.h
|
|
|
|
ON_SRC = opennurbs_3dm_attributes.cpp \
|
|
opennurbs_3dm_properties.cpp \
|
|
opennurbs_3dm_settings.cpp \
|
|
opennurbs_annotationbase.cpp \
|
|
opennurbs_arc.cpp \
|
|
opennurbs_arccurve.cpp \
|
|
opennurbs_archivable_dictionary.cpp \
|
|
opennurbs_archive.cpp \
|
|
opennurbs_archive_manifest.cpp \
|
|
opennurbs_array.cpp \
|
|
opennurbs_base32.cpp \
|
|
opennurbs_base64.cpp \
|
|
opennurbs_beam.cpp \
|
|
opennurbs_bezier.cpp \
|
|
opennurbs_beziervolume.cpp \
|
|
opennurbs_bitmap.cpp \
|
|
opennurbs_bounding_box.cpp \
|
|
opennurbs_box.cpp \
|
|
opennurbs_brep.cpp \
|
|
opennurbs_brep_extrude.cpp \
|
|
opennurbs_brep_io.cpp \
|
|
opennurbs_brep_isvalid.cpp \
|
|
opennurbs_brep_region.cpp \
|
|
opennurbs_brep_tools.cpp \
|
|
opennurbs_brep_v2valid.cpp \
|
|
opennurbs_calculator.cpp \
|
|
opennurbs_circle.cpp \
|
|
opennurbs_color.cpp \
|
|
opennurbs_compress.cpp \
|
|
opennurbs_compstat.cpp \
|
|
opennurbs_cone.cpp \
|
|
opennurbs_crc.cpp \
|
|
opennurbs_curve.cpp \
|
|
opennurbs_curveonsurface.cpp \
|
|
opennurbs_curveproxy.cpp \
|
|
opennurbs_cylinder.cpp \
|
|
opennurbs_date.cpp \
|
|
opennurbs_decals.cpp \
|
|
opennurbs_defines.cpp \
|
|
opennurbs_detail.cpp \
|
|
opennurbs_dimension.cpp \
|
|
opennurbs_dimensionformat.cpp \
|
|
opennurbs_dimensionstyle.cpp \
|
|
opennurbs_dithering.cpp \
|
|
opennurbs_ellipse.cpp \
|
|
opennurbs_embedded_file.cpp \
|
|
opennurbs_error.cpp \
|
|
opennurbs_error_message.cpp \
|
|
opennurbs_evaluate_nurbs.cpp \
|
|
opennurbs_extensions.cpp \
|
|
opennurbs_file_utilities.cpp \
|
|
opennurbs_font.cpp \
|
|
opennurbs_freetype.cpp \
|
|
opennurbs_fsp.cpp \
|
|
opennurbs_function_list.cpp \
|
|
opennurbs_geometry.cpp \
|
|
opennurbs_glyph_outline.cpp \
|
|
opennurbs_ground_plane.cpp \
|
|
opennurbs_group.cpp \
|
|
opennurbs_hash_table.cpp \
|
|
opennurbs_hatch.cpp \
|
|
opennurbs_instance.cpp \
|
|
opennurbs_internal_V2_annotation.cpp \
|
|
opennurbs_internal_V5_annotation.cpp \
|
|
opennurbs_internal_V5_dimstyle.cpp \
|
|
opennurbs_internal_Vx_annotation.cpp \
|
|
opennurbs_intersect.cpp \
|
|
opennurbs_ipoint.cpp \
|
|
opennurbs_knot.cpp \
|
|
opennurbs_layer.cpp \
|
|
opennurbs_leader.cpp \
|
|
opennurbs_light.cpp \
|
|
opennurbs_line.cpp \
|
|
opennurbs_linear_workflow.cpp \
|
|
opennurbs_linecurve.cpp \
|
|
opennurbs_linetype.cpp \
|
|
opennurbs_locale.cpp \
|
|
opennurbs_lock.cpp \
|
|
opennurbs_lookup.cpp \
|
|
opennurbs_material.cpp \
|
|
opennurbs_math.cpp \
|
|
opennurbs_matrix.cpp \
|
|
opennurbs_md5.cpp \
|
|
opennurbs_memory_util.cpp \
|
|
opennurbs_mesh_modifiers.cpp \
|
|
opennurbs_mesh.cpp \
|
|
opennurbs_mesh_ngon.cpp \
|
|
opennurbs_mesh_tools.cpp \
|
|
opennurbs_mesh_topology.cpp \
|
|
opennurbs_model_component.cpp \
|
|
opennurbs_model_geometry.cpp \
|
|
opennurbs_morph.cpp \
|
|
opennurbs_nurbscurve.cpp \
|
|
opennurbs_nurbssurface.cpp \
|
|
opennurbs_nurbsvolume.cpp \
|
|
opennurbs_object.cpp \
|
|
opennurbs_object_history.cpp \
|
|
opennurbs_objref.cpp \
|
|
opennurbs_offsetsurface.cpp \
|
|
opennurbs_optimize.cpp \
|
|
opennurbs_parse_angle.cpp \
|
|
opennurbs_parse_length.cpp \
|
|
opennurbs_parse_number.cpp \
|
|
opennurbs_parse_point.cpp \
|
|
opennurbs_parse_settings.cpp \
|
|
opennurbs_photogrammetry.cpp \
|
|
opennurbs_plane.cpp \
|
|
opennurbs_planesurface.cpp \
|
|
opennurbs_pluginlist.cpp \
|
|
opennurbs_point.cpp \
|
|
opennurbs_pointcloud.cpp \
|
|
opennurbs_pointgeometry.cpp \
|
|
opennurbs_pointgrid.cpp \
|
|
opennurbs_polycurve.cpp \
|
|
opennurbs_polyedgecurve.cpp \
|
|
opennurbs_polyline.cpp \
|
|
opennurbs_polylinecurve.cpp \
|
|
opennurbs_post_effects.cpp \
|
|
opennurbs_precompiledheader.cpp \
|
|
opennurbs_progress_reporter.cpp \
|
|
opennurbs_public_memory.cpp \
|
|
opennurbs_quaternion.cpp \
|
|
opennurbs_rand.cpp \
|
|
opennurbs_render_channels.cpp \
|
|
opennurbs_render_content.cpp \
|
|
opennurbs_revsurface.cpp \
|
|
opennurbs_rtree.cpp \
|
|
opennurbs_safe_frame.cpp \
|
|
opennurbs_sectionstyle.cpp \
|
|
opennurbs_sha1.cpp \
|
|
opennurbs_skylight.cpp \
|
|
opennurbs_sleeplock.cpp \
|
|
opennurbs_sort.cpp \
|
|
opennurbs_sphere.cpp \
|
|
opennurbs_statics.cpp \
|
|
opennurbs_std_string_format.cpp \
|
|
opennurbs_std_string_utf.cpp \
|
|
opennurbs_string.cpp \
|
|
opennurbs_string_compare.cpp \
|
|
opennurbs_string_format.cpp \
|
|
opennurbs_string_scan.cpp \
|
|
opennurbs_string_values.cpp \
|
|
opennurbs_subd.cpp \
|
|
opennurbs_subd_archive.cpp \
|
|
opennurbs_subd_copy.cpp \
|
|
opennurbs_subd_data.cpp \
|
|
opennurbs_subd_eval.cpp \
|
|
opennurbs_subd_fragment.cpp \
|
|
opennurbs_subd_frommesh.cpp \
|
|
opennurbs_subd_heap.cpp \
|
|
opennurbs_subd_iter.cpp \
|
|
opennurbs_subd_limit.cpp \
|
|
opennurbs_subd_matrix.cpp \
|
|
opennurbs_subd_mesh.cpp \
|
|
opennurbs_subd_ref.cpp \
|
|
opennurbs_subd_ring.cpp \
|
|
opennurbs_subd_sector.cpp \
|
|
opennurbs_subd_texture.cpp \
|
|
opennurbs_sum.cpp \
|
|
opennurbs_sumsurface.cpp \
|
|
opennurbs_sun.cpp \
|
|
opennurbs_surface.cpp \
|
|
opennurbs_surfaceproxy.cpp \
|
|
opennurbs_symmetry.cpp \
|
|
opennurbs_terminator.cpp \
|
|
opennurbs_text.cpp \
|
|
opennurbs_text_style.cpp \
|
|
opennurbs_textcontext.cpp \
|
|
opennurbs_textglyph.cpp \
|
|
opennurbs_textiterator.cpp \
|
|
opennurbs_textlog.cpp \
|
|
opennurbs_textobject.cpp \
|
|
opennurbs_textrun.cpp \
|
|
opennurbs_topology.cpp \
|
|
opennurbs_torus.cpp \
|
|
opennurbs_unicode.cpp \
|
|
opennurbs_unicode_cpsb.cpp \
|
|
opennurbs_units.cpp \
|
|
opennurbs_userdata.cpp \
|
|
opennurbs_userdata_obsolete.cpp \
|
|
opennurbs_uuid.cpp \
|
|
opennurbs_version.cpp \
|
|
opennurbs_version_number.cpp \
|
|
opennurbs_viewport.cpp \
|
|
opennurbs_workspace.cpp \
|
|
opennurbs_wstring.cpp \
|
|
opennurbs_xform.cpp \
|
|
opennurbs_xml.cpp \
|
|
opennurbs_zlib.cpp \
|
|
opennurbs_zlib_memory.cpp
|
|
|
|
ON_OBJ = $(ON_SRC:.cpp=.o)
|
|
|
|
ZLIB_INC = zlib/crc32.h \
|
|
zlib/deflate.h \
|
|
zlib/inffast.h \
|
|
zlib/inffixed.h \
|
|
zlib/inflate.h \
|
|
zlib/inftrees.h \
|
|
zlib/trees.h \
|
|
zlib/zconf.h \
|
|
zlib/zlib.h \
|
|
zlib/zutil.h \
|
|
|
|
ZLIB_SRC = zlib/adler32.c \
|
|
zlib/compress.c \
|
|
zlib/crc32.c \
|
|
zlib/deflate.c \
|
|
zlib/infback.c \
|
|
zlib/inffast.c \
|
|
zlib/inflate.c \
|
|
zlib/inftrees.c \
|
|
zlib/trees.c \
|
|
zlib/uncompr.c \
|
|
zlib/zutil.c
|
|
|
|
ZLIB_OBJ = $(ZLIB_SRC:.c=.o)
|
|
|
|
UUID_INC = android_uuid/isnull.h \
|
|
android_uuid/pack.h \
|
|
android_uuid/parse.h \
|
|
android_uuid/unpack.h \
|
|
android_uuid/unparse.h \
|
|
android_uuid/uuid_time.h \
|
|
android_uuid/clear.h \
|
|
android_uuid/compare.h \
|
|
android_uuid/copy.h \
|
|
android_uuid/gen_uuid.h
|
|
|
|
|
|
UUID_SRC = android_uuid/isnull.c \
|
|
android_uuid/pack.c \
|
|
android_uuid/parse.c \
|
|
android_uuid/unpack.c \
|
|
android_uuid/unparse.c \
|
|
android_uuid/uuid_time.c \
|
|
android_uuid/clear.c \
|
|
android_uuid/compare.c \
|
|
android_uuid/copy.c \
|
|
android_uuid/gen_uuid.c
|
|
|
|
UUID_OBJ = $(UUID_SRC:.c=.o)
|
|
|
|
|
|
|
|
FREETYPE_INC= freetype263/include/ft2build.h \
|
|
freetype263/include/freetype/config/ftconfig.h \
|
|
freetype263/include/freetype/config/ftheader.h \
|
|
freetype263/include/freetype/config/ftmodule.h \
|
|
freetype263/include/freetype/config/ftoption.h \
|
|
freetype263/include/freetype/config/ftstdlib.h \
|
|
freetype263/include/freetype/freetype.h \
|
|
freetype263/include/freetype/ftadvanc.h \
|
|
freetype263/include/freetype/ftautoh.h \
|
|
freetype263/include/freetype/ftbbox.h \
|
|
freetype263/include/freetype/ftbdf.h \
|
|
freetype263/include/freetype/ftbitmap.h \
|
|
freetype263/include/freetype/ftbzip2.h \
|
|
freetype263/include/freetype/ftcache.h \
|
|
freetype263/include/freetype/ftcffdrv.h \
|
|
freetype263/include/freetype/ftchapters.h \
|
|
freetype263/include/freetype/ftcid.h \
|
|
freetype263/include/freetype/fterrdef.h \
|
|
freetype263/include/freetype/fterrors.h \
|
|
freetype263/include/freetype/ftfntfmt.h \
|
|
freetype263/include/freetype/ftgasp.h \
|
|
freetype263/include/freetype/ftglyph.h \
|
|
freetype263/include/freetype/ftgxval.h \
|
|
freetype263/include/freetype/ftgzip.h \
|
|
freetype263/include/freetype/ftimage.h \
|
|
freetype263/include/freetype/ftincrem.h \
|
|
freetype263/include/freetype/ftlcdfil.h \
|
|
freetype263/include/freetype/ftlist.h \
|
|
freetype263/include/freetype/ftlzw.h \
|
|
freetype263/include/freetype/ftmac.h \
|
|
freetype263/include/freetype/ftmm.h \
|
|
freetype263/include/freetype/ftmodapi.h \
|
|
freetype263/include/freetype/ftmoderr.h \
|
|
freetype263/include/freetype/ftotval.h \
|
|
freetype263/include/freetype/ftoutln.h \
|
|
freetype263/include/freetype/ftpfr.h \
|
|
freetype263/include/freetype/ftrender.h \
|
|
freetype263/include/freetype/ftsizes.h \
|
|
freetype263/include/freetype/ftsnames.h \
|
|
freetype263/include/freetype/ftstroke.h \
|
|
freetype263/include/freetype/ftsynth.h \
|
|
freetype263/include/freetype/ftsystem.h \
|
|
freetype263/include/freetype/fttrigon.h \
|
|
freetype263/include/freetype/ftttdrv.h \
|
|
freetype263/include/freetype/fttypes.h \
|
|
freetype263/include/freetype/ftwinfnt.h \
|
|
freetype263/include/freetype/t1tables.h \
|
|
freetype263/include/freetype/ttnameid.h \
|
|
freetype263/include/freetype/tttables.h \
|
|
freetype263/include/freetype/tttags.h \
|
|
freetype263/include/freetype/ttunpat.h \
|
|
freetype263/include/freetype/internal/autohint.h \
|
|
freetype263/include/freetype/internal/ftcalc.h \
|
|
freetype263/include/freetype/internal/ftdebug.h \
|
|
freetype263/include/freetype/internal/ftdriver.h \
|
|
freetype263/include/freetype/internal/ftgloadr.h \
|
|
freetype263/include/freetype/internal/fthash.h \
|
|
freetype263/include/freetype/internal/ftmemory.h \
|
|
freetype263/include/freetype/internal/ftobjs.h \
|
|
freetype263/include/freetype/internal/ftpic.h \
|
|
freetype263/include/freetype/internal/ftrfork.h \
|
|
freetype263/include/freetype/internal/ftserv.h \
|
|
freetype263/include/freetype/internal/ftstream.h \
|
|
freetype263/include/freetype/internal/fttrace.h \
|
|
freetype263/include/freetype/internal/ftvalid.h \
|
|
freetype263/include/freetype/internal/internal.h \
|
|
freetype263/include/freetype/internal/psaux.h \
|
|
freetype263/include/freetype/internal/pshints.h \
|
|
freetype263/include/freetype/internal/sfnt.h \
|
|
freetype263/include/freetype/internal/t1types.h \
|
|
freetype263/include/freetype/internal/tttypes.h \
|
|
freetype263/include/freetype/internal/services/svbdf.h \
|
|
freetype263/include/freetype/internal/services/svcid.h \
|
|
freetype263/include/freetype/internal/services/svfntfmt.h \
|
|
freetype263/include/freetype/internal/services/svgldict.h \
|
|
freetype263/include/freetype/internal/services/svgxval.h \
|
|
freetype263/include/freetype/internal/services/svkern.h \
|
|
freetype263/include/freetype/internal/services/svmm.h \
|
|
freetype263/include/freetype/internal/services/svotval.h \
|
|
freetype263/include/freetype/internal/services/svpfr.h \
|
|
freetype263/include/freetype/internal/services/svpostnm.h \
|
|
freetype263/include/freetype/internal/services/svprop.h \
|
|
freetype263/include/freetype/internal/services/svpscmap.h \
|
|
freetype263/include/freetype/internal/services/svpsinfo.h \
|
|
freetype263/include/freetype/internal/services/svsfnt.h \
|
|
freetype263/include/freetype/internal/services/svttcmap.h \
|
|
freetype263/include/freetype/internal/services/svtteng.h \
|
|
freetype263/include/freetype/internal/services/svttglyf.h \
|
|
freetype263/include/freetype/internal/services/svwinfnt.h
|
|
|
|
FREETYPE_SRC = freetype263/src/autofit/autofit.c \
|
|
freetype263/src/bdf/bdf.c \
|
|
freetype263/src/cff/cff.c \
|
|
freetype263/src/base/ftbase.c \
|
|
freetype263/src/base/ftbitmap.c \
|
|
freetype263/src/base/ftfstype.c \
|
|
freetype263/src/base/ftgasp.c \
|
|
freetype263/src/base/ftglyph.c \
|
|
freetype263/src/gzip/ftgzip.c \
|
|
freetype263/src/base/ftinit.c \
|
|
freetype263/src/lzw/ftlzw.c \
|
|
freetype263/src/base/ftstroke.c \
|
|
freetype263/src/base/ftsystem.c \
|
|
freetype263/src/smooth/smooth.c \
|
|
freetype263/src/base/ftbbox.c \
|
|
freetype263/src/base/ftfntfmt.c \
|
|
freetype263/src/base/ftgxval.c \
|
|
freetype263/src/base/ftlcdfil.c \
|
|
freetype263/src/base/ftmm.c \
|
|
freetype263/src/base/ftotval.c \
|
|
freetype263/src/base/ftpatent.c \
|
|
freetype263/src/base/ftpfr.c \
|
|
freetype263/src/base/ftsynth.c \
|
|
freetype263/src/base/fttype1.c \
|
|
freetype263/src/base/ftwinfnt.c \
|
|
freetype263/src/pcf/pcf.c \
|
|
freetype263/src/pfr/pfr.c \
|
|
freetype263/src/psaux/psaux.c \
|
|
freetype263/src/pshinter/pshinter.c \
|
|
freetype263/src/psnames/psmodule.c \
|
|
freetype263/src/raster/raster.c \
|
|
freetype263/src/sfnt/sfnt.c \
|
|
freetype263/src/truetype/truetype.c \
|
|
freetype263/src/type1/type1.c \
|
|
freetype263/src/cid/type1cid.c \
|
|
freetype263/src/type42/type42.c \
|
|
freetype263/src/winfonts/winfnt.c \
|
|
freetype263/src/cache/ftcache.c
|
|
|
|
FREETYPE_OBJ = $(FREETYPE_SRC:.c=.o)
|
|
|
|
EXAMPLE_INC = examples.h \
|
|
example_userdata/example_ud.h
|
|
|
|
EXAMPLE_OBJ = example_read/example_read.o \
|
|
example_write/example_write.o \
|
|
example_test/example_test.o \
|
|
example_convert/example_convert.o \
|
|
example_brep/example_brep.o \
|
|
example_userdata/example_ud.o \
|
|
example_userdata/example_userdata.o
|
|
|
|
EXAMPLES = example_read/example_read \
|
|
example_write/example_write \
|
|
example_test/example_test \
|
|
example_convert/example_convert \
|
|
example_brep/example_brep \
|
|
example_userdata/example_userdata
|
|
|
|
all : $(OPENNURBS_LIB_FILE) $(EXAMPLES)
|
|
|
|
example_userdata/example_ud.o : example_userdata/example_ud.h $(ON_INC)
|
|
|
|
$(EXAMPLE_OBJ) : $(EXAMPLE_INC) $(ON_INC)
|
|
|
|
ZLIB_OBJ_EXTRA_FLAGS = -DMY_ZCALLOC -DZ_PREFIX
|
|
$(ZLIB_OBJ) : CFLAGS+=$(ZLIB_OBJ_EXTRA_FLAGS)
|
|
$(ZLIB_OBJ) : $(ZLIB_INC)
|
|
|
|
########################################################
|
|
##
|
|
## opennurbs without freetype
|
|
##
|
|
ON_OBJ_EXTRA_FLAGS = -DON_COMPILING_OPENNURBS -DOPENNURBS_PUBLIC
|
|
$(ON_OBJ) : CFLAGS+=$(ON_OBJ_EXTRA_FLAGS)
|
|
$(ON_OBJ) : CCFLAGS+=$(ON_OBJ_EXTRA_FLAGS)
|
|
$(ON_OBJ) : $(ON_INC)
|
|
|
|
opennurbs_objects : $(ON_OBJ)
|
|
uuid_objects : $(UUID_OBJ)
|
|
zlib_objects : $(ZLIB_OBJ)
|
|
|
|
|
|
$(OPENNURBS_LIB_FILE) : opennurbs_objects zlib_objects uuid_objects
|
|
-$(RM) $@
|
|
$(AR) $@ $(ON_OBJ) $(ZLIB_OBJ) $(UUID_OBJ)
|
|
$(RANLIB) $@
|
|
|
|
########################################################
|
|
##
|
|
## opennurbs with freetype
|
|
##
|
|
## freetype_objects : $(FREETYPE_OBJ)
|
|
### opennurbs_freetype.h requires -I./freetype263/include
|
|
##ON_OBJ_EXTRA_FLAGS = -DON_COMPILING_OPENNURBS -DOPENNURBS_PUBLIC -I./freetype263/include
|
|
##$(ON_OBJ) : CFLAGS+=$(ON_OBJ_EXTRA_FLAGS)
|
|
##$(ON_OBJ) : CCFLAGS+=$(ON_OBJ_EXTRA_FLAGS)
|
|
##$(ON_OBJ) : $(ON_INC)
|
|
##
|
|
##FREETYPE_OBJ_EXTRA_FLAGS = -DFT2_BUILD_LIBRARY -I./freetype263/include
|
|
##$(FREETYPE_OBJ) : CFLAGS+=$(FREETYPE_OBJ_EXTRA_FLAGS)
|
|
##$(FREETYPE_OBJ) : $(FREETYPE_INC)
|
|
##
|
|
##$(OPENNURBS_LIB_FILE) : opennurbs_objects zlib_objects uuid_objects freetype_objects
|
|
## -$(RM) $@
|
|
## $(AR) $@ $(ON_OBJ) $(ZLIB_OBJ) $(UUID_OBJ) $(FREETYPE_OBJ)
|
|
## $(RANLIB) $@
|
|
|
|
example_read/example_read : example_read/example_read.o example_userdata/example_ud.o $(OPENNURBS_LIB_FILE)
|
|
$(LINK) $(LINKFLAGS) example_read/example_read.o example_userdata/example_ud.o -L. -l$(OPENNURBS_LIB_NAME) -lm -o $@
|
|
|
|
example_write/example_write : example_write/example_write.o example_userdata/example_ud.o $(OPENNURBS_LIB_FILE)
|
|
$(LINK) $(LINKFLAGS) example_write/example_write.o example_userdata/example_ud.o -L. -l$(OPENNURBS_LIB_NAME) -lm -o $@
|
|
|
|
example_test/example_test : example_test/example_test.o $(OPENNURBS_LIB_FILE)
|
|
$(LINK) $(LINKFLAGS) example_test/example_test.o -L. -l$(OPENNURBS_LIB_NAME) -lm -o $@
|
|
|
|
example_convert/example_convert : example_convert/example_convert.o example_userdata/example_ud.o $(OPENNURBS_LIB_FILE)
|
|
$(LINK) $(LINKFLAGS) example_convert/example_convert.o example_userdata/example_ud.o -L. -l$(OPENNURBS_LIB_NAME) -lm -o $@
|
|
|
|
example_brep/example_brep : example_brep/example_brep.o $(OPENNURBS_LIB_FILE)
|
|
$(LINK) $(LINKFLAGS) example_brep/example_brep.o -L. -l$(OPENNURBS_LIB_NAME) -lm -o $@
|
|
|
|
example_userdata/example_userdata : example_userdata/example_userdata.o $(OPENNURBS_LIB_FILE)
|
|
$(LINK) $(LINKFLAGS) example_userdata/example_userdata.o -L. -l$(OPENNURBS_LIB_NAME) -lm -o $@
|
|
|
|
clean :
|
|
-$(RM) $(OPENNURBS_LIB_FILE)
|
|
-$(RM) $(ON_OBJ)
|
|
-$(RM) $(UUID_OBJ)
|
|
-$(RM) $(ZLIB_OBJ)
|
|
-$(RM) $(FREETYPE_OBJ)
|
|
-$(RM) $(EXAMPLE_OBJ)
|
|
-$(RM) $(EXAMPLES)
|