| 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 |
| 8 |
BCCLOC = c:\borlandc |
| 9 |
CC = $(BCCLOC)\bin\bcc |
| 10 |
INC = -I$(BCCLOC)\include |
| 11 |
LIB = -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 |
| 20 |
OPTIMIZE= -1- -O1 |
| 21 |
|
| 22 |
CFLAGS = -DMSDOS -ml -d -w-ccc -w-par -w-pia -w-rch -w-sus $(INC) |
| 23 |
LFLAGS = $(LIB) $(EXTRA) |
| 24 |
EXTRA_LIBS = |
| 25 |
|
| 26 |
ctags.exe: $(SOURCES) respbc3 |
| 27 |
$(CC) $(OPTIMIZE) -e$@ @respbc3 |
| 28 |
|
| 29 |
debug: dctags.exe |
| 30 |
|
| 31 |
dctags.exe: $(SOURCES) respbc3 debug.c |
| 32 |
$(CC) -DDEBUG -v -e$@ @respbc3 debug.c |
| 33 |
|
| 34 |
respbc3: mk_bc3.mak |
| 35 |
copy &&| |
| 36 |
$(CFLAGS) |
| 37 |
$(LFLAGS) |
| 38 |
$(SOURCES) |
| 39 |
$(EXTRA_LIBS) |
| 40 |
| $@ |
| 41 |
|
| 42 |
clean: |
| 43 |
del *.exe |
| 44 |
del *.obj |
| 45 |
del respbc3 |
| 46 |
del tags |