Makefile
上传用户:duobangkj
上传日期:2007-01-07
资源大小:70k
文件大小:1k
- # Makefile for XT
- CC = cc
- CFLAGS = -O2
- INSDIR = /usr/local/bin
- LIBDIR = /usr/local/lib/xt
- LDFLAGS = -lsocket -lcurses
- MANEXT = 1
- MANDIR = /usr/local/man/man$(MANEXT)
- BINMODE = 4755
- BINMODE = 711
- CATMAN = true
- MANMODE = 0444
- OWNER = root
- GROUP = bin
- # you should have all of these files:
- MANIFEST =
- .exrc
- .exrc+
- .pass
- .rz
- .sz
- .xta
- .xtcis
- .xtrc
- .xtsco
- Makefile
- README
- bsdinst.sh
- cisdownload
- myman
- xt.h
- xt.1
- xt.nroff
- xtb+.c
- xtdbglog.c
- xtmain.c
- xtscrpt.c
- xtsubs.c
- xttn.c
- OBJS =
- xtb+.o
- xtdbglog.o
- xtmain.o
- xtscrpt.o
- xtsubs.o
- xttn.o
- all: xt
- @echo "All targets are up to date"
- @echo "Now you must su to 'root', and then execute 'make install'"
- @echo "The manual page can be installed by typing 'make install.man'"
- xt: $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS)
- install: xt
- -mv $(INSDIR)/xt $(INSDIR)/xt-
- -./bsdinst.sh -c -o $(OWNER) -g $(GROUP) -m $(BINMODE) -s xt $(INSDIR)/xt
- -@ls -l ./xt $(INSDIR)/xt $(INSDIR)/xt-
- install.man: xt.nroff
- ./bsdinst.sh -c -m $(MANMODE) xt.nroff $(MANDIR)/xt.$(MANEXT)
- ls -l $(MANDIR)/xt.$(MANEXT)*
- clean:; rm -f $(OBJS) xt core
- $(OBJS): xt.h