JAL = ../../jal
#JALFLAGS =-s ../../../lib 16c84_10
JALFLAGS =-s ../../../lib f877_20 


OBJECTS = knipper1.hex knipper2.hex knipper3.hex knipper4.hex knipper5.hex \
knipper6.hex knipper7.hex knipper8.hex knipper9.hex lcd1.hex lcd2.hex lcd3.hex \
lcd4.hex lcd5.hex lcd6.hex lcd7.hex lcd8.hex lcd9.hex loop1.hex loop2.hex \
loop3.hex loop4.hex loop5.hex loop6.hex loop7.hex loop8.hex schakel1.hex \
schakel2.hex schakel3.hex schakel4.hex schakel5.hex schakel6.hex schakel7.hex \
schakel8.hex t0000.hex t0001.hex t0002.hex t0003.hex t0004.hex t0005.hex t0006.hex \
t0007.hex t0008.hex t0009.hex t0010.hex t0011.hex t0012.hex t0013.hex t0014.hex t0015.hex \
t0016.hex t0017.hex t0018.hex t0020.hex  t0031.hex t0033.hex \
t0034.hex t0036.hex t0038.hex t0039.hex t0040.hex t0046.hex t0047.hex \
t0048.hex t0049.hex t0050.hex \
t0052.hex t0053.hex t0054.hex t0055.hex t0056.hex t0057.hex t0059.hex \
t0061.hex t0064.hex t0065.hex t0066.hex \
t0075.hex t0076.hex t0077.hex t0078.hex \
t0079.hex t0080.hex t0082.hex t0085.hex t0086.hex t0087.hex \
t0088.hex t0089.hex t0090.hex t0091.hex t0092.hex t0093.hex t0095.hex t0096.hex \
t0098.hex t0100.hex t0101.hex t0102.hex t0103.hex t0104.hex t0105.hex \
t0106.hex t0107.hex t0108.hex t0109.hex t0110.hex t0111.hex t0112.hex t0113.hex \
t0115.hex t0116.hex t0117.hex \
test.hex t0114.hex implicit.jal t0032.hex t0041.hex \
t0131.hex t0132.hex t0099.hex 


FAIL_OBJECTS = t0019.hex t0021.hex t0022.hex t0023.hex t0024.hex \
t0025.hex t0026.hex t0027.hex t0028.hex t0029.hex t0030.hex t0035.hex \
t0037.hex t0042.hex t0043.hex t0044.hex t0045.hex t0051.hex  t0058.hex \
t0060.hex t0062.hex t0063.hex t0081.hex t0083.hex t0084.hex t0094.hex \
t0097.hex 

### wild card.... objects := $(patsubst %.jal,%.hex,$(wildcard *.jal))
### wild card.... all: $(objects) 

all: $(OBJECTS) 


fail: $(FAIL_OBJECTS)
	
%.hex : %.jal
	$(JAL) $(JALFLAGS)  $<

clean:
	rm -f *.hex
	rm -f *~
	rm -f *.asm
	rm -f *.old
	rm -f *.out



