5 # ------------------------------------------------------------------------------
7 # The executable to build
14 CFLAGS = -g -O2 -Wall -W -std=c89
15 override CFLAGS += -I$(COMMON)
20 # -----------------------------------------------------------------------------
21 # List of all object files
25 LIBS = $(COMMON)/common.a
27 # ------------------------------------------------------------------------------
30 # Main target - must be first
32 ifeq (.depend,$(wildcard .depend))
37 @$(MAKE) -f make/gcc.mak all
40 $(EXE): $(OBJS) $(LIBS)
41 $(CC) $^ $(LDFLAGS) -o $@
42 @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
48 $(RM) *.o $(EXE) .depend
50 # ------------------------------------------------------------------------------
51 # Make the dependencies
54 depend dep: $(OBJS:.o=.c)
55 @echo "Creating dependency information"
56 $(CC) $(CFLAGS) -MM $^ > .depend