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