chiark / gitweb /
Release 1.1.6.
[rocl] / Makefile
index d80a97c32a6c14f575ea313b49e5a8ebbb1efb08..a9d76c6c433f188beb35d8cf0f34bb48f8bfac09 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,9 @@
 
 ## Compiling and linking.
 CC = gcc
-INCLUDES =
+INCLUDES = -I/usr/include/tcl
 CFLAGS = \
-       -O2 -g -Wall -funroll-loops -fomit-frame-pointer \
+       -O2 -g -Wall -fPIC -funroll-loops -fomit-frame-pointer \
        $(INCLUDES)
 LD = gcc
 LDFLAGS = -shared
@@ -28,7 +28,7 @@ RM = rm
 ### Shouldn't need to fiddle with this stuff.
 
 PACKAGE = rocl
-VERSION = 1.1.5
+VERSION = $(shell ./auto-version)
 
 TCLSCRIPTS = \
        elite-editor elite-pairs elite-path elite-find elite-map \
@@ -68,11 +68,13 @@ clean:
 distdir = $(PACKAGE)-$(VERSION)
 DISTFILES = \
        COPYING README Makefile $(SRCFILES) elite.tcl steele.cmdr \
-       elite.def vec.def graph.def $(TCLSCRIPTS) \
-       debian/rules debian/control debian/copyright debian/changelog
+       elite.def vec.def graph.def $(TCLSCRIPTS) auto-version \
+       debian/rules debian/control debian/copyright debian/changelog \
+       debian/compat debian/source/format
 distdir: $(DISTFILES)
        $(RM) -rf $(distdir)
        mkdir $(distdir) $(distdir)/debian
+       echo $(VERSION) >$(distdir)/RELEASE
        for i in $(DISTFILES); do \
          case $$i in \
            */*) \