home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
printer
/
lpr_lpq3.arc
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1989-10-14
|
2KB
|
82 lines
# makefile for LPR and LPQ
# This makefile runs under NDMAKE - needs editing with Borland make
# It assumes no turboc.cfg, make.ini, makefile.mak or other accessories
# NDmake only generates response files for LINK, so I have a copy of TLINK
# in \TC\LINK.EXE
# I run 4DOS as my shell - the "except" command in backup uses this and various
# other pieces of syntax depend on this, but I'm sure you get the idea.
#
# comment out the next line if using Borland make
.SUFFIXES : .obj .c .asm
.c.obj:
$(CC) $(FLAGS) -c $<
TC = \tc
OBJR = lpr.obj wildargs.obj $(TC)\wildargs.obj
OBJQ = lpq.obj
CC = tcc
LINK = \tc\link
LIBS = $(TC)\lib
FLAGS = -M -mt -f- -K -O -k- -d -w- -IE:\;C:$(TC)\INCLUDE
BINDIR = C:\LOCAL\BIN
MANDIR = C:\MAN
JUNK = *.obj *.bak *.i *.map junk*.*
all : lpr.com lpq.com
lpr.com : $(OBJR)
$(LINK) $(LIBS)\c0t $(OBJR),lpr,,$(LIBS)\cs
exe2bin lpr lpr.com
del lpr.exe
lpq.com : $(OBJQ)
$(LINK) $(LIBS)\c0t $(OBJQ),lpq,,$(LIBS)\cs
exe2bin lpq lpq.com
del lpq.exe
lpr.obj : lpr.c
lpq.obj : lpq.c
wildargs.obj : setargv.asm rules.asi
masm /D__TINY__ /DWILD /Mx setargv,wildargs;
backup :
except ($(JUNK) mk0*.bat *.zoo) zoo -update lpr-lpq *
clean :
except (wildargs.obj) del $(JUNK) *.com
install : $(BINDIR)\lpr.com $(BINDIR)\lpq.com $(MANDIR)\lpr.doc $(MANDIR)\lpq.doc
copy lpr.com $(BINDIR)
copy lpq.com $(BINDIR)
copy lpr.doc $(MANDIR)
copy lpq.doc $(MANDIR)
$(MANDIR)\lpr.doc : lpr.doc
$(MANDIR)\lpq.doc : lpq.doc
$(BINDIR)\lpr.com : lpr.com
$(BINDIR)\lpq.com : lpq.com
lpr.doc : lpr.nro
echo @np >tempfile.nro
cat lpr.nro >>tempfile.nro
notroff -pansi tempfile.nro >lpr.doc
echo @pa @m1 4 @m3 2 @m4 2 @lm 3 >tempfile.nro
cat lpr.nro >>tempfile.nro
notroff -pepson tempfile.nro >lpr.prn
notroff lpr.nro >lpr.man
del tempfile.nro
lpq.doc : lpq.nro
echo @np >tempfile.nro
cat lpq.nro >>tempfile.nro
notroff -pansi tempfile.nro >lpq.doc
echo @pa @m1 4 @m3 2 @m4 2 @lm 3 >tempfile.nro
cat lpq.nro >>tempfile.nro
notroff -pepson tempfile.nro >lpq.prn
notroff lpq.nro >lpq.man
del tempfile.nro