Makefile
changeset 29 453550e69e07
parent 18 79b25e81721f
child 30 5226e512755c
equal deleted inserted replaced
28:51344df466ca 29:453550e69e07
     7 AD_PORT = /dev/ttyUSB0
     7 AD_PORT = /dev/ttyUSB0
     8 
     8 
     9 AD = avrdude
     9 AD = avrdude
    10 ADFLAGS = -p $(AD_PART) -c $(AD_PROG) -b $(AD_BAUD) -P $(AD_PORT)
    10 ADFLAGS = -p $(AD_PART) -c $(AD_PROG) -b $(AD_BAUD) -P $(AD_PORT)
    11 
    11 
    12 PROG = led7seg
    12 PROG = timer
    13 
       
    14 led7seg.hex: spi.inc led7seg.inc adc.inc timer.inc delay.inc
       
    15 
    13 
    16 all: $(PROG).hex
    14 all: $(PROG).hex
       
    15 
       
    16 led7seg.hex: spi.inc led7seg.inc adc.inc timer.inc delay.inc macros.inc
       
    17 timer.hex: timer.inc macros.inc
    17 
    18 
    18 %.hex: %.s
    19 %.hex: %.s
    19 	$(AS) $(ASFLAGS) $<
    20 	$(AS) $(ASFLAGS) $<
    20 	mv $<.hex $@
    21 	mv $<.hex $@
    21 
    22