From 7715e45af4c17c61b84c965df1590222d559145e Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Wed, 14 Sep 2011 16:11:47 +1200 Subject: [PATCH] Restructuring: move file format implementations to formats/ --- Makefile | 16 ++++++++-------- binfile.c => formats/binfile.c | 0 binfile.h => formats/binfile.h | 0 coff.c => formats/coff.c | 0 coff.h => formats/coff.h | 0 elf32.c => formats/elf32.c | 0 elf32.h => formats/elf32.h | 0 elf_format.h => formats/elf_format.h | 0 ihex.c => formats/ihex.c | 0 ihex.h => formats/ihex.h | 0 srec.c => formats/srec.c | 0 srec.h => formats/srec.h | 0 symmap.c => formats/symmap.c | 0 symmap.h => formats/symmap.h | 0 titext.c => formats/titext.c | 0 titext.h => formats/titext.h | 0 16 files changed, 8 insertions(+), 8 deletions(-) rename binfile.c => formats/binfile.c (100%) rename binfile.h => formats/binfile.h (100%) rename coff.c => formats/coff.c (100%) rename coff.h => formats/coff.h (100%) rename elf32.c => formats/elf32.c (100%) rename elf32.h => formats/elf32.h (100%) rename elf_format.h => formats/elf_format.h (100%) rename ihex.c => formats/ihex.c (100%) rename ihex.h => formats/ihex.h (100%) rename srec.c => formats/srec.c (100%) rename srec.h => formats/srec.h (100%) rename symmap.c => formats/symmap.c (100%) rename symmap.h => formats/symmap.h (100%) rename titext.c => formats/titext.c (100%) rename titext.h => formats/titext.h (100%) diff --git a/Makefile b/Makefile index 403b15a..99d8df1 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ else BINARY = mspdebug endif -INCLUDES = -I. -Isimio +INCLUDES = -I. -Isimio -Iformats GCC_CFLAGS = -O1 -Wall -Wno-char-subscripts -ggdb $(INCLUDES) MSPDEBUG_LDFLAGS = $(LDFLAGS) $(PORTS_LDFLAGS) @@ -81,13 +81,10 @@ OBJ=\ dis.o \ uif.o \ olimex.o \ - ihex.o \ - elf32.o \ stab.o \ util.o \ bsl.o \ sim.o \ - symmap.o \ gdb.o \ btree.o \ rtools.o \ @@ -98,13 +95,9 @@ OBJ=\ output_util.o \ expr.o \ fet_error.o \ - binfile.o \ fet_db.o \ usbutil.o \ - titext.o \ - srec.o \ device.o \ - coff.o \ opdb.o \ output.o \ cmddb.o \ @@ -112,6 +105,13 @@ OBJ=\ prog.o \ flash_bsl.o \ list.o \ + formats/binfile.o \ + formats/coff.o \ + formats/elf32.o \ + formats/ihex.o \ + formats/symmap.o \ + formats/srec.o \ + formats/titext.o \ simio/simio.o \ simio/simio_tracer.o \ simio/simio_timer.o \ diff --git a/binfile.c b/formats/binfile.c similarity index 100% rename from binfile.c rename to formats/binfile.c diff --git a/binfile.h b/formats/binfile.h similarity index 100% rename from binfile.h rename to formats/binfile.h diff --git a/coff.c b/formats/coff.c similarity index 100% rename from coff.c rename to formats/coff.c diff --git a/coff.h b/formats/coff.h similarity index 100% rename from coff.h rename to formats/coff.h diff --git a/elf32.c b/formats/elf32.c similarity index 100% rename from elf32.c rename to formats/elf32.c diff --git a/elf32.h b/formats/elf32.h similarity index 100% rename from elf32.h rename to formats/elf32.h diff --git a/elf_format.h b/formats/elf_format.h similarity index 100% rename from elf_format.h rename to formats/elf_format.h diff --git a/ihex.c b/formats/ihex.c similarity index 100% rename from ihex.c rename to formats/ihex.c diff --git a/ihex.h b/formats/ihex.h similarity index 100% rename from ihex.h rename to formats/ihex.h diff --git a/srec.c b/formats/srec.c similarity index 100% rename from srec.c rename to formats/srec.c diff --git a/srec.h b/formats/srec.h similarity index 100% rename from srec.h rename to formats/srec.h diff --git a/symmap.c b/formats/symmap.c similarity index 100% rename from symmap.c rename to formats/symmap.c diff --git a/symmap.h b/formats/symmap.h similarity index 100% rename from symmap.h rename to formats/symmap.h diff --git a/titext.c b/formats/titext.c similarity index 100% rename from titext.c rename to formats/titext.c diff --git a/titext.h b/formats/titext.h similarity index 100% rename from titext.h rename to formats/titext.h