]> git.sur5r.net Git - cc65/blob - libsrc/geos-common/Makefile
Moved the 'file' 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         file
34
35 #--------------------------------------------------------------------------
36 # Directives
37
38 include $(addsuffix /Makefile, $(DIRS))
39 vpath %.c $(DIRS)
40 vpath %.s $(DIRS)
41
42 #--------------------------------------------------------------------------
43 # Targets
44
45 .PHONY: all clean zap
46
47 all:    $(C_OBJS) $(S_OBJS)
48
49 clean:
50         @$(RM) $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
51
52 zap:    clean