2000-10-17 05:38:43 +02:00
|
|
|
#
|
|
|
|
# FreeType 2 configuration rules for UNIX platforms
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2002-05-05 12:57:06 +02:00
|
|
|
# Copyright 1996-2000, 2002 by
|
2000-10-17 05:38:43 +02:00
|
|
|
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
#
|
|
|
|
# This file is part of the FreeType project, and may only be used, modified,
|
|
|
|
# and distributed under the terms of the FreeType project license,
|
|
|
|
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
|
|
|
# indicate that you have read the license and understand and accept it
|
|
|
|
# fully.
|
|
|
|
|
2002-06-14 10:09:25 +02:00
|
|
|
have_mk := $(strip $(wildcard $(TOP_DIR)/builds/unix/unix-def.mk))
|
2002-05-05 12:57:06 +02:00
|
|
|
ifneq ($(have_mk),)
|
2002-06-14 10:09:25 +02:00
|
|
|
include $(TOP_DIR)/builds/unix/unix-def.mk
|
|
|
|
include $(TOP_DIR)/builds/unix/unix-cc.mk
|
2002-05-05 12:57:06 +02:00
|
|
|
else
|
|
|
|
# we are building FT2 not in the src tree
|
|
|
|
include $(OBJ_DIR)/unix-def.mk
|
|
|
|
include $(OBJ_DIR)/unix-cc.mk
|
|
|
|
endif
|
2000-09-16 01:47:42 +02:00
|
|
|
|
|
|
|
ifdef BUILD_PROJECT
|
|
|
|
|
2000-12-20 23:09:41 +01:00
|
|
|
.PHONY: clean_project distclean_project
|
|
|
|
|
2000-09-16 01:47:42 +02:00
|
|
|
# Now include the main sub-makefile. It contains all the rules used to
|
|
|
|
# build the library with the previous variables defined.
|
|
|
|
#
|
2002-06-14 10:09:25 +02:00
|
|
|
include $(TOP_DIR)/builds/$(PROJECT).mk
|
2000-09-16 01:47:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
# The cleanup targets.
|
|
|
|
#
|
|
|
|
clean_project: clean_project_unix
|
|
|
|
distclean_project: distclean_project_unix
|
|
|
|
|
|
|
|
|
2000-10-31 21:42:18 +01:00
|
|
|
# This final rule is used to link all object files into a single library.
|
2000-09-16 01:47:42 +02:00
|
|
|
# It is part of the system-specific sub-Makefile because not all
|
|
|
|
# librarians accept a simple syntax like
|
|
|
|
#
|
2000-10-31 21:42:18 +01:00
|
|
|
# librarian library_file {list of object files}
|
2000-09-16 01:47:42 +02:00
|
|
|
#
|
|
|
|
$(PROJECT_LIBRARY): $(OBJECTS_LIST)
|
2000-10-31 21:42:18 +01:00
|
|
|
ifdef CLEAN_LIBRARY
|
2000-09-16 01:47:42 +02:00
|
|
|
-$(CLEAN_LIBRARY) $(NO_OUTPUT)
|
2000-10-31 21:42:18 +01:00
|
|
|
endif
|
2000-09-16 01:47:42 +02:00
|
|
|
$(LINK_LIBRARY)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2002-06-14 10:09:25 +02:00
|
|
|
include $(TOP_DIR)/builds/unix/install.mk
|
2000-09-16 00:42:06 +02:00
|
|
|
|
2000-09-22 23:23:29 +02:00
|
|
|
# EOF
|