File: Makefile.amiga.gcc

package info (click to toggle)
avrp 1.0beta3-7
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 240 kB
  • ctags: 194
  • sloc: ansic: 2,458; perl: 6; makefile: 5
file content (75 lines) | stat: -rw-r--r-- 1,747 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
69
70
71
72
73
74
75
#********************************************************************
# Makefile for gcc (Geek Gadget) on Amiga
#********************************************************************

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

SOURCES = avrp.c io_amiga.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
	copy avrp.def env:
	copy avrp.def envarc:
	copy avrp c:

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
	copy avrp.tar.gz pc0: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)

bin: avrp-$(VERSION)-Amiga-ixemul.lha

avrp-$(VERSION)-Amiga-ixemul.lha: $(BINFILES)
	mkdir avrp-$(VERSION)
	cp $(BINFILES) avrp-$(VERSION)/
	lha -xr u avrp-$(VERSION)-Amiga-ixemul.lha avrp-$(VERSION)/*
	rm -r avrp-$(VERSION)

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