2 # Makefile for the cl65 compile&link utility
8 # Type of spawn function to use
13 CFLAGS = -O2 -g -Wall -W -I$(COMMON) -D$(SPAWN)
21 LIBS = $(COMMON)/common.a
27 ifeq (.depend,$(wildcard .depend))
32 @$(MAKE) -f make/gcc.mak all
37 $(CC) $(LDFLAGS) -o cl65 $(OBJS) $(LIBS)
38 @if [ $(OS2_SHELL) ] ; then $(EBIND) cl65 ; fi
44 $(RM) *.o $(EXECS) .depend
47 # ------------------------------------------------------------------------------
48 # Make the dependencies
51 depend dep: $(OBJS:.o=.c)
52 @echo "Creating dependency information"
53 $(CC) -I$(COMMON) -D$(SPAWN) -MM $^ > .depend