1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..$/..
25PRJINC=..$/..
26PRJNAME=connectivity
27TARGET=macab
28TARGET2=$(TARGET)drv
29VISIBILITY_HIDDEN=TRUE
30ENABLE_EXCEPTIONS=TRUE
31
32# --- Settings ----------------------------------
33
34.INCLUDE : $(PRJ)$/makefile.pmk
35.INCLUDE :  $(PRJ)$/version.mk
36
37.IF "$(GUI)" == "UNX"
38.IF "$(OS)" == "MACOSX"
39
40# === MACAB base library ==========================
41
42# --- Files -------------------------------------
43
44SLOFILES= \
45    $(SLO)$/MacabDriver.obj     \
46    $(SLO)$/MacabServices.obj
47
48DEPOBJFILES= \
49	$(SLO2FILES)
50
51# --- Library -----------------------------------
52
53SHL1TARGET= $(TARGET)$(MACAB_MAJOR)
54SHL1OBJS=$(SLOFILES)
55SHL1STDLIBS=\
56    $(CPPULIB)                  \
57    $(CPPUHELPERLIB)            \
58    $(DBTOOLSLIB)               \
59    $(SALLIB)
60
61SHL1DEPN=
62SHL1IMPLIB= i$(TARGET)
63
64SHL1DEF=    $(MISC)$/$(SHL1TARGET).def
65
66DEF1NAME=   $(SHL1TARGET)
67
68# === MACAB impl library ==========================
69
70# --- Files -------------------------------------
71
72SLO2FILES=\
73    $(SLO)$/MacabColumns.obj            \
74    $(SLO)$/MacabTable.obj              \
75    $(SLO)$/MacabTables.obj             \
76    $(SLO)$/MacabCatalog.obj            \
77    $(SLO)$/MacabResultSet.obj          \
78    $(SLO)$/MacabStatement.obj          \
79    $(SLO)$/MacabPreparedStatement.obj  \
80    $(SLO)$/MacabDatabaseMetaData.obj   \
81    $(SLO)$/MacabConnection.obj         \
82    $(SLO)$/MacabResultSetMetaData.obj  \
83    $(SLO)$/macabcondition.obj          \
84    $(SLO)$/macaborder.obj              \
85		$(SLO)$/MacabRecord.obj             \
86		$(SLO)$/MacabRecords.obj            \
87		$(SLO)$/MacabHeader.obj             \
88		$(SLO)$/MacabGroup.obj              \
89		$(SLO)$/MacabAddressBook.obj
90
91MACAB_LIB=-framework Carbon -framework AddressBook
92
93# --- Library -----------------------------------
94
95SHL2TARGET= $(TARGET2)$(MACAB_MAJOR)
96SHL2OBJS=$(SLO2FILES)
97SHL2STDLIBS=\
98    $(CPPULIB)                  \
99    $(CPPUHELPERLIB)            \
100    $(VOSLIB)                   \
101    $(SALLIB)                   \
102    $(DBTOOLSLIB)               \
103    $(COMPHELPERLIB)            \
104    $(MACAB_LIB)
105
106SHL2DEPN=
107SHL2IMPLIB= i$(TARGET2)
108
109SHL2DEF=    $(MISC)$/$(SHL2TARGET).def
110
111DEF2NAME=   $(SHL2TARGET)
112
113# --- Targets -----------------------------------
114.ELSE		# "$(OS)" == "MACOSX"
115dummy:
116	@echo Not using Mac OS X - nothing to build
117.ENDIF
118
119.ELSE		# "$(GUI)" == "UNX"
120dummy:
121	@echo "Nothing to build for GUI $(GUI)"
122.ENDIF
123
124.INCLUDE : $(PRJ)$/target.pmk
125
126
127ALLTAR : $(MISC)/macab1.component
128
129$(MISC)/macab1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
130        macab1.component
131    $(XSLTPROC) --nonet --stringparam uri \
132        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
133        $(SOLARENV)/bin/createcomponent.xslt macab1.component
134