📄 common1lnx.inc
字号:
############################################################################
#
# File : common1lnx.inc
#
# Title : Make defines
#
# Author : Ben Bowman
#
# Created : 14/05/2003
#
# Copyright : 2003 by Imagination Technologies Limited.
# All rights reserved.
# No part of this software, either material or conceptual
# may be copied or distributed, transmitted, transcribed,
# stored in a retrieval system or translated into any
# human or computer language in any form by any means,
# electronic, mechanical, manual or other-wise, or
# disclosed to third parties without the express written
# permission of:
# Imagination Technologies Limited,
# HomePark Industrial Estate,
# Kings Langley,
# Hertfordshire,
# WD4 8LZ,
# UK
#
# $Date: 2004/06/07 17:28:55 $ $Revision: 1.17 $
#* $Log: common1lnx.inc $
#
###########################################################################
ifndef WORKROOT
WORKROOT=../../..
endif
############################################################################
# Check stuff that MUST be set on command line
############################################################################
ifndef BUILD
BUILD=release
endif
echo BUILD=$(BUILD)
############################################################################
# Check stuff that MAY be set on command line
############################################################################
include $(PVR_CONSUMER_ROOT)/build/$(PVR_BUILD)/hw_def.inc
SUPPORT+= $(CORE)
ifdef OLDPDUMP
SUPPORT+= -DOLDPDUMP=1
endif
ifndef PROFILE_COMMONLITE
SUPPORT+= -DPROFILE_COMMON=1
endif
ifdef USE_TERMINATE_PORT
SUPPORT+= -DUSE_SW_FLOWCONTROL=1
else
SUPPORT+= -DUSE_TERMINATE_WORD=1
endif
ifndef KEGL
SUPPORT+= -DPVREGL
endif
ifdef EXTENDED_COLOR_MATERIAL
SUPPORT+= -DEXTENDED_COLOR_MATERIAL
endif
ifdef OPENGLES1_1
SUPPORT+= -DOPENGLES1_1
endif
############################################################################
# Sort out tool path, can be overriden on command line.
############################################################################
ifndef TPO
TOOLS :=$(WORKROOT)/pmx/tools
else
TOOL :=$(TPO)
endif
############################################################################
# DDK's, SDK's and other slightly useful tool paths
############################################################################
ifndef USERPATHS
TAGPATH=$(PATH)
#include $(SWDEFS)/valenvlnx.mk
endif
############################################################################
# Define some miscillaneous stuff
############################################################################
ARCH=$(shell arch)
LNXBIN:=$(PVR_CONSUMER_ROOT)/opengles/bin_lnx
BINDIR=../bin
#TMPSRC=tmpsrc.lnx
############################################################################
# Define the tools type thing
############################################################################
#CC = $(CC32ROOT)\bin\cl
#ASM = $(MASMROOT)\bin\ml
#LINK = $(CC32ROOT)\bin\link
#RC = $(SDKROOT)\bin\rc
#MKP = $(INTERNBIN)\makeprim
echo BUILD=$(BUILD)
CDEFINES= -DLINUX=1 -DLINUX_SHARED_LIB=1 -DAPIENTRY= -DGLAPI= -DAPIENTRY= -DEGLAPI= -shared -fPIC -D__i386__ $(SUPPORT) -DNO_BUFF_MAN -DIMG_CALLCONV=
INCLUDE= -I. -I../include -I$(PVR_CONSUMER_ROOT)/include -I$(PVR_CONSUMER_ROOT)/hwdefs -I$(PVR_CONSUMER_ROOT)/services_um/include
LINKLIBS= -lc -lm -ldl
# FIXME
# LINKLIBS += -lpthread
LFLAGS= -Bsymbolic -shared
ifeq ($(BUILD),debug)
OBJ :=debuglnx.$(ARCH)
CDEFINES += -DDEBUG=1 -DDLL_METRIC=1
CFLAGS= -g -Wall
INCDEBUGMETRIC=1
endif
ifeq ($(BUILD),timing)
OBJ :=timinglnx.$(ARCH)
CDEFINES += -DTIMING=1 -DDLL_METRIC=1
CFLAGS = -O3
INCDEBUGMETRIC=1
endif
ifeq ($(BUILD),release)
OBJ :=releaselnx.$(ARCH)
CFLAGS = -O3
endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -