]> git.gag.com Git - hw/teleterra/blobdiff - Makefile
a radical redesign of TeleTerra, merging TeleBT with a Pi 02W
[hw/teleterra] / Makefile
index 16b16153450009b4dea753a98356c957ab2a2f62..e648ff2b4dd2e3b1b4011d76b80555a3154d49fa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,53 +1,13 @@
-# intentionally want to rebuild drc and bom on every invocation
-all:   hw sw
+# name of project, also used for PCB file
+PROJECT=teleterra
 
-hw:    drc partslist 
+# list of schematic files that make up this design
+SCHEMATICS=teleterra.sch 
 
-sw:    teleterra.hex
+# number of PCB layers
+LAYERS=4
 
-CC=            sdcc
-CFLAGS=                -mpic14 -p16f886
-LDFLAGS=       
-
-teleterra.o:   teleterra.c
-       $(CC) -c $(CFLAGS) $<
-
-teleterra.hex: teleterra.o
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ teleterra.o
-
-drc:   teleterra.sch
-       -gnetlist -g drc2 teleterra.sch -o teleterra.drc
-
-partslist:     teleterra.sch
-       gnetlist -g bom -o teleterra.unsorted teleterra.sch
-       head -n1 teleterra.unsorted > partslist
-       tail -n+2 teleterra.unsorted | sort >> partslist
-       rm -f teleterra.unsorted
-
-pcb:   teleterra.sch project
-       gsch2pcb project
-
-# note that 'gschlas -e foo.sch' will embed all symbols in the schematic, this
-# might be a really good idea for publishing designs to the web that others
-# might review?  Like this example from DJ:
-#
-#web :
-#        for i in channel.sch ethernet.sch power.sch mcu.sch; do \
-#          cp $$i tmp.sch ; \
-#          gschlas -e tmp.sch ; \
-#          mv tmp.sch ${WEB}/$$i; \
-#        done
-
-# this shoves local work out to the git.gag.com repository
-push:  
-       git push --mirror
-
-zip:   teleterra.back.gbr teleterra.backmask.gbr teleterra.fab.gbr teleterra.front.gbr teleterra.frontmask.gbr teleterra.frontpaste.gbr teleterra.frontsilk.gbr teleterra.group2.gbr teleterra.group3.gbr teleterra.plated-drill.cnc
-       zip teleterra.zip *.gbr *.cnc
-
-clean:
-       rm -f *.bom *.drc *.log *~ teleterra.ps *.gbr *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd *.png partslist
-       rm -f *.partslist *.new.pcb *.unsorted
-       rm -f *.hex *.cod *.lst *.ps *.o *.asm
+# sides with silkscreen, can be none|top|bottom|both
+SILK=both
 
+include ../altusmetrum/pcb-rnd.mk