2011-01-08 14:45:52 +02:00
|
|
|
PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones
|
|
|
|
|
2011-01-17 16:27:28 +02:00
|
|
|
NAME = atben
|
2011-03-11 21:05:30 +02:00
|
|
|
VERSION = 110219
|
|
|
|
DIR = $(NAME)
|
Added components (transistor and balun) for the uSD variant.
- atusd/Makefile:
- AUTHORS, atusd/Makefile, atusd/dtc123.lib, atusd/dtc123je.fpd: borrowed
the DTC123 symbol (Alvaro Lopes) and footprint (Dave Ball) from
gta02-core. Note that this isn't the part I'm using in my prototype, and
I'm trying to get rid of it entirely, so all this will change before too
long.
- components/BOOKSHELF, components/INFO, components/balun.lib,
modules/Makefile, modules/INFO, modules/0805-6.fpd: added the Wuerth
748421245 balun
makefile
2010-09-03 00:05:15 +03:00
|
|
|
|
2011-01-08 14:45:52 +02:00
|
|
|
.PHONY: all gen generate sch brd xpdf front back clean
|
2011-02-19 16:43:19 +02:00
|
|
|
.PHONY: gerber gerbv
|
Added components (transistor and balun) for the uSD variant.
- atusd/Makefile:
- AUTHORS, atusd/Makefile, atusd/dtc123.lib, atusd/dtc123je.fpd: borrowed
the DTC123 symbol (Alvaro Lopes) and footprint (Dave Ball) from
gta02-core. Note that this isn't the part I'm using in my prototype, and
I'm trying to get rid of it entirely, so all this will change before too
long.
- components/BOOKSHELF, components/INFO, components/balun.lib,
modules/Makefile, modules/INFO, modules/0805-6.fpd: added the Wuerth
748421245 balun
makefile
2010-09-03 00:05:15 +03:00
|
|
|
|
2011-01-08 14:52:59 +02:00
|
|
|
all:
|
Added components (transistor and balun) for the uSD variant.
- atusd/Makefile:
- AUTHORS, atusd/Makefile, atusd/dtc123.lib, atusd/dtc123je.fpd: borrowed
the DTC123 symbol (Alvaro Lopes) and footprint (Dave Ball) from
gta02-core. Note that this isn't the part I'm using in my prototype, and
I'm trying to get rid of it entirely, so all this will change before too
long.
- components/BOOKSHELF, components/INFO, components/balun.lib,
modules/Makefile, modules/INFO, modules/0805-6.fpd: added the Wuerth
748421245 balun
makefile
2010-09-03 00:05:15 +03:00
|
|
|
@echo "make what ? target: gen sch brd xpdf"
|
|
|
|
@exit 1
|
|
|
|
|
|
|
|
gen generate:
|
2011-01-08 14:51:47 +02:00
|
|
|
eeschema --plot `pwd`/$(NAME).sch
|
Added components (transistor and balun) for the uSD variant.
- atusd/Makefile:
- AUTHORS, atusd/Makefile, atusd/dtc123.lib, atusd/dtc123je.fpd: borrowed
the DTC123 symbol (Alvaro Lopes) and footprint (Dave Ball) from
gta02-core. Note that this isn't the part I'm using in my prototype, and
I'm trying to get rid of it entirely, so all this will change before too
long.
- components/BOOKSHELF, components/INFO, components/balun.lib,
modules/Makefile, modules/INFO, modules/0805-6.fpd: added the Wuerth
748421245 balun
makefile
2010-09-03 00:05:15 +03:00
|
|
|
# need scripts
|
|
|
|
|
|
|
|
sch:
|
2011-01-08 14:51:47 +02:00
|
|
|
eeschema `pwd`/$(NAME).sch
|
Added components (transistor and balun) for the uSD variant.
- atusd/Makefile:
- AUTHORS, atusd/Makefile, atusd/dtc123.lib, atusd/dtc123je.fpd: borrowed
the DTC123 symbol (Alvaro Lopes) and footprint (Dave Ball) from
gta02-core. Note that this isn't the part I'm using in my prototype, and
I'm trying to get rid of it entirely, so all this will change before too
long.
- components/BOOKSHELF, components/INFO, components/balun.lib,
modules/Makefile, modules/INFO, modules/0805-6.fpd: added the Wuerth
748421245 balun
makefile
2010-09-03 00:05:15 +03:00
|
|
|
|
|
|
|
brd:
|
2011-01-08 14:51:47 +02:00
|
|
|
pcbnew `pwd`/$(NAME).brd
|
Added components (transistor and balun) for the uSD variant.
- atusd/Makefile:
- AUTHORS, atusd/Makefile, atusd/dtc123.lib, atusd/dtc123je.fpd: borrowed
the DTC123 symbol (Alvaro Lopes) and footprint (Dave Ball) from
gta02-core. Note that this isn't the part I'm using in my prototype, and
I'm trying to get rid of it entirely, so all this will change before too
long.
- components/BOOKSHELF, components/INFO, components/balun.lib,
modules/Makefile, modules/INFO, modules/0805-6.fpd: added the Wuerth
748421245 balun
makefile
2010-09-03 00:05:15 +03:00
|
|
|
|
|
|
|
xpdf:
|
2011-01-08 14:51:47 +02:00
|
|
|
xpdf $(NAME).pdf
|
2011-01-08 14:45:52 +02:00
|
|
|
|
2011-01-08 14:51:47 +02:00
|
|
|
front: $(NAME)-Front.ps
|
2011-01-08 14:45:52 +02:00
|
|
|
lpr $<
|
|
|
|
|
2011-01-08 14:51:47 +02:00
|
|
|
back: $(NAME)-Back.ps
|
2011-01-08 14:45:52 +02:00
|
|
|
lpr $<
|
|
|
|
|
2011-03-11 21:05:30 +02:00
|
|
|
# this needs more work (--exclude-board-edges)
|
|
|
|
|
|
|
|
PCB_FILES = README-PCB $(NAME)-PCB_Edges.dxf $(NAME).drl \
|
|
|
|
$(NAME)-SilkS_Front.gto $(NAME)-Mask_Front.gts \
|
|
|
|
$(NAME)-Front.gtl $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs \
|
|
|
|
$(NAME)-PCB_Edges.gbr
|
2011-02-19 16:43:19 +02:00
|
|
|
|
|
|
|
gerber:
|
|
|
|
pcbnew --plot=gerber \
|
|
|
|
-l `pcbnew --list-layers atben.brd | tr '\012' ,` \
|
|
|
|
--fill-all-zones $(NAME).brd
|
|
|
|
|
2011-03-11 21:05:30 +02:00
|
|
|
fab: gerber
|
|
|
|
pcbnew --plot=dxf -l PCB_Edges $(NAME).brd
|
|
|
|
pcbnew --drill $(NAME).brd
|
|
|
|
tar Ccfz .. $(NAME)-$(VERSION).tar.gz $(PCB_FILES:%=$(DIR)/%)
|
|
|
|
cd ..; zip -l $(DIR)$(NAME)-$(VERSION).zip \
|
|
|
|
$(PCB_FILES:%=$(DIR)/%)
|
|
|
|
|
2011-02-19 16:43:19 +02:00
|
|
|
gerbv:
|
|
|
|
gerbv $(NAME)-Comments.gbr \
|
|
|
|
$(NAME)-SilkS_Front.gto \
|
|
|
|
$(NAME)-SoldP_Front.gtp \
|
|
|
|
$(NAME)-Front.gtl \
|
|
|
|
$(NAME)-Mask_Front.gts \
|
|
|
|
$(NAME)-Back.gbl \
|
|
|
|
$(NAME)-Mask_Back.gbs
|
|
|
|
|
2011-01-08 14:45:52 +02:00
|
|
|
#
|
|
|
|
# Postscript for production of front/back layer, using the toner transfer
|
|
|
|
# method. Note that other artwork transfer methods may require different
|
|
|
|
# mirror settings.
|
|
|
|
#
|
|
|
|
# We use --ps-pads-drill-opt=none to avoid having any hole before drilling,
|
|
|
|
# which yields the best results with a CNC drill. For manual drilling, "real"
|
|
|
|
# would be preferrable. Do not use "small", for this created holes that are
|
|
|
|
# larger (!) than designed.
|
|
|
|
#
|
|
|
|
|
2011-01-08 14:51:47 +02:00
|
|
|
%-Front.ps: %.brd
|
2011-01-08 14:45:52 +02:00
|
|
|
$(PLOT_BRD) -l Front --mirror $<
|
|
|
|
|
2011-01-08 14:51:47 +02:00
|
|
|
%-Back.ps: %.brd
|
2011-01-08 14:45:52 +02:00
|
|
|
$(PLOT_BRD) -l Back $<
|
|
|
|
|
|
|
|
clean:
|
2011-01-08 14:51:47 +02:00
|
|
|
rm -f $(NAME)-Front.ps $(NAME)-Back.ps
|
2011-03-11 21:05:30 +02:00
|
|
|
rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr $(NAME)-PCB_Edges.dxf
|
2011-01-18 03:40:15 +02:00
|
|
|
rm -f $(NAME)-Front.gtl $(NAME)-Mask_Front.gts
|
|
|
|
rm -f $(NAME)-SilkS_Front.gto $(NAME)-SoldP_Front.gtp
|
|
|
|
rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs
|
|
|
|
rm -f $(NAME)-SilkS_Back.gbo $(NAME)-SoldP_Back.gbp
|
|
|
|
rm -f $(NAME)-Comments.gbr
|