From f4092abdf94af6a99aff944d6264bc1284e8bdd4 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Mon, 10 Oct 2011 17:43:39 +0200 Subject: Imported nx-X11-3.1.0-1.tar.gz Summary: Imported nx-X11-3.1.0-1.tar.gz Keywords: Imported nx-X11-3.1.0-1.tar.gz into Git repository --- nx-X11/extras/freetype2/builds/dos/detect.mk | 117 ++++++++++++++++++++++++++ nx-X11/extras/freetype2/builds/dos/dos-def.mk | 54 ++++++++++++ nx-X11/extras/freetype2/builds/dos/dos-emx.mk | 21 +++++ nx-X11/extras/freetype2/builds/dos/dos-gcc.mk | 21 +++++ nx-X11/extras/freetype2/builds/dos/dos-wat.mk | 17 ++++ 5 files changed, 230 insertions(+) create mode 100644 nx-X11/extras/freetype2/builds/dos/detect.mk create mode 100644 nx-X11/extras/freetype2/builds/dos/dos-def.mk create mode 100644 nx-X11/extras/freetype2/builds/dos/dos-emx.mk create mode 100644 nx-X11/extras/freetype2/builds/dos/dos-gcc.mk create mode 100644 nx-X11/extras/freetype2/builds/dos/dos-wat.mk (limited to 'nx-X11/extras/freetype2/builds/dos') diff --git a/nx-X11/extras/freetype2/builds/dos/detect.mk b/nx-X11/extras/freetype2/builds/dos/detect.mk new file mode 100644 index 000000000..b80686ce5 --- /dev/null +++ b/nx-X11/extras/freetype2/builds/dos/detect.mk @@ -0,0 +1,117 @@ +# +# FreeType 2 configuration file to detect a DOS host platform. +# + + +# Copyright 1996-2000, 2003 by +# 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. + + +.PHONY: setup + + +ifeq ($(PLATFORM),ansi) + + # Test for DJGPP by checking the DJGPP environment variable, which must be + # set in order to use the system (ie. it will always be present when the + # `make' utility is run). + # + # We test for the COMSPEC environment variable, then run the `ver' + # command-line program to see if its output contains the word `Dos' or + # `DOS'. + # + # If this is true, we are running a Dos-ish platform (or an emulation). + # + ifdef DJGPP + PLATFORM := dos + else + ifdef COMSPEC + is_dos := $(findstring DOS,$(subst Dos,DOS,$(shell ver))) + + # We try to recognize a Dos session under OS/2. The `ver' command + # returns `Operating System/2 ...' there, so `is_dos' should be empty. + # + # To recognize a Dos session under OS/2, we check COMSPEC for the + # substring `MDOS\COMMAND' + # + ifeq ($(is_dos),) + is_dos := $(findstring MDOS\COMMAND,$(COMSPEC)) + endif + endif # test COMSPEC + + ifneq ($(is_dos),) + + PLATFORM := dos + + endif # test Dos + endif # test DJGPP +endif # test PLATFORM ansi + +ifeq ($(PLATFORM),dos) + + # Use DJGPP (i.e. gcc) by default. + # + CONFIG_FILE := dos-gcc.mk + ifndef CC + CC := gcc + endif + + # additionally, we provide hooks for various other compilers + # + ifneq ($(findstring emx,$(MAKECMDGOALS)),) # EMX gcc + CONFIG_FILE := dos-emx.mk + CC := gcc + emx: setup + .PHONY: emx + endif + + ifneq ($(findstring turboc,$(MAKECMDGOALS)),) # Turbo C + CONFIG_FILE := dos-tcc.mk + CC := tcc + turboc: setup + .PHONY: turboc + endif + + ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++ + CONFIG_FILE := dos-wat.mk + CC := wcc386 + watcom: setup + .PHONY: watcom + endif + + ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C/C++ 32-bit + CONFIG_FILE := dos-bcc.mk + CC := bcc32 + borlandc: setup + .PHONY: borlandc + endif + + ifneq ($(findstring borlandc16,$(MAKECMDGOALS)),) # Borland C/C++ 16-bit + CONFIG_FILE := dos-bcc.mk + CC := bcc + borlandc16: setup + .PHONY: borlandc16 + endif + + ifneq ($(findstring bash,$(SHELL)),) # check for bash + SEP := / + DELETE := rm + COPY := cp + setup: std_setup + else + SEP := $(BACKSLASH) + DELETE := del + COPY := copy + setup: dos_setup + endif + +endif # test PLATFORM dos + + +# EOF diff --git a/nx-X11/extras/freetype2/builds/dos/dos-def.mk b/nx-X11/extras/freetype2/builds/dos/dos-def.mk new file mode 100644 index 000000000..d6bc72e7b --- /dev/null +++ b/nx-X11/extras/freetype2/builds/dos/dos-def.mk @@ -0,0 +1,54 @@ +# +# FreeType 2 DOS specific definitions +# + + +# Copyright 1996-2000, 2003 by +# 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. + + +DELETE := del +SEP := $(strip \ ) +BUILD_DIR := $(TOP_DIR)/builds/dos +PLATFORM := dos + + +# The directory where all object files are placed. +# +# This lets you build the library in your own directory with something like +# +# set TOP_DIR=.../path/to/freetype2/top/dir... +# set OBJ_DIR=.../path/to/obj/dir +# make -f %TOP_DIR%/Makefile setup [options] +# make -f %TOP_DIR%/Makefile +# +ifndef OBJ_DIR + OBJ_DIR := $(TOP_DIR)/objs +endif + + +# The directory where all library files are placed. +# +# By default, this is the same as $(OBJ_DIR); however, this can be changed +# to suit particular needs. +# +LIB_DIR := $(OBJ_DIR) + +# The name of the final library file. Note that the DOS-specific Makefile +# uses a shorter (8.3) name. +# +LIBRARY := $(PROJECT) + + +# The NO_OUTPUT macro is used to ignore the output of commands. +# +NO_OUTPUT = > nul + + +# EOF diff --git a/nx-X11/extras/freetype2/builds/dos/dos-emx.mk b/nx-X11/extras/freetype2/builds/dos/dos-emx.mk new file mode 100644 index 000000000..6ea8f6d87 --- /dev/null +++ b/nx-X11/extras/freetype2/builds/dos/dos-emx.mk @@ -0,0 +1,21 @@ +# +# FreeType 2 configuration rules for the EMX gcc compiler +# + + +# Copyright 2003 by +# 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. + + +include $(TOP_DIR)/builds/dos/dos-def.mk +include $(TOP_DIR)/builds/compiler/emx.mk +include $(TOP_DIR)/builds/link_dos.mk + + +# EOF diff --git a/nx-X11/extras/freetype2/builds/dos/dos-gcc.mk b/nx-X11/extras/freetype2/builds/dos/dos-gcc.mk new file mode 100644 index 000000000..e14255c1f --- /dev/null +++ b/nx-X11/extras/freetype2/builds/dos/dos-gcc.mk @@ -0,0 +1,21 @@ +# +# FreeType 2 configuration rules for the DJGPP compiler +# + + +# Copyright 1996-2000, 2003 by +# 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. + + +include $(TOP_DIR)/builds/dos/dos-def.mk +include $(TOP_DIR)/builds/compiler/gcc.mk +include $(TOP_DIR)/builds/link_dos.mk + + +# EOF diff --git a/nx-X11/extras/freetype2/builds/dos/dos-wat.mk b/nx-X11/extras/freetype2/builds/dos/dos-wat.mk new file mode 100644 index 000000000..0c39e4979 --- /dev/null +++ b/nx-X11/extras/freetype2/builds/dos/dos-wat.mk @@ -0,0 +1,17 @@ +# +# FreeType 2 configuration rules for the Watcom C/C++ compiler +# + + +# 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. + +include $(TOP_DIR)/builds/dos/dos-def.mk +include $(TOP_DIR)/builds/compiler/watcom.mk +include $(TOP_DIR)/builds/link_dos.mk + + +# EOF -- cgit v1.2.3