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