fidothe

Makefile patch

Aug 4th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.82 KB | None | 0 0
  1. --- Makefile.orig   1998-10-10 06:15:02.000000000 +0200
  2. +++ Makefile    2017-08-04 08:51:43.000000000 +0200
  3. @@ -1,19 +1,20 @@
  4.  # Copyright (c) 1994, 1995 James Clark
  5.  # See the file COPYING for copying permission.
  6.  
  7. -prefix=/opt/local
  8. +prefix=/usr/local
  9.  exec_prefix=$(prefix)
  10.  # Where to install the binaries
  11.  bindir=$(exec_prefix)/bin
  12. -INSTALL=cp
  13. +#INSTALL=cp
  14.  # You might want to uncomment this on BSD systems
  15. -#INSTALL=install
  16. +INSTALL=install
  17.  
  18.  # If you use gcc, then you must have at least version 2.6.1 and
  19.  # you must use -fno-implicit-templates
  20.  # and -O (or any optimization level >= 1).
  21.  # c++ is a front-end for gcc which takes care of linking with -lstdc++
  22. -CXX=c++ -fno-implicit-templates -O2
  23. +CXX=clang++ -fno-implicit-templates -O2
  24. +#CXX=c++ -O2
  25.  WARN=#-Wall -Wno-reorder -Wwrite-strings -Wpointer-arith -Wnested-externs -Woverloaded-virtual -Wbad-function-cast
  26.  # Executables will be *very* large if you use -g.
  27.  DEBUG=
  28. @@ -34,12 +35,13 @@
  29.  #  which doesn't appropriately define sig_atomic_t).
  30.  # Add -DJADE_MIF to include the Jade MIF backend
  31.  XDEFINES=
  32. -DEFINES=-DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE $(XDEFINES)
  33. -CXXFLAGS=-ansi $(DEBUG) $(WARN)
  34. +DEFINES=-DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE -DSP_NAMESPACE=James_Clark_SP $(XDEFINES)
  35. +CXXFLAGS=-ansi -stdlib=libstdc++ $(DEBUG) $(WARN)
  36. +#CXXFLAGS=-ansi $(DEBUG) $(WARN)
  37.  # Flag to pass to CXX to make it output list of dependencies as a Makefile.
  38.  CXXDEPGENFLAGS=-MM
  39.  LDFLAGS=
  40. -CC=gcc
  41. +CC=cc
  42.  CFLAGS=-O $(DEBUG)
  43.  # Missing library functions
  44.  # Uncomment these if your C++ system doesn't provide them.
  45. @@ -58,7 +60,7 @@
  46.  RANLIB=:
  47.  # Uncomment this for SunOS 4.1.3 or FreeBSD
  48.  # (and probably other BSD flavor systems as well)
  49. -#RANLIB=ranlib
  50. +RANLIB=ranlib
  51.  M4=m4
  52.  # perl is needed if you change or add messages
  53.  PERL=perl
Advertisement
Add Comment
Please, Sign In to add comment