Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | # Simple makefile for Borland C++ 4.0 |
| 2 | # 3.1 can NOT be used, it has problems with the fileno() define. |
| 3 | |
| 4 | # Command line variables: |
| 5 | # BOR path to root of Borland C (E:\BORLANDC) |
| 6 | # DEBUG set to "yes" for debugging (no) |
| 7 | |
| 8 | !ifndef BOR |
| 9 | BOR = e:\bc4 |
| 10 | !endif |
| 11 | |
| 12 | !if ("$(DEBUG)" == "yes") |
| 13 | DEBUG_FLAG = -v -DDEBUG |
| 14 | !else |
| 15 | DEBUG_FLAG = |
| 16 | !endif |
| 17 | |
| 18 | CC = $(BOR)\bin\bcc |
| 19 | INC = -I$(BOR)\include |
| 20 | LIB = -L$(BOR)\lib |
| 21 | |
| 22 | # The following compile options can be changed for better machines. |
| 23 | # replace -1- with -2 to produce code for a 80286 or higher |
| 24 | # replace -1- with -3 to produce code for a 80386 or higher |
| 25 | # add -v for source debugging |
| 26 | OPTIMIZE= -1- -Ox |
| 27 | |
| 28 | CFLAGS = -A -mc -DMSDOS $(DEBUG_FLAG) $(OPTIMIZE) $(INC) $(LIB) |
| 29 | |
| 30 | xxd.exe: xxd.c |
| 31 | $(CC) $(CFLAGS) xxd.c |