{"id":524,"date":"2011-07-12T17:53:34","date_gmt":"2011-07-12T22:53:34","guid":{"rendered":"http:\/\/bardagjy.com\/?p=524"},"modified":"2013-06-04T13:33:54","modified_gmt":"2013-06-04T18:33:54","slug":"eagle-makefiles","status":"publish","type":"post","link":"https:\/\/bardagjy.com\/?p=524","title":{"rendered":"EAGLE Makefiles"},"content":{"rendered":"<div id=\"attachment_526\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/bardagjy.com\/?attachment_id=526\" rel=\"attachment wp-att-526\"><img decoding=\"async\" aria-describedby=\"caption-attachment-526\" src=\"http:\/\/bardagjy.com\/wp-content\/uploads\/2011\/07\/Untitled1.png\" alt=\"\" title=\"A2SSRPCrop\" width=\"610\" class=\"size-full wp-image-526\" \/><\/a><p id=\"caption-attachment-526\" class=\"wp-caption-text\">Preview of an upcoming project!<\/p><\/div>\n<p>After getting a a little frustrated with generating boards for manufacture (particularly Advanced Circuits <a href=\"http:\/\/www.barebonespcb.com\/\">barebones<\/a>), I banged out a quick Makefile to speed the compilation.<\/p>\n<p>This of course will work best on Unixy systems, I use it on my Macbook Pro with Macports. The makefile depends on (of course) GNU Make, <a href=\"http:\/\/gerbv.sourceforge.net\/\">gerbv<\/a>, and <a href=\"http:\/\/www.cadsoftusa.com\/\">EAGLE<\/a>. I use EAGLE 5.11, but this script should work all the way back to EAGLE 4.<\/p>\n<p>To use EAGLE from the command line, I simply made a softlink to \/usr\/bin\/eagle<br \/>\n<code><br \/>\nln -s \/Applications\/EAGLE\/EAGLE.app\/Contents\/MacOS\/EAGLE \/usr\/bin\/eagle<br \/>\n<\/code><\/p>\n<p>Right now, the Makefile only works for barebones (top and bottom copper, drills and board outline) but it should be easy to extend to more layers, silkscreen and soldermask if desired.<\/p>\n<pre lang=\"make\" line=\"0\">\r\nPROJECT?= project_name\r\n\r\nall: $(PROJECT).zip\r\n\r\n# Component Side\r\n$(PROJECT).cmp: $(PROJECT).brd\r\n\teagle -X -dGERBER_RS274X -o$(PROJECT).cmp $(PROJECT).brd Top Pads Vias\r\n\r\n# Solder Side\r\n$(PROJECT).sol: $(PROJECT).brd\r\n\teagle -X -dGERBER_RS274X -o$(PROJECT).sol $(PROJECT).brd Bottom Pads Vias\r\n\r\n# Board Outline\r\n$(PROJECT).bor: $(PROJECT).brd\r\n\teagle -X -dGERBER_RS274X -o$(PROJECT).bor $(PROJECT).brd Dimension\r\n\r\n# Drills\r\n$(PROJECT).drd: $(PROJECT).brd\r\n\teagle -X -dEXCELLON -o$(PROJECT).drd $(PROJECT).brd Drills Holes\r\n\r\n$(PROJECT).zip: $(PROJECT).bor $(PROJECT).drd $(PROJECT).cmp $(PROJECT).sol\r\n\tmkdir -p gerbers\r\n\tmv $(PROJECT).{bor,cmp,drd,dri,gpi,sol} gerbers\/\r\n\tzip gerbers\/$(PROJECT).zip gerbers\/*.{bor,drd,cmp,sol}\r\n\r\nview: $(PROJECT).zip\r\n\tgerbv gerbers\/$(PROJECT).{bor,drd,cmp,sol} &\r\n\r\nclean:\r\n\trm -rf *.{bor,cmp,drd,dri,gpi,sol,zip,png,path}\r\n\trm -rf gerbers\/\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After getting a a little frustrated with generating boards for manufacture (particularly Advanced Circuits barebones), I banged out a quick Makefile to speed the compilation. This of course will work best on Unixy systems, I use it on my Macbook Pro with Macports. The makefile depends on (of course) GNU Make, gerbv, and EAGLE. I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":525,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[19],"tags":[48,49,20,50,51],"_links":{"self":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts\/524"}],"collection":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=524"}],"version-history":[{"count":38,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions"}],"predecessor-version":[{"id":586,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions\/586"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/media\/525"}],"wp:attachment":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}