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
44 LIBS = $(COMMON)/common.a
46 # ------------------------------------------------------------------------------
49 # Main target - must be first
51 ifeq (.depend,$(wildcard .depend))
56 @$(MAKE) -f make/gcc.mak all
59 $(EXE): $(OBJS) $(LIBS)
60 $(CC) $(LDFLAGS) $^ -o $@
61 @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
67 $(RM) *.o $(EXE) .depend
69 # ------------------------------------------------------------------------------
70 # Make the dependencies
73 depend dep: $(OBJS:.o=.c)
74 @echo "Creating dependency information"
75 $(CC) $(CFLAGS) -MM $^ > .depend