File: Makefile

package info (click to toggle)
qftp 0.97-1.1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 204 kB
  • ctags: 168
  • sloc: cpp: 1,336; makefile: 61
file content (34 lines) | stat: -rw-r--r-- 649 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

CXXFLAGS = -g
#CXXFLAGS = -O6 -mpentium

VER=0.97

OBJS = qftp.o ftpconn.o net.o flist.o txtif.o conf.o
LIBS =


qftp: README ${OBJS}
	g++ -o $@ ${OBJS} ${LIBS}

clean:
	rm -rf dist/* *.o qftp *~ *.bak TAGS README

install: qftp
	mkdir -p /usr/local/bin
	cp qftp /usr/local/bin

tags:
	etags *.cc *.h

README:
	sed 's/<[^>]*>//g' < README.html >README

tar:	qftp README
	(cd ..;tar zcf qftp-${VER}/qftp-${VER}.tar.gz qftp-${VER}/*.h qftp-${VER}/*.cc qftp-${VER}/qftp qftp-${VER}/Makefile qftp-${VER}/TODO qftp-${VER}/README qftp-${VER}/README.html)

dist:	tar
	mkdir -p dist
	rm -rf dist/*
	mv qftp-${VER}.tar.gz dist/
	gzip -c qftp > dist/qftp.gz