Subversion Repositories svn.mios

Rev

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

Rev Author Line No. Line
46 tk 1
# $Id: Makefile 285 2008-04-23 20:31:07Z tk $
1 tk 2
 
46 tk 3
# default flags to GPASM here
4
GPASM_FLAGS   =
5
 
6
# include pathes (more will be added by asm_only.mk files)
7
GPASM_INCLUDE = -I $(MIOS_PATH)/include/asm
8
 
9
# optional defines that should be passed to GPASM
10
GPASM_DEFINES =
11
 
12
 
13
# default rule that defines the .hex files which should be created
14
# note: always require a "cleanall", since dependencies (e.g. on .h and .inc files) are not properly declared
1 tk 15
all: cleanall bootloader_p18f452.hex bootloader_p18f4620.hex bootloader_p18f4520.hex bootloader_p18f4682.hex bootloader_p18f4685.hex
16
 
17
bootloader_p18f452.hex: main.asm
46 tk 18
	gpasm $< $(GPASM_FLAGS) $(GPASM_INCLUDE) $(GPASM_DEFINES) -p 18f452 -o bootloader_p18f452.hex
1 tk 19
 
20
bootloader_p18f4520.hex: main.asm
46 tk 21
	gpasm $< $(GPASM_FLAGS) $(GPASM_INCLUDE) $(GPASM_DEFINES) -p 18f4520 -o bootloader_p18f4520.hex
1 tk 22
 
23
bootloader_p18f4620.hex: main.asm
46 tk 24
	gpasm $< $(GPASM_FLAGS) $(GPASM_INCLUDE) $(GPASM_DEFINES) -p 18f4620 -o bootloader_p18f4620.hex
1 tk 25
 
26
bootloader_p18f4682.hex: main.asm
46 tk 27
	gpasm $< $(GPASM_FLAGS) $(GPASM_INCLUDE) $(GPASM_DEFINES) -p 18f4682 -o bootloader_p18f4682.hex
1 tk 28
 
29
bootloader_p18f4685.hex: main.asm
46 tk 30
	gpasm $< $(GPASM_FLAGS) $(GPASM_INCLUDE) $(GPASM_DEFINES) -p 18f4685 -o bootloader_p18f4685.hex
1 tk 31
 
32
 
46 tk 33
# include the asm_only.mk file
34
include $(MIOS_PATH)/include/makefile/asm_only.mk