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 9BOR = e:\bc4 10!endif 11 12!if ("$(DEBUG)" == "yes") 13DEBUG_FLAG = -v -DDEBUG 14!else 15DEBUG_FLAG = 16!endif 17 18CC = $(BOR)\bin\bcc 19INC = -I$(BOR)\include 20LIB = -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 26OPTIMIZE= -1- -Ox 27 28CFLAGS = -A -mc -DMSDOS $(DEBUG_FLAG) $(OPTIMIZE) $(INC) $(LIB) 29 30xxd.exe: xxd.c 31 $(CC) $(CFLAGS) xxd.c 32