xref: /aoo4110/main/registry/workben/makefile.mk (revision b1cdbd2c)
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=..
25
26PRJNAME=registry
27TARGET=regtest
28TARGETTYPE=CUI
29LIBTARGET=NO
30
31ENABLE_EXCEPTIONS := TRUE
32
33# --- Settings -----------------------------------------------------
34.INCLUDE :  settings.mk
35
36# --- Files --------------------------------------------------------
37CDEFS += -DDLL_VERSION=$(EMQ)"$(DLLPOSTFIX)$(EMQ)"
38
39RGTLIB = rgt.lib
40.IF "$(GUI)"=="UNX" || "$(GUI)"=="OS2"
41RGTLIB = -lrgt$(DLLPOSTFIX)
42.ENDIF
43
44
45CXXFILES= 	regtest.cxx   	\
46			test.cxx		\
47			regspeed.cxx
48
49
50APP1TARGET= $(TARGET)
51APP1OBJS=   $(OBJ)$/regtest.obj
52
53APP1STDLIBS=\
54            $(SALLIB)	\
55            $(REGLIB)
56
57APP2TARGET= test
58APP2OBJS=   $(OBJ)$/test.obj
59APP2RPATH=NONE
60.IF "$(GUI)"=="UNX" && "$(OS)"!="MACOSX"
61
62.IF "$(OS)"=="LINUX"
63APP2LINKFLAGS=-Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../lib'\'
64.ENDIF
65
66.IF "$(OS)"=="SOLARIS"
67APP2LINKFLAGS=-R\''$$ORIGIN/../lib:$$ORIGIN'\'
68.ENDIF
69
70.ENDIF # "$(OS)"=="UNX"
71
72APP2STDLIBS=\
73			$(RGTLIB)
74
75APP3TARGET= regspeed
76APP3OBJS=   $(OBJ)$/regspeed.obj
77
78APP3STDLIBS=\
79			$(SALLIB)	\
80            $(REGLIB)
81
82.INCLUDE :  target.mk
83