home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-12-28 | 1.4 KB | 74 lines |
- # Makefile.mnu
-
- #
- # TARGET should be set to ONE of the following
- # DOS_IO XENIX_IO SYSV_IO
- #
- TARGET=SYSV_IO
-
- #
- # EXE should be set to the name of the executable file
- #
- EXE=menu
-
- #
- # PERIOD is the time to wait for characters to arrive
- # XENIX_IO - PERIOD is in milliseconds as argument to nap() - 100
- # SYSV_IO - PERIOD is in seconds as argument to alarm() - 1
- # DOS_IO - PERIOD is ignored
- #
- PERIOD=1
-
- #
- # LIBS should be set to the libraries that containg the termcap/terminfo
- # capabilities (like tgoto and tgetent) (eg. -ltermcap)
- # if XENIX_IO is defined then LIBS should include -lx
- #
- LIBS=-ltermcap
-
- # Use this next line at csusac
- #LIBS=/iwb/lib/libtermlib.a
-
- #
- # CCFLAGS should be set to any CFLAGS deviation
- # DOS_IO set to -dos (Xenix cc only)
- # SYSV_IO or XENIX_IO set to -s
- #
- CCFLAGS=-s
-
- #
- # End of user configuration
- #
- CFLAGS=$(CCFLAGS) -O -D$(TARGET) -DPERIOD=$(PERIOD)
-
- HDRS=io.h proto.h
- SRCS=menu.c io.c
- OBJS=menu.o io.o
-
- $(EXE): $(OBJS)
- cc $(CFLAGS) -o $(EXE) $(OBJS) $(LIBS)
-
- menu.o: menu.c $(HDRS)
- cc -c $(CFLAGS) menu.c
-
- io.o: io.c $(HDRS)
- cc -c $(CFLAGS) io.c
-
- clean:
- # rm -f core $(OBJS) $(EXE) >/dev/null 2>&1
- rm -f core $(OBJS) $(EXE)
-
- shar:
- make clean
- shar `find . -type f -print` > menu.shar
-
- tar:
- tar cvf menu.tar $(SRCS) $(HDRS) Makefile.mnu test.scr
-
- test:
- ./menu test.scr
-
- tags:
- ctags $(SRCS)
- mv tags menu.tag
-