Lines 4-35
Link Here
|
4 |
|
4 |
|
5 |
CC = gcc |
5 |
CC = gcc |
6 |
CFLAGS = -Wall -ansi -pedantic -O -g |
6 |
CFLAGS = -Wall -ansi -pedantic -O -g |
|
|
7 |
LDFLAGS = -lnatspec |
7 |
PREFIX = /usr/local |
8 |
PREFIX = /usr/local |
8 |
BINDIR = $(PREFIX)/bin |
9 |
BINDIR = $(PREFIX)/bin |
9 |
MANDIR = $(PREFIX)/man/man1 |
10 |
MANDIR = $(PREFIX)/share/man/man1 |
10 |
DOCS = COPYING INSTALL README TODO ChangeLog filformat.sxw |
11 |
DOCS = COPYING INSTALL README TODO ChangeLog filformat.sxw |
11 |
BINS = o3read o3totxt o3tohtml utf8tolatin1 |
12 |
BINS = o3read o3totxt o3tohtml |
12 |
SRCS = o3read.h main.c o3read.c o3totxt.c o3tohtml.c utf8tolatin1.c |
13 |
SRCS = o3read.h main.c o3read.c o3totxt.c o3tohtml.c |
13 |
MANS = o3read.1 o3tohtml.1 o3totxt.1 utf8tolatin1.1 |
14 |
MANS = o3read.1 o3tohtml.1 o3totxt.1 |
14 |
ARCH=`uname -s`-`uname -m` |
15 |
ARCH=`uname -s`-`uname -m` |
15 |
BINDISTDIR=/usr/local |
16 |
BINDISTDIR=/usr/local |
16 |
|
17 |
|
17 |
all: $(BINS) |
18 |
all: $(BINS) |
18 |
|
19 |
|
19 |
utf8tolatin1: utf8tolatin1.o |
|
|
20 |
$(CC) -o utf8tolatin1 utf8tolatin1.o |
21 |
|
22 |
o3totxt: o3totxt.o o3read.o |
20 |
o3totxt: o3totxt.o o3read.o |
23 |
$(CC) -o o3totxt o3totxt.o o3read.o |
21 |
$(CC) $(LDFLAGS) -o o3totxt o3totxt.o o3read.o |
24 |
|
22 |
|
25 |
o3tohtml: o3tohtml.o o3read.o |
23 |
o3tohtml: o3tohtml.o o3read.o |
26 |
$(CC) -o o3tohtml o3tohtml.o o3read.o |
24 |
$(CC) $(LDFLAGS) -o o3tohtml o3tohtml.o o3read.o |
27 |
|
25 |
|
28 |
o3tosiag: o3tosiag.o o3read.o |
26 |
o3tosiag: o3tosiag.o o3read.o |
29 |
$(CC) -o o3tosiag o3tosiag.o o3read.o |
27 |
$(CC) $(LDFLAGS) -o o3tosiag o3tosiag.o o3read.o |
30 |
|
28 |
|
31 |
o3read: main.o o3read.o |
29 |
o3read: main.o o3read.o |
32 |
$(CC) -o o3read main.o o3read.o |
30 |
$(CC) $(LDFLAGS) -o o3read main.o o3read.o |
33 |
|
31 |
|
34 |
dist: |
32 |
dist: |
35 |
rm -rf $(PACKAGE)-$(VERSION) |
33 |
rm -rf $(PACKAGE)-$(VERSION) |