X-Git-Url: https://git.hcoop.net/clinton/Smoothieware.git/blobdiff_plain/10e94a71ec1b4b0f947a5790e1fc4564d75abed8..8ed8c860a106be56c67993ba0f06fab1b558e902:/Rakefile diff --git a/Rakefile b/Rakefile index 5213d6b0..1e7536c3 100644 --- a/Rakefile +++ b/Rakefile @@ -97,8 +97,6 @@ unless defined? NONETWORK end # list of modules to exclude, include directory it is in -EXCLUDE_MODULES= %w(tools/touchprobe) unless defined? EXCLUDE_MODULES - # e.g for a CNC machine #EXCLUDE_MODULES = %w(tools/touchprobe tools/laser tools/temperaturecontrol tools/extruder) @@ -114,6 +112,16 @@ else nonetwork= false end +# see if CNC build +if ENV['CNC'] || CNC + cnc= true + excludes << 'panel\/screens\/3dprinter' + puts "CNC build" +else + excludes << 'panel\/screens\/cnc' + cnc= false +end + if TESTING # add modules to be tested here TESTMODULES= %w(tools/temperatureswitch) unless defined? EXCLUDE_MODULES @@ -193,6 +201,7 @@ defines += MRI_DEFINES defines << "-DDEFAULT_SERIAL_BAUD_RATE=#{DEFAULT_SERIAL_BAUD_RATE}" defines << '-DDEBUG' if OPTIMIZATION == 0 defines << '-DNONETWORK' if nonetwork +defines << '-DCNC' if cnc DEFINES= defines.join(' ') @@ -286,7 +295,7 @@ file "#{PROG}.bin" => ["#{PROG}.elf"] do end file "#{PROG}.elf" => OBJ do |t| - puts "Linking #{t.source}" + puts "Linking" sh "#{LD} #{LDFLAGS} #{OBJ} #{LIBS} -o #{OBJDIR}/#{t.name}" end