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 $(CDEFS)
32 LIBS = ../common/common.a
38 ifeq (.depend,$(wildcard .depend))
43 @$(MAKE) -f make/gcc.mak all
49 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
55 rm -f *.o $(EXECS) .depend
58 # ------------------------------------------------------------------------------
59 # Make the dependencies
62 depend dep: $(OBJS:.o=.c)
63 @echo "Creating dependency information"
64 $(CC) -MM $^ > .depend