Files
cc65/src/dbginfo/make/gcc.mak
uz 771695577d Replaced the old dbgtest program by a debug info shell.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5188 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-16 22:37:01 +00:00

63 lines
1.1 KiB
Makefile

#
# Makefile for the debug info test executable
#
# ------------------------------------------------------------------------------
# The executable to build
EXE = dbgsh
# Library dir
COMMON = ../common
#
CC = gcc
CFLAGS = -g -Wall -W -I$(COMMON)
EBIND = emxbind
LDFLAGS =
# ------------------------------------------------------------------------------
# Object files to link
OBJS = dbginfo.o \
dbgsh.o
LIBS = $(COMMON)/common.a
# ------------------------------------------------------------------------------
# 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) $(LIBS)
$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -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) -MM $^ > .depend