#
#
# Makefile.
#
# Copyright 1994 Burghart Technology Systems. All Rights Reserved.
#
# Description: makefile (and comments) for the printer status files
#
# creates the following object modules:
#
#  print_no - near printer functions
#  print_fo - far printer functions
#  prn_bits - translation function in C (primarily as an example)
#  prn_stat - printer status program
#
# creates the following executable:
#
#  prnstat
#
# NOTE: be sure LIBPATH and INCPATH are set correctly
#
# Revision History:
#
#  Date        By                Purpose
#  ----        --                -------
#
#  08/21/1994  Ted Burghart      Original File

.autodepend

!ifndef MODEL
MODEL = l
!endif

!if ($(MODEL) == t) || ($(MODEL) == s) || ($(MODEL) == c)
CDIST = n
OVRLY =
!else
CDIST = f
OVRLY = -Y
!endif

!if ($(MODEL) == t)
CLIBM = s
LINKM = dc
!else
CLIBM = $(MODEL)
LINKM = d
!endif

CC = bcc -1- -b -c -f- -H- -k -O2 -P- -r -u -v- -w+ -Z $(OVRLY) -m$(MODEL) -I$(INCPATH)

ASM = tasm /m /ml
LIB = tlib
LINK = tlink
LIBPATH = N:\LIB
INCPATH = N:\INCLUDE

prnstat.exe: makefile. prn_stat.obj print_no.obj print_fo.obj prn_bits.obj
   $(LINK) /c/L$(LIBPATH)/T$(LINKM)/x c0$(MODEL).obj prn_stat.obj print_$(CDIST)o.obj, $&,,c$(CLIBM).lib

print_no.obj: makefile. print_no.asm printer.asm printer.inc
	$(ASM) $&.asm

print_fo.obj: makefile. print_fo.asm printer.asm printer.inc
	$(ASM) /o $&.asm

prn_stat.obj: makefile. prn_stat.cpp printer.h
   $(CC) $&.cpp

prn_bits.obj: makefile. prn_bits.c printer.h
   $(CC) $&.c

