Subversion Repositories svn.mios

Rev

Rev 52 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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