]> git.sur5r.net Git - cc65/blob - libsrc/mouse/Makefile
Changed the mouse API: mouse_box is gone, there are now mouse_getbox and
[cc65] / libsrc / mouse / Makefile
1 #
2 # Makefile for the mouse driver library
3 #
4
5 .SUFFIXES: .o .s .c
6
7 #--------------------------------------------------------------------------
8 # Programs and flags
9
10 SYS     = none
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../../asminc       
17 CFLAGS  = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
18
19 #--------------------------------------------------------------------------
20 # Rules
21
22 %.o:    %.c
23         @$(CC) $(CFLAGS) $<
24         @$(AS) -g -o $@ $(AFLAGS) $(*).s
25
26 %.o:    %.s
27         @$(AS) -g -o $@ $(AFLAGS) $<
28
29 #--------------------------------------------------------------------------
30 # Object files
31
32 C_OBJS =
33
34 S_OBJS =        mouse-kernel.o          \
35                 mouse_buttons.o         \
36                 mouse_getbox.o          \
37                 mouse_geterrormsg.o     \
38                 mouse_hide.o            \
39                 mouse_info.o            \
40                 mouse_ioctl.o           \
41                 mouse_load.o            \
42                 mouse_move.o            \
43                 mouse_pos.o             \
44                 mouse_setbox.o          \
45                 mouse_show.o            \
46                 mouse_unload.o
47
48 #--------------------------------------------------------------------------
49 # Targets
50
51 .PHONY: all clean zap
52
53 all:    $(C_OBJS) $(S_OBJS)
54
55 clean:
56         @$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
57
58 zap:    clean
59