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
41 LIBS = $(COMMON)/common.a
43 # ------------------------------------------------------------------------------
46 # Main target - must be first
48 ifeq (.depend,$(wildcard .depend))
53 @$(MAKE) -f make/gcc.mak all
56 $(EXE): $(OBJS) $(LIBS)
57 $(CC) $(LDFLAGS) $^ -o $@
58 @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
64 $(RM) *.o $(EXE) .depend
66 # ------------------------------------------------------------------------------
67 # Make the dependencies
70 depend dep: $(OBJS:.o=.c)
71 @echo "Creating dependency information"
72 $(CC) $(CFLAGS) -MM $^ > .depend