; Convert a SUN4G platform Makefile to a HP700 platform Makefile (defun SUN$G-to-HP700-Makefile () "Convert a SUN4G platform Makefile to a HP700 platform Makefile" (interactive) ; Change platform from SUN4G to HP700 (replace-string "PLATFORM = SUN4G" "PLATFORM = HP700") ; Change projects root dir path. (beginning-of-buffer) (replace-regexp "^PROJECTS_DIR.*" "PROJECTS_DIR = /home/users/faculty/gfisher/projects/alpha") ; Get rid of -lgen (beginning-of-buffer) (replace-string "-lm -lg++ -lgen" "-lm -lg++") ; Add /opt/gnu/lib/g++-include to CFLAGS and DEPEND_FLAGS. (beginning-of-buffer) ; For CFLAGS (search-forward "-I$(IV_INCLUDE_DIR) \\") (end-of-line) (insert-string "\n\t\t-I/opt/gnu/lib/g++-include \\") ; For DEPEND_FLAGS (search-forward "-I$(IV_INCLUDE_DIR) \\") (end-of-line) (insert-string "\n\t\t-I/opt/gnu/lib/g++-include \\") ; Add -HP700 and -DOLD_EXCEPTION_HANDLING. (beginning-of-buffer) (replace-string "-Dgcc_2_6_3" "-Dgcc_2_6_3 -DHP700 -DOLD_EXCEPTION_HANDLING") ; Nuke -fhandle-exceptions. (beginning-of-buffer) (replace-string " -fhandle-exceptions" "") ; Replace -L/usr/openwin/lib with -L/opt/gnu/lib (beginning-of-buffer) (replace-string "-L/usr/openwin/lib" "-L/opt/gnu/lib") )