# # 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