File: Makefile.linux

package info (click to toggle)
avrp 1.0beta3-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 204 kB
  • ctags: 194
  • sloc: ansic: 2,463; makefile: 40; perl: 6; sh: 5
file content (68 lines) | stat: -rw-r--r-- 1,585 bytes parent folder | download | duplicates (6)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#********************************************************************
# Makefile for gcc on linux and FreeBSD
#********************************************************************

CC = gcc
LD = gcc
CFLAGS = -O3 -Wall
LDFLAGS = -s

SOURCES = avrp.c io_linux.c talking.c file.c memtalk.c

OBJECTS = $(SOURCES:.c=.o)

OBJ_ALL = $(OBJECTS) args.o stdextra.o

DISTFILES = *.c *.h README Makefile.* avrp.def COPYING avrp.1 avrp.txt strip-headers

ARCHFILES = $(DISTFILES) ex/* tab2space space2tab ToDo

BINFILES = avrp avrp.def README COPYING avrp.1 avrp.txt

VERSION = 1.0-beta3

#********************************************************************

all: avrp

install: avrp
	cp avrp.def /usr/local/etc
	cp avrp /usr/local/bin
	cp avrp.1 /usr/local/man/man1
	chmod +r /usr/local/man/man1/avrp.1

clean:
	rm -f avrp *.o *.p *~

avrp: $(OBJ_ALL)
	$(LD) -o avrp $(OBJ_ALL) $(LDFLAGS)

$(OBJECTS): avrp.h args.h misc.h
args.o: args.h misc.h
stdextra.o: misc.h
talking.o memtalk.o: talk.h

avrp.txt: avrp.1
	groff -man -Tascii avrp.1 | ./strip-headers | col -bx > avrp.txt

#********************************************************************

disk: archive
	mcopy -ovm avrp.tar.gz a:avrp.tgz

archive: avrp.tar.gz

avrp.tar.gz: $(ARCHFILES)
	tar cvf avrp.tar $(ARCHFILES)
	gzip -9 -f avrp.tar

dist: avrp-$(VERSION).tar.gz

avrp-$(VERSION).tar.gz: $(DISTFILES)
	mkdir avrp-$(VERSION)
	cp $(DISTFILES) avrp-$(VERSION)/
	tar cvf avrp-$(VERSION).tar avrp-$(VERSION)/*
	gzip -9 -f avrp-$(VERSION).tar
	rm -r avrp-$(VERSION)

#********************************************************************