2 # gcc Makefile for ld65
5 # Default for the compiler lib search path as compiler define
6 CDEFS=-DCC65_LIB=\"/usr/lib/cc65/lib/\"
7 CFLAGS = -g -O2 -Wall -I../common $(CDEFS)
31 LIBS = ../common/common.a
37 ifeq (.depend,$(wildcard .depend))
42 @$(MAKE) -f make/gcc.mak all
48 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
54 rm -f *.o $(EXECS) .depend
57 # ------------------------------------------------------------------------------
58 # Make the dependencies
61 depend dep: $(OBJS:.o=.c)
62 @echo "Creating dependency information"
63 $(CC) -MM $^ > .depend