1# $Id: mk_bc3.mak 278 2003-02-24 02:27:53Z darren $
2#
3# Simple makefile for Borland C++ 3.1
4
5!include source.mak
6
7# Adjust the paths to your location of the borland C files
8BCCLOC  = c:\borlandc
9CC	= $(BCCLOC)\bin\bcc
10INC	= -I$(BCCLOC)\include
11LIB	= -L$(BCCLOC)\lib
12
13# Add this file for wildcard expansion (does NOT work with 4.0!)
14#EXTRA   =   $(BCCLOC)\lib\wildargs.obj
15
16# The following compile options can be changed for better machines.
17#	replace -1- with -2 to produce code for a 80286 or higher
18#	replace -1- with -3 to produce code for a 80386 or higher
19#	add -v for source debugging
20OPTIMIZE= -1- -O1
21
22##CFLAGS	= -DMSDOS -ml -d -w-ccc -w-par -w-pia -w-rch -w-sus $(INC)
23CFLAGS	= -DMSDOS -DKANJI -ml -d -w-ccc -w-par -w-pia -w-rch -w-sus $(INC)
24LFLAGS	= $(LIB) $(EXTRA)
25EXTRA_LIBS =
26
27ctags.exe: $(SOURCES) respbc3
28	$(CC) $(OPTIMIZE) -e$@ @respbc3
29
30debug: dctags.exe
31
32dctags.exe: $(SOURCES) respbc3 debug.c
33	$(CC) -DDEBUG -v -e$@ @respbc3 debug.c
34
35respbc3: mk_bc3.mak
36	copy &&|
37$(CFLAGS)
38$(LFLAGS)
39$(SOURCES)
40$(EXTRA_LIBS)
41| $@
42
43clean:
44	del *.exe
45	del *.obj
46	del respbc3
47	del tags
48