📄 makefile.qnx
字号:
## %Z%%M% %I% %E% 1990 by Robin Miller##/****************************************************************************# * *# * COPYRIGHT (c) 1990 - 2004 *# * This Software Provided *# * By *# * Robin's Nest Software Inc. *# * *# * Permission to use, copy, modify, distribute and sell this software and *# * its documentation for any purpose and without fee is hereby granted *# * provided that the above copyright notice appear in all copies and that *# * both that copyright notice and this permission notice appear in the *# * supporting documentation, and that the name of the author not be used *# * in advertising or publicity pertaining to distribution of the software *# * without specific, written prior permission. *# * *# * THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *# * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN *# * NO EVENT SHALL HE BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL *# * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR *# * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS *# * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF *# * THIS SOFTWARE. *# * *# ****************************************************************************/## Makefile -- makefile for program 'dt'# # System makefile definitions for program makefiles.SUFFIXES: .ln.c.ln: @lint -c $(LINTFLAGS) $<.c~.ln: @echo $< @$(GET) -G$*.c $(GFLAGS) $< @lint -c $(LINTFLAGS) $*.c @rm -f $*.cPRINTER= lprPR_FLAGS= -p -P28TR_PRINTER= $(PRINTER)TR_FLAGS= -t -P28# Libraries the program links to which are considered volatileLIBS=# Libraries considered staticEXTLIBS=LINTLIBS=# P or G flag ( override on command line by invoking make PORG=-g )#PORG= -Otail -mc#PORG= -Otail -mf -w3PORG= -Otail -mfAWK= awkCFLAGS= $(PORG) -DFIFO -DTTY -DRAND48 -D_QNX_SOURCE -D_QNX_32BIT -fi=unix.h#CFLAGS= $(PORG) -DFIFO -DTTY -DRAND48 -D_QNX_SOURCE -D_QNX_32BIT -fi=unix.h -v 9.52CPP= /lib/cppCPPOPTS= -D_QNX_SOURCE#CPPOPTS= -PLDFLAGS=# end of system makefile definitionsHDRS= dt.h### MKMF:SOURCES ###CFILES= \ dt.c \ dtgen.c \ dtinfo.c \ dtread.c \ dtwrite.c \ dtstats.c \ dttty.c \ dtutil.c \ dtusage.c \ dtprocs.c \ dtfifo.c \ dttape.c### MKMF:OBJECTS ###OBJS= ${CFILES:.c=.o}### MKMF:LINTOBJS ###LINTOBJS= ${CFILES:.c=.ln}### MKMF:TARGETS ###PROGRAM= dt# system targets for program makefile$(PROGRAM): $(OBJS) $(XOBJS) $(LIBS) @echo -n loading $(PROGRAM) ... @$(CC) -o $(PROGRAM) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) $(EXTLIBS) @echo doneprint:; @$(PRINTER) $(PRINTFLAGS) $(CFILES)prettyprint:; @vgrind $(CFILES) | $(TROFFPRINTER) $(TROFFPRINTERFLAGS)lint: $(LINTOBJS) lint $(LINTFLAGS) $(LINTOBJS) $(LINTLIBS) touch lintclean:; @rm -f $(OBJS) $(PROGRAM)tags: $(CFILES) $(HDRS) ctags -st $(CFILES) $(HDRS)# end of system targets for program makefiledepend: makedep echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep echo '$$r makedep' >>eddep echo 'w' >>eddep cp Makefile Makefile.bak ex - Makefile < eddep rm eddep makedep makedep1 makedeperrsmakedep: ${CFILES} @cat /dev/null >makedep -(for i in ${CFILES} ; do \ ${CPP} -M ${CPPOPTS} $$i >> makedep; done) \ 2>makedeperrs sed \ -e 's,^.*genassym\.o:,assym.s assym.L:,' \ -e 's,^\(.*\)\.o:,\1.o \1.ln:,' makedep > makedep1 ${AWK} ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ else { if (length(rec $$3) > 78) { print rec; rec = $$0; } \ else rec = rec " " $$3 } } \ END { print rec } ' makedep1 > makedep @cat makedeperrs @(if [ -s makedeperrs ]; then false; fi)# DO NOT DELETE THIS LINEdt.o dt.ln: dt.c ./dt.h /usr/include/stdio.hdt.o dt.ln: /usr/include/float.hdt.o dt.ln: /usr/include/stdlib.hdt.o dt.ln: /usr/include/sys/types.h /usr/include/string.hdt.o dt.ln: /usr/include/termios.hdt.o dt.ln: /usr/include/time.hdt.o dt.ln: /usr/include/unistd.h dt.o dt.ln: /usr/include/errno.hdt.o dt.ln: /usr/include/sys/times.h dt.o dt.ln: /usr/include/fcntl.hdt.o dt.ln: /usr/include/signal.hdt.o dt.ln: /usr/include/sys/wait.h dt.o dt.ln: /usr/include/sys/types.h dt.o dt.ln: /usr/include/signal.hdtread.o dtread.ln: dtread.c ./dt.h /usr/include/stdio.hdtread.o dtread.ln: /usr/include/float.hdtread.o dtread.ln: /usr/include/stdlib.h dtread.o dtread.ln: /usr/include/string.hdtread.o dtread.ln: /usr/include/termios.hdtread.o dtread.ln: /usr/include/time.h dtread.o dtread.ln: /usr/include/unistd.h dtread.o dtread.ln: /usr/include/errno.hdtread.o dtread.ln: /usr/include/sys/times.h dtread.o dtread.ln: /usr/include/sys/types.hdtwrite.o dtwrite.ln: dtwrite.c ./dt.h /usr/include/stdio.hdtwrite.o dtwrite.ln: /usr/include/float.hdtwrite.o dtwrite.ln: /usr/include/stdlib.h dtwrite.o dtwrite.ln: /usr/include/string.hdtwrite.o dtwrite.ln: /usr/include/termios.hdtwrite.o dtwrite.ln: /usr/include/time.h dtwrite.o dtwrite.ln: /usr/include/unistd.h dtwrite.o dtwrite.ln: /usr/include/errno.hdtwrite.o dtwrite.ln: /usr/include/sys/times.h dtwrite.o dtwrite.ln: /usr/include/sys/types.hdtstats.o dtstats.ln: dtstats.c ./dt.h /usr/include/stdio.hdtstats.o dtstats.ln: /usr/include/float.hdtstats.o dtstats.ln: /usr/include/stdlib.h dtstats.o dtstats.ln: /usr/include/string.hdtstats.o dtstats.ln: /usr/include/termios.hdtstats.o dtstats.ln: /usr/include/time.h dtstats.o dtstats.ln: /usr/include/unistd.h dtstats.o dtstats.ln: /usr/include/errno.hdtstats.o dtstats.ln: /usr/include/sys/times.h dtstats.o dtstats.ln: /usr/include/sys/types.hdttty.o dttty.ln: dttty.c ./dt.h /usr/include/stdio.h dttty.o dttty.ln: /usr/include/float.hdttty.o dttty.ln: /usr/include/stdlib.h dttty.o dttty.ln: /usr/include/string.hdttty.o dttty.ln: /usr/include/termios.hdttty.o dttty.ln: /usr/include/time.h dttty.o dttty.ln: /usr/include/unistd.h dttty.o dttty.ln: /usr/include/errno.hdttty.o dttty.ln: /usr/include/sys/times.h dttty.o dttty.ln: /usr/include/sys/types.hdtutil.o dtutil.ln: dtutil.c ./dt.h /usr/include/stdio.hdtutil.o dtutil.ln: /usr/include/float.hdtutil.o dtutil.ln: /usr/include/stdlib.h dtutil.o dtutil.ln: /usr/include/string.hdtutil.o dtutil.ln: /usr/include/termios.hdtutil.o dtutil.ln: /usr/include/time.h dtutil.o dtutil.ln: /usr/include/unistd.h dtutil.o dtutil.ln: /usr/include/errno.hdtutil.o dtutil.ln: /usr/include/sys/times.h dtutil.o dtutil.ln: /usr/include/fcntl.hdtutil.o dtutil.ln: /usr/include/malloc.hdtutil.o dtutil.ln: /usr/include/sys/stat.h dtutil.o dtutil.ln: /usr/include/sys/types.h dtusage.o dtusage.ln: dtusage.c ./dt.h /usr/include/stdio.hdtusage.o dtusage.ln: /usr/include/float.hdtusage.o dtusage.ln: /usr/include/stdlib.h dtusage.o dtusage.ln: /usr/include/sys/types.h /usr/include/string.hdtusage.o dtusage.ln: /usr/include/termios.hdtusage.o dtusage.ln: /usr/include/time.h dtusage.o dtusage.ln: /usr/include/unistd.h dtusage.o dtusage.ln: /usr/include/errno.hdtusage.o dtusage.ln: /usr/include/sys/times.h dtusage.o dtusage.ln: /usr/include/sys/types.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -