summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile.bor
blob: 97707c44349b6c6fadfc3accb1de5d7732d3918b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# Makefile for Borland C++ 5.5 free commandline tools
#
# Modified for Crawl Reference by $Author$ on $Date$

!include makefile.obj

GAME = ..\crawl.exe

all : $(GAME)

.PHONY : clean
.PHONY : debug
.PHONY : noopt
.PHONY : install
.PHONY : wizard

clean : 
	$(DEL) *.o

debug : 

noopt : 

install : 

wizard : 

#
# Borland C++ tools
#
CC     = bcc32
LINK   = ilink32
DEL    = del

# 
# windows defines,  including windows version to make sure code runs on
# all windows systems
#
WIN32DEFINES = WIN32CONSOLE;NEED_SPRINTF;WINVER=0x0400;_WIN32_WINNT=0x0400;__BCPLUSPLUS__

#
# Options
#
LINKOPTS    = -Tpe -ap -c -x /V4.0
CFLAGS      = -I. -D$(WIN32DEFINES) -4 -a -k- -Oc -OS -Oi -Ov -H- -P -c
NICEFLAGS   = -w-8004
DEBUGFLAGS  = -v -y

$(GAME) : $(OBJECTS) libw32c.o
	$(LINK) $(LINKOPTS) c0x32.obj $?, $(GAME),, import32.lib cw32.lib

.cc.o:
	$(CC) $(CFLAGS) $(NICEFLAGS) -o$*.o $<