1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=.. 29*cdf0e10cSrcweir 30*cdf0e10cSrcweirPRJNAME=idlc 31*cdf0e10cSrcweirTARGET=idlc 32*cdf0e10cSrcweirTARGETTYPE=CUI 33*cdf0e10cSrcweirLIBTARGET=NO 34*cdf0e10cSrcweir 35*cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 36*cdf0e10cSrcweirINCPRE=$(MISC) 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir.IF "$(GUI)" == "OS2" 39*cdf0e10cSrcweirSTL_OS2_BUILDING=1 40*cdf0e10cSrcweir.ENDIF 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir.INCLUDE : settings.mk 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir# --- Files -------------------------------------------------------- 48*cdf0e10cSrcweir 49*cdf0e10cSrcweirCXXFILES= \ 50*cdf0e10cSrcweir wrap_scanner.cxx \ 51*cdf0e10cSrcweir wrap_parser.cxx \ 52*cdf0e10cSrcweir idlcmain.cxx \ 53*cdf0e10cSrcweir idlc.cxx \ 54*cdf0e10cSrcweir idlccompile.cxx \ 55*cdf0e10cSrcweir idlcproduce.cxx \ 56*cdf0e10cSrcweir errorhandler.cxx \ 57*cdf0e10cSrcweir options.cxx \ 58*cdf0e10cSrcweir fehelper.cxx \ 59*cdf0e10cSrcweir astdeclaration.cxx \ 60*cdf0e10cSrcweir astscope.cxx \ 61*cdf0e10cSrcweir aststack.cxx \ 62*cdf0e10cSrcweir astdump.cxx \ 63*cdf0e10cSrcweir astinterface.cxx \ 64*cdf0e10cSrcweir aststruct.cxx \ 65*cdf0e10cSrcweir aststructinstance.cxx \ 66*cdf0e10cSrcweir astoperation.cxx \ 67*cdf0e10cSrcweir astconstant.cxx \ 68*cdf0e10cSrcweir astenum.cxx \ 69*cdf0e10cSrcweir astarray.cxx \ 70*cdf0e10cSrcweir astunion.cxx \ 71*cdf0e10cSrcweir astexpression.cxx \ 72*cdf0e10cSrcweir astservice.cxx 73*cdf0e10cSrcweir 74*cdf0e10cSrcweirYACCTARGET=$(MISC)$/parser.cxx 75*cdf0e10cSrcweirYACCFILES=parser.y 76*cdf0e10cSrcweir 77*cdf0e10cSrcweirOBJFILES= \ 78*cdf0e10cSrcweir $(OBJ)$/wrap_scanner.obj \ 79*cdf0e10cSrcweir $(OBJ)$/wrap_parser.obj \ 80*cdf0e10cSrcweir $(OBJ)$/idlcmain.obj \ 81*cdf0e10cSrcweir $(OBJ)$/idlc.obj \ 82*cdf0e10cSrcweir $(OBJ)$/idlccompile.obj \ 83*cdf0e10cSrcweir $(OBJ)$/idlcproduce.obj \ 84*cdf0e10cSrcweir $(OBJ)$/errorhandler.obj \ 85*cdf0e10cSrcweir $(OBJ)$/options.obj \ 86*cdf0e10cSrcweir $(OBJ)$/fehelper.obj \ 87*cdf0e10cSrcweir $(OBJ)$/astdeclaration.obj \ 88*cdf0e10cSrcweir $(OBJ)$/astscope.obj \ 89*cdf0e10cSrcweir $(OBJ)$/aststack.obj \ 90*cdf0e10cSrcweir $(OBJ)$/astdump.obj \ 91*cdf0e10cSrcweir $(OBJ)$/astinterface.obj \ 92*cdf0e10cSrcweir $(OBJ)$/aststruct.obj \ 93*cdf0e10cSrcweir $(OBJ)$/aststructinstance.obj \ 94*cdf0e10cSrcweir $(OBJ)$/astoperation.obj \ 95*cdf0e10cSrcweir $(OBJ)$/astconstant.obj \ 96*cdf0e10cSrcweir $(OBJ)$/astenum.obj \ 97*cdf0e10cSrcweir $(OBJ)$/astarray.obj \ 98*cdf0e10cSrcweir $(OBJ)$/astunion.obj \ 99*cdf0e10cSrcweir $(OBJ)$/astexpression.obj \ 100*cdf0e10cSrcweir $(OBJ)$/astservice.obj 101*cdf0e10cSrcweir 102*cdf0e10cSrcweirAPP1TARGET= $(TARGET) 103*cdf0e10cSrcweirAPP1OBJS= $(OBJFILES) 104*cdf0e10cSrcweir 105*cdf0e10cSrcweirAPP1RPATH=SDK 106*cdf0e10cSrcweir 107*cdf0e10cSrcweirAPP1STDLIBS = \ 108*cdf0e10cSrcweir $(REGLIB) \ 109*cdf0e10cSrcweir $(SALLIB) \ 110*cdf0e10cSrcweir $(SALHELPERLIB) 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir.IF "$(debug)" == "" 115*cdf0e10cSrcweirYACCFLAGS+=-l 116*cdf0e10cSrcweir.ELSE 117*cdf0e10cSrcweirYACCFLAGS+=-v 118*cdf0e10cSrcweir.ENDIF 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir.INCLUDE : target.mk 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir$(MISC)$/stripped_scanner.ll : scanner.ll 123*cdf0e10cSrcweir tr -d "\015" < scanner.ll > $(MISC)$/stripped_scanner.ll 124*cdf0e10cSrcweir 125*cdf0e10cSrcweir$(MISC)$/scanner.cxx: $(MISC)$/stripped_scanner.ll 126*cdf0e10cSrcweir flex -o$(MISC)$/scanner.cxx $(MISC)$/stripped_scanner.ll 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir$(OBJ)$/wrap_parser.obj: $(MISC)$/parser.cxx 129*cdf0e10cSrcweir$(OBJ)$/wrap_scanner.obj: $(MISC)$/scanner.cxx 130