github.com/nycdavid/zeus@v0.0.0-20201208104106-9ba439429e03/vagrant/ext/inotify-wrapper/extconf.rb (about)

     1  if /linux/ =~ RUBY_PLATFORM
     2    open("Makefile", "wb") do |f|
     3      f.write <<-EOF
     4  CXX = g++
     5  CXXFLAGS = -O3 -g -Wall
     6  
     7  inotify-wrapper: inotify-wrapper.o
     8  	$(CXX) $(CXXFLAGS) $< -o $@
     9  
    10  %.o: %.cpp
    11  	$(CXX) $(CXXFLAGS) -c $< -o $@
    12  
    13  install:
    14  	# do nothing
    15      EOF
    16    end
    17  else
    18    open("Makefile", "wb") do |f|
    19      f.write <<-EOF
    20  install:
    21  	# do nothing
    22      EOF
    23    end
    24  end