# ------------------------------------------------------------------- # Makefile for ABEL -> GAL projects. # Scott Harrington, Spring 1995 # # Usage: make P=projname # Maps and reduces projname.abl and produces .jed and .wir files. P=iodecode VSM = $P.vsm SCH = sch/$P.1 SYM = sym/$P.1 WIR = wir/$P.1 ALLFILES = $P.* RM = /bin/rm -fi all: $(VSM) $(SCH) $(SYM) $(WIR) clean: $(RM) $(ALLFILES) $(PROJ:%=%.tt1 %.dmc): $P.abl ahdl2pla $P $P.tt2: $P.tt1 plaopt $P -reduce bypin fixed exact $P.sel: $P.tt2 devsel $P -log $P -o $P -dev P22V10 -manu AMD $P.tt3: $P.tt2 cp $P.tt2 $P.tt3 $P.jed $P.doc: $P.tt3 fuseasm $P -o $P.jed -dev P22V10 $P.ord $P.pin $(SYM): $P.tt2 pla2view $P -novhdl -pcb $(PROJ:%=%.vsm %.cmd %.vli %.vhd %.lis %.tim): $P.jed $P.ord j2vhdl $P -dev P22V10 -dly AMD PALCE22V10H-25PC/4 PAL -ord -vhdl $(WIR) $(SCH): $P.tt2 pla2view $P -sch