chiark
/
gitweb
/
~mdw
/
rocl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Distribute .def files.
[rocl]
/
Makefile
diff --git
a/Makefile
b/Makefile
index e166e6a7294a58fcc1f381018c817aef8daf496d..00b3b7e64155b2d2e9041239830317baa661c728 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,6
+1,6
@@
# Makefile for RIGHT ON COMMAND-LINE
#
# Makefile for RIGHT ON COMMAND-LINE
#
-# $Id: Makefile,v 1.
3 2003/02/26 01:07:39
mdw Exp $
+# $Id: Makefile,v 1.
12 2003/03/18 10:43:55
mdw Exp $
#----- Configuration stuff --------------------------------------------------
#----- Configuration stuff --------------------------------------------------
@@
-8,7
+8,9
@@
CC = gcc
INCLUDES =
CC = gcc
INCLUDES =
-CFLAGS = -O2 -g -pedantic -Wall $(INCLUDES)
+CFLAGS = \
+ -O2 -g -pedantic -Wall -funroll-loops -fomit-frame-pointer \
+ $(INCLUDES)
LD = gcc
LDFLAGS = -shared
LD = gcc
LDFLAGS = -shared
@@
-28,33
+30,44
@@
RM = rm
# Shouldn't need to fiddle with thiis stuff.
PACKAGE = rocl
# Shouldn't need to fiddle with thiis stuff.
PACKAGE = rocl
-VERSION = 1.
0.1
+VERSION = 1.
1.3
TCLSCRIPTS = \
elite-editor elite-pairs elite-path elite-find elite-map \
TCLSCRIPTS = \
elite-editor elite-pairs elite-path elite-find elite-map \
- elite-prices elite-describe elite-reach
+ elite-prices elite-describe elite-reach
elite-cmdr elite-salesman
-all: elite.so pkgIndex.tcl
+SRCFILES = elite.c vec.c vec.h graph.c
+
+PKGFILES = elite.so vec.so graph.so elite.tcl
+
+all: $(PKGFILES) pkgIndex.tcl
elite.so: elite.o
$(LD) $(LDFLAGS) elite.o -o elite.so
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.o vec.o: vec.h
.SUFFIXES: .c .o
.c.o:; $(CC) -c $(CFLAGS) -o $@ $<
.SUFFIXES: .c .o
.c.o:; $(CC) -c $(CFLAGS) -o $@ $<
-pkgIndex.tcl:
elite.so elite.tcl
- echo "pkg_mkIndex -verbose -direct
. elite.so elite.tcl
" | tclsh
+pkgIndex.tcl:
$(PKGFILES)
+ echo "pkg_mkIndex -verbose -direct
-load Vec . $(PKGFILES)
" | tclsh
install: all
$(INSTALL) -d $(INST)$(bindir) $(INST)$(pkglibdir)
install: all
$(INSTALL) -d $(INST)$(bindir) $(INST)$(pkglibdir)
- $(INSTALL) -m 644
elite.so elite.tcl
pkgIndex.tcl $(INST)$(pkglibdir)
+ $(INSTALL) -m 644
$(PKGFILES)
pkgIndex.tcl $(INST)$(pkglibdir)
$(INSTALL) -m 755 $(TCLSCRIPTS) $(INST)$(bindir)
clean:
$(INSTALL) -m 755 $(TCLSCRIPTS) $(INST)$(bindir)
clean:
- $(RM) -f
elite.o elite
.so pkgIndex.tcl
+ $(RM) -f
*.o *
.so pkgIndex.tcl
DISTDIR = $(PACKAGE)-$(VERSION)
DISTDIR = $(PACKAGE)-$(VERSION)
-DISTFILES = README Makefile elite.c elite.tcl elite.def $(TCLSCRIPTS)
+DISTFILES = \
+ README Makefile $(SRCFILES) elite.tcl \
+ elite.def vec.def graph.def $(TCLSCRIPTS)
distdir: $(DISTFILES)
$(RM) -rf $(DISTDIR)
mkdir $(DISTDIR)
distdir: $(DISTFILES)
$(RM) -rf $(DISTDIR)
mkdir $(DISTDIR)