-# intentionally want to rebuild drc and bom on every invocation
-all: drc bom
+# name of project, also used for PCB file
+PROJECT=telemetrum
-drc: beacon.sch
- -gnetlist -g drc2 beacon.sch -o beacon.drc
+# list of schematic files that make up this design
+SCHEMATICS=telemetrum.sch
-bom: beacon.sch
- gnetlist -g bom -o beacon.unsorted beacon.sch
- head -n1 beacon.unsorted > beacon.bom
- tail -n+2 beacon.unsorted | sort >> beacon.bom
- rm -f beacon.unsorted
+# number of PCB layers
+LAYERS=4
-pcb: beacon.sch project
- gsch2pcb project
+# sides with silkscreen, can be none|top|bottom|both
+SILK=both
-zip: beacon.plated-drill.cnc beacon.back.gbr beacon.front.gbr beacon.fab.gbr
- zip beacon.zip beacon.plated-drill.cnc beacon.back.gbr beacon.front.gbr beacon.fab.gbr
-
-clean:
- rm -f *.bom *.drc *.log *~ beacon.ps *.gbr *.cnc *bak* *- *.zip
- rm -f *.net *.xy *.cmd
- rm -f *.partslist *.new.pcb *.unsorted
+include ../altusmetrum/pcb.mk