X-Git-Url: https://git.distorted.org.uk/~mdw/rocl/blobdiff_plain/8d722cca1e280296d78a1eba829795b0a34e1915..5a74fac289a7d687527c4cad2eb5b9fcd62a5135:/Makefile diff --git a/Makefile b/Makefile index d146436..31b10dc 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,18 @@ -# Makefile for RIGHT ON COMMAND-LINE -# -# $Id: Makefile,v 1.14 2003/11/29 23:47:33 mdw Exp $ +### Makefile for RIGHT ON COMMAND-LINE -#----- Configuration stuff -------------------------------------------------- - -# --- Compiling and linking --- +###-------------------------------------------------------------------------- +### Configuration stuff. +## Compiling and linking. CC = gcc -INCLUDES = +INCLUDES = CFLAGS = \ - -O2 -g -pedantic -Wall -funroll-loops -fomit-frame-pointer \ + -O2 -g -Wall -funroll-loops -fomit-frame-pointer \ $(INCLUDES) LD = gcc LDFLAGS = -shared -# --- Installation --- - +## Installation. INST = prefix = /usr/local tcllibdir = $(prefix)/lib @@ -25,16 +22,18 @@ bindir = $(prefix)/bin INSTALL = install RM = rm -#----- Main machinery ------------------------------------------------------- -# -# Shouldn't need to fiddle with thiis stuff. +###-------------------------------------------------------------------------- +### Main machinery. +### +### Shouldn't need to fiddle with this stuff. PACKAGE = rocl -VERSION = 1.1.4 +VERSION = 1.1.5 TCLSCRIPTS = \ elite-editor elite-pairs elite-path elite-find elite-map \ - elite-prices elite-describe elite-reach elite-cmdr elite-salesman + elite-prices elite-describe elite-reach elite-cmdr elite-salesman \ + elite-tantalus SRCFILES = elite.c vec.c vec.h graph.c @@ -46,15 +45,17 @@ elite.so: elite.o $(LD) $(LDFLAGS) elite.o -o elite.so vec.so: vec.o $(LD) $(LDFLAGS) vec.o -o vec.so -graph.so: graph.o - $(LD) $(LDFLAGS) graph.o -o graph.so +graph.so: graph.o vec.so + $(LD) $(LDFLAGS) -Wl,-rpath,$(pkglibdir) graph.o vec.so -o graph.so graph.o vec.o: vec.h .SUFFIXES: .c .o .c.o:; $(CC) -c $(CFLAGS) -o $@ $< pkgIndex.tcl: $(PKGFILES) - echo "pkg_mkIndex -verbose -direct -load Vec . $(PKGFILES) " | tclsh + LD_LIBRARY_PATH=$$(pwd) \ + echo "pkg_mkIndex -verbose -direct -load Vec . $(PKGFILES) " | \ + tclsh install: all $(INSTALL) -d $(INST)$(bindir) $(INST)$(pkglibdir) @@ -66,7 +67,7 @@ clean: DISTDIR = $(PACKAGE)-$(VERSION) DISTFILES = \ - README Makefile $(SRCFILES) elite.tcl steele.cmdr \ + COPYING README Makefile $(SRCFILES) elite.tcl steele.cmdr \ elite.def vec.def graph.def $(TCLSCRIPTS) \ debian/rules debian/control debian/copyright debian/changelog distdir: $(DISTFILES) @@ -106,4 +107,4 @@ distcheck: dist .PHONY: all install clean dist disttar distzip distdir distcheck -#----- That's all, folks ---------------------------------------------------- +###----- That's all, folks --------------------------------------------------