2 # Makefile for the sp65 sprite and bitmap utility utility
6 # ------------------------------------------------------------------------------
8 # The executable to build
16 CFLAGS = -O2 -g -Wall -W -std=c89
17 override CFLAGS += -I$(COMMON)
22 # -----------------------------------------------------------------------------
23 # List of all object files
42 LIBS = $(COMMON)/common.a
44 # ------------------------------------------------------------------------------
47 # Main target - must be first
49 ifeq (.depend,$(wildcard .depend))
54 @$(MAKE) -f make/gcc.mak all
57 $(EXE): $(OBJS) $(LIBS)
58 $(CC) $(LDFLAGS) $^ -o $@
59 @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
65 $(RM) *.o $(EXE) .depend
67 # ------------------------------------------------------------------------------
68 # Make the dependencies
71 depend dep: $(OBJS:.o=.c)
72 @echo "Creating dependency information"
73 $(CC) $(CFLAGS) -MM $^ > .depend