# Depending on the platform, you need select the correct definition

HOST= pc

# Use forward slashes for the following:
# DJGPP make command:
MAKE= e:/pd/djgpp/bin/make
# Path to the location of the present file, no trailing slash:
BASE_DIR = /codas3
# Same as above, but with backslash in place of slash:
BASE_DIR_BS = \codas3
# For some obscure reason, this seems to be necessary in
# library.mak, for running dospath.

# Compiler command and options
CC= c:/turboc/tcc
CFLAGS= -ml -f87  # add  -v  for debugging

# tlink.prl takes care of extra libraries, so leave this blank:
LDLIBS=

# Other commands:
CP= cp -p
RM = - rm -f
DUMMY = echo

# Kluge to get around DOS command line limit
CCLINK = $(BASE_DIR)/make/arglist/arglist
CHMOD = perl $(BASE_DIR)/make/$(HOST)/tlink.prl

# Our own "unix cd" to handle paths with forward slashes:
CD = $(BASE_DIR)/make/ucd/ucd

# Extensions:
EXE= .exe
OBJ= .obj
LIB= .lib

DIRT = *$(OBJ) *.bak *.map *.rsp *.tmp

# Disable builtin suffixes and rules, so we can
# be sure what is going on:
.SUFFIXES:
.SUFFIXES:  $(OBJ) .c
.c:
	$(DUMMY)
# Now put in our default rule:
# GNU make pattern, instead of suffix rule
# The explicit -o option is required for cases where
# the source file is not in the current directory. It
# causes the object file to land in the source directory
# instead of the current directory.
#%$(OBJ) : %.c
.c$(OBJ) :
	$(CC) -c $(CFLAGS) $(INCLUDES) -o$*$(OBJ) $<


