diff --git a/Makefile b/Makefile index 925162d..cf2bde8 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ OBJ := $(patsubst src/%.c, obj/%.rel, $(SRC)) .PHONY: all clean -all: uart_temp.hex +all: main.hex clean: -$(RM) obj\* @@ -46,11 +46,11 @@ $(OBJ):obj/%.rel:src/%.c $(TARGET): $(OBJ) -$(CC) $^ -o $@ -uart_temp.hex: $(TARGET) - -$(PACKIHX) $(TARGET) > uart_temp.hex +main.hex: $(TARGET) + -$(PACKIHX) $(TARGET) > main.hex flash: - -stcgal -P stc89 -p $(COM) uart_temp.hex + -stcgal -P stc89 -p $(COM) main.hex #led.bin:led.hex # objcopy -I ihex -O binary led.hex led.bin