File: Makefile

package info (click to toggle)
fmirror 1%3A0.8.4beta-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 196 kB
  • ctags: 186
  • sloc: ansic: 2,300; makefile: 56; sh: 46
file content (32 lines) | stat: -rw-r--r-- 899 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
# $Id: Makefile,v 1.13 1998/08/05 22:36:14 finnag Exp $

VER=0.8.4beta

# Replace gcc with cc if you don't have gcc on your system
CC=gcc

# for gcc
CFLAGS=-g -O2 -W -Wtraditional -Wcast-qual -Wtraditional -Wall  \
        -Wshadow -Wpointer-arith -Wstrict-prototypes \
        -Wmissing-prototypes -Wbad-function-cast -Wall -Wstrict-prototypes \
	-Wmissing-declarations \
	-DVER=\"${VER}\"

# for most other C-compilers (uncomment next line unless you are using gcc)
# CFLAGS = -O -DVER=\"${VER}\"

fmirror: fmirror.c
	${CC} ${CFLAGS} -o fmirror fmirror.c

dist:
	rm -rf fmirror-${VER}
	mkdir fmirror-${VER}
	tar cf - README COPYING Makefile ChangeLog configs fmirror.[c1] |\
		(cd fmirror-${VER} ; tar xf - )
	rm -f fmirror-${VER}.tar
	tar cf fmirror-${VER}.tar fmirror-${VER}
	rm -rf fmirror-${VER} fmirror-${VER}.tar.gz
	gzip -9 fmirror-${VER}.tar

clean:
	rm -f fmirror-${VER}.tar* *.o fmirror