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
37 LIBS = $(COMMON)/common.a
39 # ------------------------------------------------------------------------------
42 # Main target - must be first
44 ifeq (.depend,$(wildcard .depend))
49 @$(MAKE) -f make/gcc.mak all
52 $(EXE): $(OBJS) $(LIBS)
53 $(CC) $(LDFLAGS) $^ -o $@
54 @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
60 $(RM) *.o $(EXE) .depend
62 # ------------------------------------------------------------------------------
63 # Make the dependencies
66 depend dep: $(OBJS:.o=.c)
67 @echo "Creating dependency information"
68 $(CC) $(CFLAGS) -MM $^ > .depend