📄 makefile
字号:
# /*************************************************# * nope - open source drivers for the yepp(tm) *# *************************************************/## /* Copyright (c) 2001, James McKenzie.# * All rights reserved# *# * By using this file, you agree to the terms and conditions set# * forth in the LICENCE file which can be found at the top level of# * the nope distribution. Neither James McKenzie nor anybody else # * warranties that it is legal to use this software - that is your# * problem. # *# * yepp is a trademark of Samsung.# *# */### Makefile:## Copyright (c) 2001 James McKenzie <james@fishsoup.dhs.org>,# All rights reserved.## $Id: Makefile,v 1.12 2001/05/07 00:08:12 root Exp $## $Log: Makefile,v $# Revision 1.12 2001/05/07 00:08:12 root# ### Revision 1.11 2001/01/07 22:36:20 root# ### Revision 1.10 2001/01/07 22:26:43 root# ### Revision 1.9 2001/01/07 17:34:54 root# ### Revision 1.8 2001/01/07 04:49:58 root# ### Revision 1.7 2001/01/07 03:48:47 root# ########### BEGIN USER SERVICABLE PARTS ########where to installDESTDIR=/usr#None as yetDEFINES=# System stuffCC = gccINCLUDES =OPT = -OWARN = -Wall -Wstrict-prototypes -Wno-unusedCFLAGS = ${OPT} ${INCLUDES} ${WARN} ${DEFINES}LIBS =LDFLAGS =#path to X11R6 style makedependMAKEDEPEND=makedepend#path to a BSD compatible installINSTALL=install######### NO USER SERVICEABLE PARTS BELOW HERE ####VERSION=1.2COFLAGS=-lINDENT=indent -i2 -ts0CPROTO=cprotoRCSCI=ciPROG=nopeLIBS=${LIB} ${DBLIB}default:do-it-allifeq (.depend,$(wildcard .depend))include .dependdo-it-all: all @echo " " Now type make install to install nopeelsedo-it-all: depend @echo " " Now type make again to build nopeendifBINDIR= ${DESTDIR}/binBINOWN= rootBINGRP= kmemBINMODE=555MANOWN= binMANGRP= binMANMODE=444MANROOT=${DESTDIR}/man/manMAN1= ${MANROOT}1MAN1EXT=1MAN1SRC=manPSRCS = ieee1284.c util.c yepplib.c yepp.cSRCS=${PSRCS} HS= project.h yepplib.hMEN=nope.1TXTMEN=${MEN:%=doc/%}NROFF= groff -TasciiNRCLN = sed 's/.//g'MANDOC= -mandocOBJS = $(SRCS:.c=.o) all: ${PROG}${PROG}: $(OBJS) ${LIB} $(CC) ${LDFLAGS} $(CFLAGS) $(OBJS) -o $@ ${LIBS}%.o:%.c $(CC) $(CFLAGS) $(INCLUDES) -c $<ieee1284.o:ieee1284.c $(CC) -O2 $(CFLAGS) $(INCLUDES) -c $<clean: /bin/rm -rf *% *~ ${OBJS} core a.out ${PROG} .dependdepend: ${MAKEDEPEND} -f- -- $(INCLUDES) -- $(SRCS) > .dependnodepend: /bin/rm -f .dependprotos: echo > prototypes.h echo > prototypes.h.tmp for i in ${PSRCS}; do ${CPROTO} ${DEFINES} ${INCLUDES} $$i | grep -v ^__ >> prototypes.h.tmp; done /bin/mv -f prototypes.h.tmp prototypes.hcheckin: ${RCSCI} -m# -l ${SRCS} ${HS} Makefile tidy:checkin ${INDENT} -ts0 -i2 ${SRCS} ${HS}doc:${MEN}doc/nope.1:nope.man ${NROFF} ${MANDOC} $< | ${NRCLN} > $@%.${MAN1EXT}:%.${MAN1SRC} cp $< $@MYDIR=nope-${VERSION}distrib: ${MAKE} tidy ${MAKE} protos ${MAKE} doc ${MAKE} clean ${MAKE} ${TXTMEN} ${MAKE} nodepend cd ..; tar cvfzX ${MYDIR}/DISTRIB/${MYDIR}.tar.gz ${MYDIR}/.xclude ${MYDIR}install: install-prog install-docsinstall-prog:${PROG} ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${PROG} ${BINDIR}install-docs: doc ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} nope.${MAN1EXT} ${MAN1}/nope.${MAN1EXT}# DO NOT DELETE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -