#**************************************************************
#  
#  Licensed to the Apache Software Foundation (ASF) under one
#  or more contributor license agreements.  See the NOTICE file
#  distributed with this work for additional information
#  regarding copyright ownership.  The ASF licenses this file
#  to you under the Apache License, Version 2.0 (the
#  "License"); you may not use this file except in compliance
#  with the License.  You may obtain a copy of the License at
#  
#    http://www.apache.org/licenses/LICENSE-2.0
#  
#  Unless required by applicable law or agreed to in writing,
#  software distributed under the License is distributed on an
#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#  KIND, either express or implied.  See the License for the
#  specific language governing permissions and limitations
#  under the License.
#  
#**************************************************************


PRJ=..$/..

TARGETTYPE=CUI
NO_DEFAULT_STL=TRUE

PRJNAME=rsc
TARGET=rscpp

.IF "$(cpp)" != ""
PRJNAME=CPP
TARGET=cpp
.ENDIF

# --- Settings -----------------------------------------------------

.INCLUDE : settings.mk

CDEFS+=-DSOLAR

.IF "$(cpp)" != ""
CDEFS+=-DNOMAIN
.ENDIF

# --- Files --------------------------------------------------------

OBJFILES=   \
			$(OBJ)$/cpp1.obj \
            $(OBJ)$/cpp2.obj \
            $(OBJ)$/cpp3.obj \
            $(OBJ)$/cpp4.obj \
            $(OBJ)$/cpp5.obj \
            $(OBJ)$/cpp6.obj	\

.IF "$(cpp)" == ""
LIBSALCPPRT=$(0)
APP1TARGET= $(TARGET)
APP1LIBS=$(LB)$/$(TARGET).lib
.IF "$(GUI)" != "OS2"
APP1STACK=32768
.ENDIF
.ENDIF

.IF "$(GUI)"=="UNX"
CDEFS+=-Dunix
.ENDIF

.IF "$(OS)$(CPU)"=="SOLARISI"
# cc: Sun C 5.5 Patch 112761-10 2004/08/10
# Solaris x86 compiler ICE
# "cpp6.c", [get]:ube: internal error
# remove after compiler upgrade
NOOPTFILES=$(OBJ)$/cpp6.obj
.ENDIF

# --- Targets ------------------------------------------------------

.INCLUDE : target.mk

cpp1.c: cppdef.h cpp.h
cpp2.c: cppdef.h cpp.h
cpp3.c: cppdef.h cpp.h
cpp4.c: cppdef.h cpp.h
cpp5.c: cppdef.h cpp.h
cpp6.c: cppdef.h cpp.h 


