8234ef385e
Fix errno. Add DragonFly support.
68 lines
2.2 KiB
Text
68 lines
2.2 KiB
Text
$NetBSD: patch-aa,v 1.3 2006/02/19 17:50:11 joerg Exp $
|
|
|
|
--- Makefile.orig 2005-06-24 01:20:35.000000000 +0000
|
|
+++ Makefile
|
|
@@ -44,7 +44,7 @@
|
|
SHELL = /bin/sh
|
|
#CC = gcc
|
|
#CFLAGS = -g
|
|
-#LIBS =
|
|
+LIBS = -lm
|
|
#LD = $(CC) -g
|
|
LD = $(CC)
|
|
SCMLIT = ./scmlit
|
|
@@ -97,7 +97,9 @@ ofiles = scm.o time.o repl.o scl.o sys.o
|
|
# ramap.o
|
|
ifiles = Init$(VERSION).scm Transcen.scm Link.scm Macro.scm Macexp.scm \
|
|
Tscript.scm compile.scm Iedline.scm Idiffer.scm
|
|
-hobfiles = hobbit.scm scmhob.scm scmhob.h
|
|
+hobsrcs = hobbit.scm scmhob.scm
|
|
+hobincs = scmhob.h
|
|
+hobfiles = $(hobsrcs) $(hobincs)
|
|
xafiles = xatoms.scm x11.scm xevent.scm keysymdef.scm
|
|
xfiles = x.c x.h xgen.scm xevent.h inc2scm $(xafiles)
|
|
|
|
@@ -396,12 +398,12 @@ $(PREVDOCS)scm.info: srcdir.mk Makefile
|
|
|
|
rpm_prefix=/usr/src/redhat/
|
|
|
|
-prefix = /usr/local/
|
|
+prefix = $(PREFIX)/
|
|
exec_prefix = $(prefix)
|
|
# directory where `make install' will put executable.
|
|
bindir = $(exec_prefix)bin/
|
|
libdir = $(exec_prefix)lib/
|
|
-libscmdir = $(libdir)scm/
|
|
+libscmdir = $(prefix)share/scm/
|
|
# directory where `make install' will put manual page.
|
|
mandir = $(prefix)man/
|
|
man1dir = $(mandir)man1/
|
|
@@ -453,7 +455,7 @@ $(infodir)Xlibscm.info.gz: $(infodir)Xli
|
|
$(infodir)hobbit.info.gz: $(infodir)hobbit.info
|
|
gzip -f $(infodir)hobbit.info
|
|
|
|
-install: scm.1 db.so wbtab.scm rwb-isam.scm
|
|
+install:
|
|
test -d $(bindir) || mkdir $(bindir)
|
|
test -d $(mandir) || mkdir $(mandir)
|
|
test -d $(man1dir) || mkdir $(man1dir)
|
|
@@ -462,16 +464,16 @@ install: scm.1 db.so wbtab.scm rwb-isam.
|
|
-cp scm.1 $(man1dir)
|
|
test -d $(libdir) || mkdir $(libdir)
|
|
test -d $(libscmdir) || mkdir $(libscmdir)
|
|
- -cp $(ifiles) $(hobfiles) COPYING r4rstest.scm $(libscmdir)
|
|
+ -cp $(ifiles) $(hobsrcs) COPYING r4rstest.scm $(libscmdir)
|
|
test -f $(libscmdir)require.scm || \
|
|
cp requires.scm $(libscmdir)require.scm
|
|
- -cp build build.scm mkimpcat.scm Iedline.scm $(SHOBJS) patchlvl.h\
|
|
+ -cp build build.scm mkimpcat.scm Iedline.scm $(SHOBJS) \
|
|
$(xafiles) $(libscmdir)
|
|
-cp db.so wbtab.scm rwb-isam.scm $(libscmdir)
|
|
|
|
installlib:
|
|
test -d $(includedir) || mkdir $(includedir)
|
|
- cp scm.h scmfig.h scmflags.h $(includedir)
|
|
+ cp scm.h scmfig.h scmflags.h patchlvl.h $(hobincs) $(includedir)
|
|
test -d $(libdir) || mkdir $(libdir)
|
|
cp libscm.a $(libdir)libscm.a
|
|
|