Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / dmake / tos / config.mk
blob65076200175a87f66e4c73de47515d03b0cf6712
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 # PRINTER, PRINTFLAGS
5 # It augments SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
7 PRINTER = hw
8 PRINTFLAGS = -P$(PRINTER)
9 STARTUPFILE = $(OS)/startup.mk
10 CPPFLAGS = $(CFLAGS)
11 LDOBJS = $(CSTARTUP) $(OBJDIR)/{$(<:f)}
12 LDARGS = $(LDFLAGS) -o $@ $(OBJDIR)/*$O
13 LDFLAGS += -s
14 LD = $(CC)
16 # Debug flags
17 DB_CFLAGS = -g -DDBUG
18 DB_LDFLAGS = -g
19 DB_LDLIBS =
21 # NO Debug flags
22 NDB_CFLAGS = -O
23 NDB_LDFLAGS =
24 NDB_LDLIBS =
26 # Local configuration modifications for CFLAGS.
27 CFLAGS += -I$(OS)
29 # Sources that must be defined for each different version
30 OS_SRC += ruletab.c
31 DOS_SRC = rmprq.c runargv.c dirbrk.c rmprq.c
32 UNIX_SRC = arlib.c
33 BSD_SRC = putenv.c tempnam.c
35 .SETDIR=$(OS) : $(OS_SRC)
36 .SETDIR=msdos : $(DOS_SRC)
37 .SETDIR=unix : $(UNIX_SRC)
38 .SETDIR=unix/bsd43 : $(BSD_SRC)
40 SRC += $(OS_SRC) $(DOS_SRC) $(UNIX_SRC) $(BSD_SRC)
42 # Set source dirs so that we can find files named in this
43 # config file.
44 .SOURCE.h : $(OS)
46 # See if we modify anything in the lower levels.
47 .IF $(OSRELEASE) != $(NULL)
48 .INCLUDE .IGNORE : $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)config.mk
49 .END