Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / dmake / msdos / zortech / config.mk
blobe947dc87620bd49e358c5155fec31e954159db5e
1 # This is the ZTC DOS configuration file for DMAKE
2 # It simply modifies the values of SRC, and checks to see if
3 # OSENVIRONMENT is defined. If so it includes the appropriate
4 # config.mk file.
6 # It also sets the values of .SOURCE.c and .SOURCE.h to include the local
7 # directory.
9 osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
11 TMPDIR :=
12 .EXPORT : TMPDIR
14 # Definition of macros for library, and C startup code.
15 # Swapping for DOS versions is enabled by default. ZTC will automatically
16 # perform swapping to XMS, EMS or disk by including _swapl.obj at link time.
17 # To be most effective, _swapl.obj should be the first file linked so we
18 # assign it to CSTARTUP if needed.
19 .IF $(SWAP) == y
20 CSTARTUP = _swapl.obj
21 .END
23 # The following sources are required for ZTC
24 # The tempnam supplied with ZTC doesn't handle a NULL dir.
25 OSR_SRC = tempnam.c environ.c
26 .SETDIR=$(osrdir) : $(OSR_SRC)
28 SRC += $(OSR_SRC)
29 .SOURCE.h : $(osrdir)
31 # Local configuration modifications for CFLAGS
32 # If you have a 286, you can use -2 or appropriate to get better code,
33 # in that case uncomment the line below. (You can also simply set
34 # it in the CL environment variable.)
35 #CFLAGS += -2
36 ASFLAGS += -t -mx $(S_$(MODEL))
38 # Redefine this, it isn't needed!
39 LDTAIL = ;
41 # Debugging libraries
42 DB_LDFLAGS += -g
43 DB_LDLIBS +=
45 # NO Debug ZTC flags:
48 CFLAGS += -I$(osrdir) $(C_$(MODEL))
49 CFLAGS += -DM_I86=1 -DMSDOS
50 CFLAGS += -b # use large compiler
51 #CFLAGS += -w # no warnings
52 CFLAGS += -mi # integer only
53 CFLAGS += -p # no auto-prototyping
54 NDB_CFLAGS += -o
55 DB_CFLAGS += -g
57 # Redefine rule for making our objects, we don't need mv
58 %$O : %.c ;% $(CC) -c $(CFLAGS) -o$@ $<
60 # See if we modify anything in the lower levels.
61 .IF $(OSENVIRONMENT) != $(NULL)
62 .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
63 .END
65 C_s =
66 C_m = -mM
67 C_c = -mC
68 C_l = -mL
70 S_s = -Dmsmall
71 S_m = -Dmmedium
72 S_c = -Dmcompact
73 S_l = -Dmlarge