summaryrefslogtreecommitdiff
path: root/dmake/unix/xenix/pwd/config.mk
blob: 095ff3587a68691146a94bfe5cf18303c18aa5c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This is the Sys VR3 PWD configuration file.  It configures SysvR3 unix
# versions of dmake to use a provided version of getcwd rather than the
# standard library version that uses popen to capture the output of pwd.
#

osredir := $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)$(OSENVIRONMENT)

# The following are required sources
OSRESRC := getcwd.c

.IF $(OSRESRC)
   SRC    += $(OSRESRC)
   .SETDIR=$(osredir) : $(OSRESRC)
.END

.SOURCE.h : $(osredir)

# Local configuration modifications for CFLAGS, there's local SysV includes
# too.
CFLAGS += -I$(osredir)

# Xenix needs -lx in order to link successfully.
LDLIBS += -lx