1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/printingservices/printerdriversupport/tps/genpdrs.mk Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,73 @@
1.4 +# Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +# All rights reserved.
1.6 +# This component and the accompanying materials are made available
1.7 +# under the terms of "Eclipse Public License v1.0"
1.8 +# which accompanies this distribution, and is available
1.9 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +#
1.11 +# Initial Contributors:
1.12 +# Nokia Corporation - initial contribution.
1.13 +#
1.14 +# Contributors:
1.15 +#
1.16 +# Description:
1.17 +# Build PDR files
1.18 +#
1.19 +#
1.20 +
1.21 +
1.22 +# To ensure that EPOCROOT always ends with a forward slash
1.23 +TMPROOT:=$(subst \,/,$(EPOCROOT))
1.24 +EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
1.25 +
1.26 +include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
1.27 +
1.28 +
1.29 +ifeq ($(PLATFORM),WINS)
1.30 + TARGETDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/printers
1.31 +else
1.32 +ifeq ($(PLATFORM),WINSCW)
1.33 + TARGETDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/printers
1.34 +else
1.35 + TARGETDIR:=$(EPOCROOT)epoc32/data/z/resource/printers
1.36 +endif
1.37 +endif
1.38 +
1.39 +$(TARGETDIR) :
1.40 + $(call createdir,"$(TARGETDIR)")
1.41 +
1.42 +PDR=$(TARGETDIR)/$(PRINTER).pdr
1.43 +
1.44 +$(PDR) : $(EXTENSION_ROOT)/../$(PRINTER_DIR)/$(PRINTER).PD
1.45 + $(EPOCROOT)epoc32/tools/pdrtran "$?" "$@"
1.46 +
1.47 +do_nothing:
1.48 +# do nothing
1.49 +
1.50 +#
1.51 +# The targets invoked by bld...
1.52 +#
1.53 +
1.54 +MAKMAKE : do_nothing
1.55 +
1.56 +BLD : $(TARGETDIR) $(PDR)
1.57 +
1.58 +SAVESPACE : BLD
1.59 +
1.60 +RESOURCE : BLD
1.61 +
1.62 +CLEAN :
1.63 + -$(ERASE) $(PDR)
1.64 +
1.65 +FREEZE : do_nothing
1.66 +
1.67 +LIB : do_nothing
1.68 +
1.69 +CLEANLIB : do_nothing
1.70 +
1.71 +FINAL : do_nothing
1.72 +
1.73 +RELEASABLES :
1.74 + @echo $(PDR)
1.75 +
1.76 +