2 # makefile for CC65 runtime library
7 #--------------------------------------------------------------------------
12 AS = ../../src/ca65/ca65
13 CC = ../../src/cc65/cc65
14 LD = ../../src/ld65/ld65
16 AFLAGS = -t $(SYS) --forget-inc-paths -I../$(SYS) -I../../asminc
17 CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
19 #--------------------------------------------------------------------------
23 @$(CC) -o $(notdir $(*).s) $(CFLAGS) $<
24 @$(AS) -o $@ $(AFLAGS) $(*).s
27 @$(AS) -g -o $@ $(AFLAGS) $<
29 #--------------------------------------------------------------------------
38 #--------------------------------------------------------------------------
41 include $(addsuffix /Makefile, $(DIRS))
45 #--------------------------------------------------------------------------
50 all: $(C_OBJS) $(S_OBJS)
53 @$(RM) $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)