8c8b2e
diff -up crm114-20070810-BlameTheSegfault.src/Makefile.r crm114-20070810-BlameTheSegfault.src/Makefile
8c8b2e
--- crm114-20070810-BlameTheSegfault.src/Makefile.r	2007-08-13 13:05:35.000000000 +0200
8c8b2e
+++ crm114-20070810-BlameTheSegfault.src/Makefile	2007-10-27 15:49:38.000000000 +0200
8c8b2e
@@ -54,7 +54,7 @@ SYSTEMTYPE = POSIX
8c8b2e
 #  and warn on all warnable things "-Wall".  Someday add -Wextra for
8c8b2e
 #  really picayune stuff.
60dbba
 #  
8c8b2e
-CFLAGS += -g -O3 -Wall
8c8b2e
+#CFLAGS += -g -O3 -Wall
60dbba
 #     turn this one on for no optimization debugging.
8c8b2e
 #CFLAGS += -g -O0 -Wall 
60dbba
 #     turn this one on for really picayune debugging.
8c8b2e
@@ -64,7 +64,7 @@ CFLAGS += -g -O3 -Wall
60dbba
 #   Comment this out if you want dynamic linking
60dbba
 #
137fae
 #    BSD users - do NOT use -static-libgcc!!!
137fae
-LDFLAGS += -static -static-libgcc
137fae
+#LDFLAGS += -static -static-libgcc
60dbba
 #
60dbba
 #   Any standard install flags?  We nominally use protection 755
60dbba
 INSTALLFLAGS += -m 755
8c8b2e
@@ -411,13 +411,13 @@ osbf-util: osbf-util.c crm_osbf_maintena
60dbba
 		crm_util_errorhandlers.o \
60dbba
 		crm_osbf_maintenance.o -lm -ltre -o osbf-util
60dbba
 
60dbba
-cssdiff: cssdiff.c crm_util_errorhandlers.o $(HFILES)
60dbba
+cssdiff: cssdiff.c crm_util_errorhandlers.o crm_str_funcs.o $(HFILES)
60dbba
 	$(CC)  $(CFLAGS) -D$(SYSTEMTYPE) -DVERSION='"$(VERSION)"' -c cssdiff.c -o cssdiff.o
60dbba
 	$(CC)  $(CFLAGS) $(LDFLAGS) \
60dbba
 		crm_util_errorhandlers.o \
60dbba
 		crm_str_funcs.o -ltre cssdiff.o -o cssdiff
60dbba
 
60dbba
-cssmerge: cssmerge.c crm_util_errorhandlers.o $(HFILES)
60dbba
+cssmerge: cssmerge.c crm_util_errorhandlers.o crm_str_funcs.o $(HFILES)
60dbba
 	$(CC)  $(CFLAGS) $(LDFLAGS) -D$(SYSTEMTYPE) -DVERSION='"$(VERSION)"' \
60dbba
 		crm_str_funcs.o \
60dbba
 		crm_util_errorhandlers.o \
8c8b2e
@@ -449,13 +449,13 @@ install_utils:
8c8b2e
 	#    Installing Utilities
8c8b2e
 	#	
60dbba
 	$(MAKE) cssmerge cssutil cssdiff osbf-util
60dbba
-	install $(INSTALLFLAGS) cssdiff $(BINDIR)/cssdiff$(VER_SUFFIX)
60dbba
-	install $(INSTALLFLAGS) cssmerge $(BINDIR)/cssmerge$(VER_SUFFIX)
60dbba
-	install $(INSTALLFLAGS) cssutil $(BINDIR)/cssutil$(VER_SUFFIX)
60dbba
-	install $(INSTALLFLAGS) osbf-util $(BINDIR)/osbf-util$(VER_SUFFIX)
60dbba
+	install $(INSTALLFLAGS) cssdiff $(DESTDIR)$(BINDIR)/cssdiff$(VER_SUFFIX)
60dbba
+	install $(INSTALLFLAGS) cssmerge $(DESTDIR)$(BINDIR)/cssmerge$(VER_SUFFIX)
60dbba
+	install $(INSTALLFLAGS) cssutil $(DESTDIR)$(BINDIR)/cssutil$(VER_SUFFIX)
60dbba
+	install $(INSTALLFLAGS) osbf-util $(DESTDIR)$(BINDIR)/osbf-util$(VER_SUFFIX)
60dbba
 	#   if you don't have EMACS installed in the default place, you
60dbba
 	#   won't get the crm114-mode.el automatically.
137fae
-	-install $(INSTALLFLAGS) crm114-mode.el $(prefix)/share/emacs/site-lisp/crm114-mode.el$(VER_SUFFIX)
137fae
+	-install $(INSTALLFLAGS) crm114-mode.el $(DESTDIR)$(prefix)/share/emacs/site-lisp/crm114-mode.el$(VER_SUFFIX)
60dbba
 
60dbba
 
60dbba
 # use different name so we can keep it around along with default one
8c8b2e
@@ -464,15 +464,15 @@ install_engine: crm114
8c8b2e
 	#
8c8b2e
 	#    Installing engine
8c8b2e
 	#
137fae
-	install $(INSTALLFLAGS) crm114 $(BINDIR)/crm$(VER_SUFFIX)
137fae
+	install $(INSTALLFLAGS) crm114 $(DESTDIR)$(BINDIR)/crm$(VER_SUFFIX)
137fae
 
60dbba
 install_binary_only: FORCE
137fae
-	install $(INSTALLFLAGS) crm114 $(BINDIR)/crm$(VER_SUFFIX)
60dbba
-	install $(INSTALLFLAGS) cssdiff $(BINDIR)/cssdiff$(VER_SUFFIX)
60dbba
-	install $(INSTALLFLAGS) cssmerge $(BINDIR)/cssmerge$(VER_SUFFIX)
60dbba
-	install $(INSTALLFLAGS) cssutil $(BINDIR)/cssutil$(VER_SUFFIX)	
60dbba
-	install $(INSTALLFLAGS) osbf-util $(BINDIR)/osbf-util$(VER_SUFFIX)
137fae
-	-install $(INSTALLFLAGS) crm114-mode.el $(prefix)/share/emacs/site-lisp/crm114-mode.el$(VER_SUFFIX)
137fae
+	install $(INSTALLFLAGS) crm114 $(DESTDIR)$(BINDIR)/crm$(VER_SUFFIX)
60dbba
+	install $(INSTALLFLAGS) cssdiff $(DESTDIR)$(BINDIR)/cssdiff$(VER_SUFFIX)
60dbba
+	install $(INSTALLFLAGS) cssmerge $(DESTDIR)$(BINDIR)/cssmerge$(VER_SUFFIX)
60dbba
+	install $(INSTALLFLAGS) cssutil $(DESTDIR)$(BINDIR)/cssutil$(VER_SUFFIX)	
60dbba
+	install $(INSTALLFLAGS) osbf-util $(DESTDIR)$(BINDIR)/osbf-util$(VER_SUFFIX)
137fae
+	-install $(INSTALLFLAGS) crm114-mode.el $(DESTDIR)$(prefix)/share/emacs/site-lisp/crm114-mode.el$(VER_SUFFIX)
60dbba
 
60dbba
 uninstall: FORCE
60dbba
 	-rm -rf $(BINDIR)/crm$(VER_SUFFIX)