home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-02-07 | 1.8 KB | 83 lines |
- #
- # Makefile for various Serial Port Handler Programs
- #
- # 8250xxx.*
- #
- # Written for
- #
- # The Zortech C Compiler
- #
- # Copyright 1989
- #
- # John Birchfield
- #
- #
- # MONITOR - a simple line monitor program
- #
- # MDM_INIT - a modem initialization program
- #
- # VT100 - self explanitory
- #
- # Invoke with -dDLC if using the Zortech v2.0 compiler
- #
- # Invoke with CFLAGS=-dLINT <modulename> to invoke Formal Parameter
- # checking a la ANSI C...
- # or if you want both an exact invokation to compile the Monitor
- # module would be:
- #
- # make "CFLAGS=-dLINT -dDLC -o" monitor
-
- #CFLAGS = -mti -J -S -DLINT -DDLC -DSTANDALONE
- CFLAGS = -g -J -S -DLINT -DDLC -DSTANDALONE
-
- IOBJS = mdm_init.obj 8250xon.obj timer.obj queue.obj \
- ctrl_brk.obj
-
- MOBJS = monitor.obj options.obj 8250xon.obj queue.obj \
- timer.obj ctrl_brk.obj _kb.obj
-
- VOBJS = vt100.obj queue.obj screen.obj 8250xon.obj \
- ctrl_brk.obj _kb.obj timer.obj options.obj
-
- .c.obj :
- ztc -c $(CFLAGS) $<
-
-
-
- all : drop_dtr mdm_init laser monitor vt100
-
- drop_dtr : drop_dtr.com
-
- mdm_init : mdm_init.com
-
- monitor : monitor.com
-
- vt100 : vt100.com
-
- drop_dtr.com : drop_dtr.obj timer.obj
- ztc $(CFLAGS) drop_dtr.obj timer.obj
-
- mdm_init.com : $(IOBJS)
- ztc $(CFLAGS) $(IOBJS)
-
- monitor.com : $(MOBJS)
- ztc -mti -omonitor $(MOBJS)
-
- vt100.com : $(VOBJS)
- ztc $(CFLAGS) $(VOBJS)
-
- $(MOBJS) :
-
- $(VOBJS) :
-
- vt100.obj : vt100.c
- ztc $(CFLAGS) -dSTANDALONE -c vt100.c
-
- clean :
- rm *.obj *.map
-
- archive :
- chmod -r comm_io.arc
- pkarc -u comm_io *.c *.h *.rsp *.cmd *.asm makefile.*
- chmod -a *.c *.h *.rsp makefile.*
-