First version of a module that reads debug files generated by ld65.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4779 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2010-08-03 18:46:50 +00:00
parent e046ecbcf2
commit 54e22eb53c
4 changed files with 1735 additions and 0 deletions

58
src/dbginfo/make/gcc.mak Normal file
View File

@@ -0,0 +1,58 @@
#
# Makefile for debug info test executable
#
# ------------------------------------------------------------------------------
# The executable to build
EXE = dbgtest
#
CC = gcc
CFLAGS = -O2 -g -Wall -W
EBIND = emxbind
LDFLAGS =
# ------------------------------------------------------------------------------
# Object files and libraries to link
OBJS = dbginfo.o \
dbgtest.o
# ------------------------------------------------------------------------------
# Makefile targets
# Main target - must be first
.PHONY: all
ifeq (.depend,$(wildcard .depend))
all: $(EXE)
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
$(EXE): $(OBJS)
$(CC) $(OBJS) $(LDFLAGS) -o $@
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
clean:
$(RM) *~ core.* *.map
zap: clean
$(RM) $(OBJS) $(EXE) .depend
# ------------------------------------------------------------------------------
# Make the dependencies
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -I$(COMMON) -MM $^ > .depend