1 ## -----------------------------------------------------------------------
3 ## Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 ## Boston MA 02111-1307, USA; either version 2 of the License, or
9 ## (at your option) any later version; incorporated herein by reference.
11 ## -----------------------------------------------------------------------
14 ## memory dump utility
18 include $(topdir
)/MCONFIG.embedded
21 INCLUDES
= -include code16.h
-I.
24 SRCS
= main.c serial.c ymsend.c srecsend.c
25 OBJS
= crt0.o
$(patsubst %.c
,%.o
,$(notdir $(SRCS
)))
26 LIBOBJS
= conio.o memcpy.o memset.o skipatou.o strtoul.o \
27 argv.o printf.o __divdi3.o __udivmoddi4.o
29 .SUFFIXES
: .c .o .i .s .S .elf .com
36 -rm -f
*.o
*.i
*.s
*.a .
*.d
*.tmp
*.elf
45 memdump.elf
: $(OBJS
) libcom.a
46 $(LD
) $(LDFLAGS
) -o
$@
$^
53 memdump.com
: memdump.elf
54 $(OBJCOPY
) -O binary
$< $@
57 $(CC
) $(MAKEDEPS
) $(CFLAGS
) -c
-o
$@
$<
59 $(CC
) $(MAKEDEPS
) $(CFLAGS
) -E
-o
$@
$<
61 $(CC
) $(MAKEDEPS
) $(CFLAGS
) -S
-o
$@
$<
63 $(CC
) $(MAKEDEPS
) $(SFLAGS
) -c
-o
$@
$<
65 $(CC
) $(MAKEDEPS
) $(SFLAGS
) -E
-o
$@
$<