Subversion Repositories svn.mios

Rev

Rev 53 | Blame | Compare with Previous | Last modification | View Log | RSS feed

# $Id: Makefile 285 2008-04-23 20:31:07Z tk $

# default flags to GPASM here
GPASM_FLAGS   = 

# include pathes (more will be added by asm_only.mk files)
GPASM_INCLUDE = -I $(MIOS_PATH)/include/asm

# optional defines that should be passed to GPASM
GPASM_DEFINES = 


# default rule that defines the .hex files which should be created
# note: always require a "cleanall", since dependencies (e.g. on .h and .inc files) are not properly declared
all: cleanall bootloader_p18f452.hex bootloader_p18f4620.hex bootloader_p18f4520.hex bootloader_p18f4682.hex bootloader_p18f4685.hex

bootloader_p18f452.hex: main.asm
    gpasm $< $(GPASM_FLAGS) $(GPASM_INCLUDE) $(GPASM_DEFINES) -p 18f452 -o bootloader_p18f452.hex

bootloader_p18f4520.hex: main.asm
    gpasm $< $(GPASM_FLAGS) $(GPASM_INCLUDE) $(GPASM_DEFINES) -p 18f4520 -o bootloader_p18f4520.hex

bootloader_p18f4620.hex: main.asm
    gpasm $< $(GPASM_FLAGS) $(GPASM_INCLUDE) $(GPASM_DEFINES) -p 18f4620 -o bootloader_p18f4620.hex

bootloader_p18f4682.hex: main.asm
    gpasm $< $(GPASM_FLAGS) $(GPASM_INCLUDE) $(GPASM_DEFINES) -p 18f4682 -o bootloader_p18f4682.hex

bootloader_p18f4685.hex: main.asm
    gpasm $< $(GPASM_FLAGS) $(GPASM_INCLUDE) $(GPASM_DEFINES) -p 18f4685 -o bootloader_p18f4685.hex


# include the asm_only.mk file
include $(MIOS_PATH)/include/makefile/asm_only.mk