4
4
# Copyright (C) 2004 Marc Singer
6
6
# This program is free software; you can redistribute it and/or
7
# modify it under the terms of the GNU General Public License as
8
# published by the Free Software Foundation; either version 2 of the
9
# License, or (at your option) any later version.
11
# This program is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with this program; if not, write to the Free Software
18
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
7
# modify it under the terms of the GNU General Public License
8
# version 2 as published by the Free Software Foundation.
9
# Please refer to the file debian/copyright for further details.
22
12
targets += apex.bin apex.srec
24
14
$(obj)/apex.bin: apex FORCE
25
$(call if_changed,objcopy)
15
@$(call if_changed,objcopy)
26
16
@[ -L apex.bin ] || ln -s $@ apex.bin
28
18
$(obj)/apex.bin_swap: $(obj)/apex.bin FORCE
33
23
# *** FIXME: there may need to be an adjustment to the start address
34
24
OBJCOPYFLAGS_apex.srec := -O srec
35
25
$(obj)/apex.srec: apex FORCE
36
$(call if_changed,objcopy)
26
@$(call if_changed,objcopy)
37
27
@[ -L apex.srec ] || ln -s $@ apex.srec
39
29
$(obj)/apex.elf: apex FORCE
41
31
@[ -L apex.elf ] || ln -s $@ apex.elf