daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. builddir = .
  2. top_builddir = ..
  3. srcdir = .
  4. top_srcdir = ..
  5.  
  6. prefix      = /home/pasnox-data/Developpement/OS/OSX-Libraries/Tools/odcctools/lastest/4.2/odcctools-809/odcctools/../binutils-apple
  7. exec_prefix = ${prefix}
  8. bindir      = ${exec_prefix}/bin
  9.  
  10. VPATH = ./src
  11.  
  12. CC      = gcc
  13. CXX             = g++
  14. CFLAGS          = -g -O2 -fno-builtin-round -fno-builtin-trunc
  15. CXXFLAGS    = -g -O2 -Wno-trigraphs -Wno-deprecated -Wno-strict-aliasing
  16. WARNINGS    =  -Wall -Wno-long-double -Wno-import
  17. MDYNAMICNOPIC   =
  18. CPPFLAGS        =
  19. DEFS            = -DHAVE_CONFIG_H -D__LITTLE_ENDIAN__=1
  20. LDFLAGS         =
  21. HAVE_PRIVEXT    = NO
  22. HAVE_FOREIGN_HEADERS    = YES
  23. UUID_LIBS   = -luuid
  24. SSL_LIBS    = -lssl
  25. LTO_DEFS    =
  26. LTO_LIBS    =
  27.  
  28. ifeq ($(HAVE_PRIVEXT),NO)
  29. INCPRIVEXT      = -include $(top_srcdir)/include/extern.h
  30. endif
  31.  
  32. ifeq ($(HAVE_FOREIGN_HEADERS),YES)
  33. FORHDRS         = -I$(top_srcdir)/include/foreign
  34. endif
  35.  
  36. INSTALL     = /usr/bin/install -c
  37. INSTALL_PROGRAM = ${INSTALL}
  38. transform       = s&^&x86_64-apple-darwin10-&
  39. LDPROG          = $(shell echo ld_classic | sed '$(transform)')
  40. ASPROG          = $(shell echo as | sed '$(transform)')
  41.  
  42. MYINCLUDES      = -I$(builddir) -I$(srcdir) -I$(srcdir) -I$(srcdir)/Readers \
  43.             -I$(srcdir)/Writers -I$(top_builddir)/include \
  44.             -I$(top_srcdir)/include $(INCPRIVEXT) $(FORHDRS)
  45. MYWARNINGS      =
  46. MYDEFS          = -DDEBUG -DBINDIR="\"$(bindir)\"" -DLDPROG="\"$(LDPROG)\"" \
  47.           -DASPROG="\"$(ASPROG)\"" $(LTO_DEFS)
  48.  
  49. MYLDFLAGS   = -L$(top_builddir)/libstuff
  50. MYLIBS      = -lstuff $(SSL_LIBS) $(UUID_LIBS) $(LTO_LIBS)
  51.  
  52. MYCOMPILEFLAGS  = $(WARNINGS) $(MYWARNINGS) $(DEFS) $(MYDEFS) \
  53.     $(CPPFLAGS) $(MYINCLUDES) $(CFLAGS) $(MDYNAMICNOPIC)
  54.  
  55. MYLINKFLAGS = $(LDFLAGS) $(MYLDFLAGS) $(MYLIBS)
  56.  
  57. CXXFILES = ld.cpp Options.cpp InputFiles.cpp OutputFiles.cpp Resolver.cpp SymbolTable.cpp
  58. CFILES = debugline.c
  59.  
  60. OBJS = $(CXXFILES:.cpp=.o)
  61. OBJS += $(CFILES:.c=.o)
  62.  
  63. .cpp.o:
  64.     $(CXX) $(MYCOMPILEFLAGS) $(CXXFLAGS) -c -o $@ $<
  65.  
  66. .c.o:
  67.     $(CC) $(MYCOMPILEFLAGS) -c -o $@ $<
  68.  
  69. .PHONY: default clean distclean install
  70.  
  71. default: ld
  72.  
  73. ld: $(OBJS)
  74.     $(CXX) -o $@ $^ $(MYLINKFLAGS)
  75.  
  76. install: ld
  77.     mkdir -p $(DESTDIR)/$(bindir)
  78.     $(INSTALL_PROGRAM) ld \
  79.         $(DESTDIR)/$(bindir)/`echo ld | sed '$(transform)'`
  80.  
  81. clean:
  82.     rm -r -f *.o */*.o
  83.     rm -f ld
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top