📄 makefile
字号:
CFLAGS = -g -Wall
LDFLAGS = -lwrap
all: depend portserver
SRCS = portserver.c buffer.c init.c port.c connection.c command.c lock.c \
config.c status.c options.c
OBJS = $(SRCS:.c=.o)
DISTDIR = portserver-0.1.3
DISTFILES = $(SRCS) \
portserver.h buffer.h init.h port.h connection.h command.h lock.h \
config.h status.h options.h \
ToDo sample.conf Protocol client-notes redhat4.patch \
COPYING
portserver: $(OBJS)
cc -o $@ $(OBJS) $(LDFLAGS)
depend:
makedepend -- $(CFLAGS) -- $(SRCS)
rm -f Makefile.bak
# Retrieve files from RCS that are not already here
get:
@FILE_LIST=`ls RCS/ | sed -e 's/,v//' ` ; \
NOTHERE= ; \
for i in $$FILE_LIST; do \
if [ ! -f $$i ] ; then \
NOTHERE="$$NOTHERE $$i" ; \
fi ; \
done ; \
if [ "$$NOTHERE" != "" ] ; then \
co -q $$NOTHERE ; \
fi
clean:
makedepend # cleans up bottom of Makefile
rm -f Makefile.bak Makefile.dist portserver $(OBJS) *~ core
dist: Makefile.dist
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
cp $(DISTFILES) $(DISTDIR)
cp Makefile.dist $(DISTDIR)/Makefile
chmod o+w $(DISTDIR)/*
tar cvzf $(DISTDIR).tar.gz $(DISTDIR)
rm -rf $(DISTDIR)
# Remove the 'get' from the 'all' target when distributing the
# source, since the recipient won't have my RCS files
Makefile.dist: Makefile
sed -e "/^all:/s/ get //" < Makefile > Makefile.dist
# DO NOT DELETE THIS LINE -- make depend depends on it.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -