2 # gcc Makefile for ca65
8 CFLAGS = -g -O2 -Wall -W -I$(COMMON)
52 LIBS = $(COMMON)/common.a
57 ifeq (.depend,$(wildcard .depend))
62 @$(MAKE) -f make/gcc.mak all
68 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
69 @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
75 rm -f *.o $(EXECS) .depend
77 # ------------------------------------------------------------------------------
78 # Make the dependencies
81 depend dep: $(OBJS:.o=.c)
82 @echo "Creating dependency information"
83 $(CC) -I$(COMMON) -MM $^ > .depend