Class: Mkduino::ConfigureAc
- Inherits:
-
Object
- Object
- Mkduino::ConfigureAc
- Defined in:
- lib/mkduino.rb
Instance Attribute Summary collapse
-
#makefile_am ⇒ Object
Returns the value of attribute makefile_am.
Instance Method Summary collapse
-
#initialize(makefile_am) ⇒ ConfigureAc
constructor
A new instance of ConfigureAc.
- #write_configure_ac ⇒ Object
Constructor Details
#initialize(makefile_am) ⇒ ConfigureAc
Returns a new instance of ConfigureAc.
339 340 341 |
# File 'lib/mkduino.rb', line 339 def initialize makefile_am @makefile_am = makefile_am end |
Instance Attribute Details
#makefile_am ⇒ Object
Returns the value of attribute makefile_am.
338 339 340 |
# File 'lib/mkduino.rb', line 338 def makefile_am @makefile_am end |
Instance Method Details
#write_configure_ac ⇒ Object
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 |
# File 'lib/mkduino.rb', line 342 def write_configure_ac ## # Output the configure.ac file ## puts "Writing configure.ac" File.open('configure.ac',"w") do |f| f.puts <<-CONFIGURE_AC dnl Process this file with autoconf to produce a configure script.") AC_INIT([#{makefile_am.project_name}], [1.0]) dnl AC_CONFIG_SRCDIR( [ Makefile.am ] ) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) dnl AM_CONFIG_HEADER(config.h) dnl Checks for programs. AC_PROG_CC( avr-gcc ) AC_PROG_CXX( avr-g++ ) AC_PROG_RANLIB( avr-ranlib ) AC_PATH_PROG(OBJCOPY, avr-objcopy) AC_PATH_PROG(AVRDUDE, avrdude) AC_ISC_POSIX dnl Checks for libraries. dnl Checks for header files. AC_HAVE_HEADERS( Arduino.h ) dnl Checks for library functions. dnl Check for st_blksize in struct stat dnl internationalization macros AC_OUTPUT([Makefile]) CONFIGURE_AC end end |