2011-01-08 14:45:52 +02:00
|
|
|
PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones
|
2011-03-15 04:45:01 +02:00
|
|
|
CPTX = ../../eda-tools/mlztx/cptx
|
2011-01-08 14:45:52 +02:00
|
|
|
|
2011-01-17 16:27:28 +02:00
|
|
|
NAME = atben
|
2011-03-15 02:41:41 +02:00
|
|
|
VERSION = 110314
|
2011-03-11 21:05:30 +02:00
|
|
|
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-03-13 09:43:50 +02:00
|
|
|
eeschema --plot=ps `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-14 08:29:33 +02:00
|
|
|
# Copy text from front copper to front silk screen
|
|
|
|
|
2011-03-15 04:45:01 +02:00
|
|
|
cptx:
|
|
|
|
$(CPTX) -i $(NAME).brd 15 51950 30550 21 51950 30550
|
2011-03-14 08:29:33 +02:00
|
|
|
|
2011-03-13 04:32:12 +02:00
|
|
|
# --- Industrial production ---------------------------------------------------
|
2011-03-11 21:05:30 +02:00
|
|
|
|
|
|
|
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:
|
2011-03-14 17:21:51 +02:00
|
|
|
pcbnew --plot=gerber --origin=aux \
|
2011-03-13 04:32:12 +02:00
|
|
|
-l `pcbnew --list-layers $(NAME).brd | tr '\012' ,` \
|
2011-03-13 02:55:15 +02:00
|
|
|
--fill-all-zones $(NAME).brd \
|
|
|
|
--exclude-pcb-edge
|
2011-02-19 16:43:19 +02:00
|
|
|
|
2011-03-11 21:05:30 +02:00
|
|
|
fab: gerber
|
2011-03-14 17:21:51 +02:00
|
|
|
pcbnew --plot=dxf --origin=aux -l PCB_Edges $(NAME).brd
|
|
|
|
pcbnew --drill --origin=aux $(NAME).brd
|
2011-03-14 05:33:40 +02:00
|
|
|
tar Ccfz .. $(NAME)-pcb-$(VERSION).tar.gz \
|
|
|
|
$(PCB_FILES:%=$(DIR)/%)
|
|
|
|
cd ..; zip -l $(DIR)/$(NAME)-pcb-$(VERSION).zip \
|
2011-03-11 21:05:30 +02:00
|
|
|
$(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 \
|
2011-03-13 02:55:15 +02:00
|
|
|
$(NAME)-Back.gbl
|
2011-02-19 16:43:19 +02:00
|
|
|
|
2011-03-14 05:33:40 +02:00
|
|
|
upload:
|
|
|
|
qippl $(NAME)-pcb-$(VERSION).tar.gz \
|
|
|
|
$(NAME)-pcb-$(VERSION).zip wpan/fab
|
|
|
|
|
2011-03-13 04:32:12 +02:00
|
|
|
# --- DIY production (toner transfer) -----------------------------------------
|
|
|
|
|
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 $<
|
|
|
|
|
2011-03-13 04:32:12 +02:00
|
|
|
# --- Cleanup -----------------------------------------------------------------
|
|
|
|
|
2011-01-08 14:45:52 +02:00
|
|
|
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
|
2011-03-15 04:31:27 +02:00
|
|
|
rm -f $(NAME)-Comments.gbr $(NAME)-Drawings.gbr
|
2011-03-15 05:01:40 +02:00
|
|
|
|
|
|
|
spotless: clean
|
|
|
|
rm -f '$$'savepcb.000 '$$'savepcb.brd
|
|
|
|
rm -f $(NAME)-cache.lib $(NAME).000 $(NAME).bak
|
|
|
|
rm -f $(NAME).net
|