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
43 LIBS = $(COMMON)/common.a
45 # ------------------------------------------------------------------------------
48 # Main target - must be first
50 ifeq (.depend,$(wildcard .depend))
55 @$(MAKE) -f make/gcc.mak all
58 $(EXE): $(OBJS) $(LIBS)
59 $(CC) $(LDFLAGS) $^ -o $@
60 @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
66 $(RM) *.o $(EXE) .depend
68 # ------------------------------------------------------------------------------
69 # Make the dependencies
72 depend dep: $(OBJS:.o=.c)
73 @echo "Creating dependency information"
74 $(CC) $(CFLAGS) -MM $^ > .depend