--- Makefile.orig 2005-01-07 10:28:47 +0200 +++ Makefile 2006-08-14 18:13:43 +0300 @@ -4,32 +4,30 @@ CC = gcc CFLAGS = -Wall -ansi -pedantic -O -g -PREFIX = /usr/local +LDFLAGS = -lnatspec +PREFIX = $(DESTDIR)/usr BINDIR = $(PREFIX)/bin -MANDIR = $(PREFIX)/man/man1 +MANDIR = $(PREFIX)/share/man/man1 DOCS = COPYING INSTALL README TODO ChangeLog filformat.sxw -BINS = o3read o3totxt o3tohtml utf8tolatin1 -SRCS = o3read.h main.c o3read.c o3totxt.c o3tohtml.c utf8tolatin1.c -MANS = o3read.1 o3tohtml.1 o3totxt.1 utf8tolatin1.1 +BINS = o3read o3totxt o3tohtml +SRCS = o3read.h main.c o3read.c o3totxt.c o3tohtml.c +MANS = o3read.1 o3tohtml.1 o3totxt.1 ARCH=`uname -s`-`uname -m` BINDISTDIR=/usr/local all: $(BINS) -utf8tolatin1: utf8tolatin1.o - $(CC) -o utf8tolatin1 utf8tolatin1.o - o3totxt: o3totxt.o o3read.o - $(CC) -o o3totxt o3totxt.o o3read.o + $(CC) -o o3totxt o3totxt.o o3read.o $(LDFLAGS) o3tohtml: o3tohtml.o o3read.o - $(CC) -o o3tohtml o3tohtml.o o3read.o + $(CC) -o o3tohtml o3tohtml.o o3read.o $(LDFLAGS) o3tosiag: o3tosiag.o o3read.o - $(CC) -o o3tosiag o3tosiag.o o3read.o + $(CC) -o o3tosiag o3tosiag.o o3read.o $(LDFLAGS) o3read: main.o o3read.o - $(CC) -o o3read main.o o3read.o + $(CC) -o o3read main.o o3read.o $(LDFLAGS) dist: rm -rf $(PACKAGE)-$(VERSION)