Ticket #35295: makefile.2.diff

File makefile.2.diff, 614 bytes (added by icaines77@…, 12 years ago)

Revised makefile patch so compiler variable is taken from environment.

  • GNUmakefile

    old new  
    1 CC = /usr/bin/g++
    2 CCFLAGS = -g
    3 LDFLAGS =
     1CC = $(CXX)
     2CCFLAGS += -g
    43
    5 BOOST_VERSION = 1_43_0
    6 BOOST_ROOT    = ../
     4BOOST_ROOT    = /opt/local/
    75BOOST_PREFIX  = $(BOOST_ROOT)
    8 BOOST_INCLUDES = $(BOOST_PREFIX)//boost_$(BOOST_VERSION)
     6BOOST_INCLUDES = $(BOOST_PREFIX)/include
    97BOOST_LIBS = $(BOOST_PREFIX)/lib
    108
    119CCFLAGS += -Wall -I$(BOOST_INCLUDES)
     
    3129
    3230clean:
    3331        rm -f *.o core $(BINARY1) $(BINARY2)
     32
     33install:
     34        cp cputhrottle $(DESTDIR)$(BOOST_ROOT)/bin/cputhrottle