Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / dmake / os2 / config.mk
blob5e2b7689bd82bdea1e93c16792f8dc104f15cf3b
1 # This is an OS specific configuration file
2 # It assumes that OBJDIR, TARGET and DEBUG are previously defined.
3 # It defines CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
4 # It augments SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
6 OSRELEASE *= ibm
7 - := $(SWITCHAR)
9 # Memory model to compile for
10 # set to s - small, m - medium, c - compact, l - large
11 # Use only large model now.
12 MODEL = l
14 STARTUPFILE = $(OS)/startup.mk
16 CPPFLAGS = $(CFLAGS)
17 LDOBJS = $(CSTARTUP) $(OBJDIR)/{$(<:f)}
18 LDARGS = $(LDHEAD) @$(LDTMPOBJ),$(TARGET),NUL.MAP,,$(LDTAIL)
19 LDTAIL = $(_libs)$(LDFLAGS:s/ //)
20 _libs = $(!null,$(LDLIBS) ,@$(LDTMPLIB))
21 LDTMPOBJ = $(mktmp,,$(DIVFILE) $(LDOBJS:s,/,\\,:t"+\n")\n)
22 LDTMPLIB = $(mktmp,,$(DIVFILE) $(LDLIBS)\n)
24 # Debug flags
25 DB_CFLAGS = -DDBUG
26 DB_LDFLAGS =
27 DB_LDLIBS =
29 # NO Debug flags
30 NDB_CFLAGS =
31 NDB_LDFLAGS =
32 NDB_LDLIBS =
34 # Local configuration modifications for CFLAGS.
35 CFLAGS += $-I$(OS)
37 # OS2 does not have a swap version. The operating system will
38 # handle all swapping.
39 # To save copying unchanged files in from elsewhere, I shall use them in situ.
40 OS_SRC += ruletab.c dchdir.c switchar.c
41 DOS_SRC += dirbrk.c arlib.c dstrlwr.c runargv.c rmprq.c
43 SRC += $(OS_SRC) $(DOS_SRC)
44 .SETDIR=$(OS) : $(ASRC) $(OS_SRC)
45 .SETDIR=msdos : $(DOS_SRC)
47 # Set source dirs so that we can find files named in this
48 # config file.
49 .SOURCE.h : $(OS)
51 # See if we modify anything in the lower levels.
52 .IF $(OSRELEASE) != $(NULL)
53 .INCLUDE .IGNORE : $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)config.mk
54 .END