2 # Makefile for debug info test executable
8 # ------------------------------------------------------------------------------
10 # The executable to build
15 CFLAGS = -O2 -g -Wall -W
19 # ------------------------------------------------------------------------------
20 # Object files and libraries to link
26 # ------------------------------------------------------------------------------
29 # Main target - must be first
31 ifeq (.depend,$(wildcard .depend))
36 @$(MAKE) -f make/gcc.mak all
40 $(CC) $(OBJS) $(LDFLAGS) -o $@
41 @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
47 $(RM) $(OBJS) $(EXE) .depend
49 # ------------------------------------------------------------------------------
50 # Make the dependencies
53 depend dep: $(OBJS:.o=.c)
54 @echo "Creating dependency information"
55 $(CC) -I$(COMMON) -MM $^ > .depend