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
|
############################################################################
#
# Copyright (C) 1996 Alistair Conkie
#
# You may distribute under the terms of the GNU General Public
# Licence as specified in the README file.
#
#
############################################################################
#
#
############################################################################
# Installation paths
prefix = /usr/local
bindir = ${prefix}/bin
datadir = ${prefix}/share/freespeech
docdir = ${prefix}/share/doc/enlex-data
# Installed database filename
DBF = enlex.db
# Installed utility name
UTILITY = lexholder-en
# Select the appropriate Makefile options for your system. then type make.
############################################################################
# FreeBSD users
# CC = gcc
# CFLAGS = -O2 -DFBSD_DATABASE
# LIBS = -lm
############################################################################
# Linux users
CC ?= gcc
CFLAGS += -g -Wall -O2
LIBS = -lgdbm -lgdbm_compat
############################################################################
all: lexicon
lexicon: text710.edin lexholder
./lexholder -qf $< $@
#text710.edin: text710.dat read_ox_dict
# read_ox_dict text710.dat > text710.edin
lexholder: lexholder.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
.PHONY: install
install: lexholder lexicon
install -d ${bindir} ${datadir} ${docdir}
install -m 0755 -p lexholder ${bindir}/${UTILITY}
install -m 0644 -p lexicon.dir ${datadir}/enlex.dir
install -m 0644 -p lexicon.pag ${datadir}/enlex.pag
install -m 0644 -p text710.doc ${docdir}
.PHONY: clean
clean:
rm -f lexholder *.o lexicon
|