]> git.sur5r.net Git - cc65/blob - libsrc/geos-common/Makefile
Moved the 'disk' files from 'geos-cbm' to 'geos-common' which are believed to work...
[cc65] / libsrc / geos-common / Makefile
1 #
2 # makefile for CC65 runtime library
3 #
4
5 .SUFFIXES: .o .s .c
6
7 #--------------------------------------------------------------------------
8 # Programs and flags
9
10 SYS     = geos-cbm
11
12 AS      = ../../src/ca65/ca65
13 CC      = ../../src/cc65/cc65
14 LD      = ../../src/ld65/ld65
15
16 AFLAGS  = -t $(SYS) --forget-inc-paths -I../$(SYS) -I../../asminc
17 CFLAGS  = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
18
19 #--------------------------------------------------------------------------
20 # Rules
21
22 %.o:    %.c
23         @$(CC) -o $(notdir $(*).s) $(CFLAGS) $<
24         @$(AS) -o $@ $(AFLAGS) $(*).s
25
26 %.o:    %.s
27         @$(AS) -g -o $@ $(AFLAGS) $<
28
29 #--------------------------------------------------------------------------
30 # Directories
31
32 DIRS =  dlgbox          \
33         disk            \
34         file            \
35         graph           \
36         memory          \
37         menuicon        \
38         mousesprite     \
39         process         \
40         runtime         \
41         system
42
43 #--------------------------------------------------------------------------
44 # Directives
45
46 include $(addsuffix /Makefile, $(DIRS))
47 vpath %.c $(DIRS)
48 vpath %.s $(DIRS)
49
50 #--------------------------------------------------------------------------
51 # Targets
52
53 .PHONY: all clean zap
54
55 all:    $(C_OBJS) $(S_OBJS)
56
57 clean:
58         @$(RM) $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
59
60 zap:    clean