File: Makefile.amiga.sas

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 (69 lines) | stat: -rw-r--r-- 1,630 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
#********************************************************************
# Makefile for SAS/C on Amiga
#********************************************************************

CC = sc
LD = sc
CFLAGS = NOVERSION OPTIMIZE STRINGMERGE
LDFLAGS = NOVERSION

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

OBJECTS = avrp.o io_amiga.o talking.o file.o memtalk.o

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

DISTFILES = *.c *.h README Makefile.* avrp.def COPYING avrp.1

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:
	delete avrp avrp.info \#?.o \#?.lnk

avrp: $(OBJ_ALL)
	$(LD) link $(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

#********************************************************************
disk: archive
	copy avrp.lha df0:avrp.lha

archive: avrp.lha

avrp.lha: #$(ARCHFILES)
	lha -xr u avrp.lha $(ARCHFILES)

dist: avrp-$(VERSION).lha

avrp-$(VERSION).lha: #$(DISTFILES)
	makedir avrp-$(VERSION)
	copy $(DISTFILES) TO avrp-$(VERSION)/
	lha -xr u avrp-$(VERSION).lha avrp-$(VERSION)/*
	delete ALL avrp-$(VERSION)

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

avrp-$(VERSION)-Amiga.lha: $(BINFILES)
	makedir avrp-$(VERSION)
	copy $(BINFILES) avrp-$(VERSION)/
	lha -xr u avrp-$(VERSION)-Amiga.lha avrp-$(VERSION)/*
	delete ALL avrp-$(VERSION)

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