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=setup_native
27TARGET=getuid
28
29NO_DEFAULT_STL=TRUE
30LIBSALCPPRT=$(0)
31LIBTARGET=NO
32
33# --- Settings -----------------------------------------------------
34
35.INCLUDE :  settings.mk
36
37# --- Files --------------------------------------------------------
38
39# no 'lib' prefix
40DLLPRE=
41
42# no _version.o
43VERSIONOBJ=
44
45.IF "$(OS)" == "LINUX" || "$(OS)" == "SOLARIS"
46
47.IF "$(OS)" == "LINUX"
48CFLAGS+=-D_GNU_SOURCE
49.ENDIF
50
51.IF "$(OS)" == "SOLARIS"
52.IF "$(CPU)" == "I"
53.IF "$(COM)" != "GCC"
54CFLAGS+=-D_KERNEL
55.ENDIF
56.ENDIF
57.ENDIF
58
59# this object must not be a Ultra SPARC binary, this does not
60# work with /usr/bin/sort and such. Needs to be 32 bit even in
61# 64 bit builds
62.IF "$(OS)" == "SOLARIS"
63.IF "$(COM)" != "GCC"
64.IF "$(CPU)" == "S"
65ENVCFLAGS=-xarch=v8
66.ENDIF
67.IF "$(CPU)"=="U"
68CFLAGSAPPEND+=-m32
69LINKFLAGSSHL+=-m32
70.ENDIF
71.ENDIF
72.ENDIF
73
74SLOFILES = $(SLO)$/getuid.obj
75
76SHL1OBJS=$(SLOFILES)
77SHL1TARGET=$(TARGET)
78SHL1STDLIBS=-ldl
79SHL1CODETYPE=C
80
81.ENDIF
82
83# --- Targets ------------------------------------------------------
84
85.INCLUDE :  target.mk
86
87