move to pcb-rnd, add pullup resistors, clean up artwork, declare v3
[hw/swdadapter] / Makefile
index cae4751915f492fa8a32eaaa2553c3b9304dc516..0da0b33b028ccd10dec7b251a0cbbb2d4877f866 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,52 +1,13 @@
+# name of project, also used for PCB file
 PROJECT=swdadapter
 
-# intentionally want to rebuild drc and bom on every invocation
-all:   hw
+# list of schematic files that make up this design
+SCHEMATICS=swdadapter.sch
 
-hw:    drc partslist partslist.csv pcb
+# number of PCB layers
+LAYERS=2
 
-drc:   swdadapter.sch
-       -gnetlist -g drc2 swdadapter.sch -o swdadapter.drc
-
-partslist:     swdadapter.sch
-       gnetlist -g bom -o swdadapter.unsorted swdadapter.sch
-       head -n1 swdadapter.unsorted > partslist
-       tail -n+2 swdadapter.unsorted | sort >> partslist
-       rm -f swdadapter.unsorted
-
-partslist.csv: swdadapter.sch Makefile
-       gnetlist -L ../altusmetrum/scheme -g partslistgag \
-               -o swdadapter.unsorted swdadapter.sch
-       head -n1 swdadapter.unsorted > partslist.csv
-       tail -n+2 swdadapter.unsorted | sort -t \, -k 8 >> partslist.csv
-       rm -f swdadapter.unsorted
-
-pcb:   swdadapter.sch project
-       gsch2pcb project
-
-swdadapter.xy: swdadapter.pcb
-       pcb -x bom swdadapter.pcb
-
-swdadapter.bottom.gbr: swdadapter.pcb
-       pcb -x gerber swdadapter.pcb
-
-zip:   swdadapter.bottom.gbr swdadapter.bottommask.gbr swdadapter.fab.gbr swdadapter.top.gbr swdadapter.topmask.gbr swdadapter.topsilk.gbr swdadapter.plated-drill.cnc
-       zip swdadapter.zip *.gbr *.cnc
-
-oshpark: swdadapter.bottom.gbr swdadapter.bottommask.gbr swdadapter.top.gbr swdadapter.topmask.gbr swdadapter.topsilk.gbr swdadapter.plated-drill.cnc
-       mv swdadapter.bottom.gbr bottom\ layer.ger
-       mv swdadapter.bottommask.gbr bottom\ solder\ mask.ger
-       mv swdadapter.outline.gbr board\ outline.ger
-       mv swdadapter.top.gbr top\ layer.ger
-       mv swdadapter.topmask.gbr top\ solder\ mask.ger
-       mv swdadapter.topsilk.gbr top\ silk\ screen.ger
-       mv swdadapter.plated-drill.cnc drills.xln
-       zip swdadapter-oshpark.zip *.ger *.xln
-
-clean:
-       rm -f *.bom *.drc *.log *~ swdadapter.ps *.gbr *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd *.png partslist partslist.csv
-       rm -f *.partslist *.new.pcb *.unsorted
-       rm -f *.hex *.cod *.lst *.ps *.o *.asm
-       rm -f *.ger *.xln *.dk *.mouser
+# sides with silkscreen, can be none|top|bottom|both
+SILK=both
 
+include ../altusmetrum/pcb-rnd.mk