]> git.sur5r.net Git - cc65/blob - libsrc/tgi/Makefile
More work on the graphics subsystem
[cc65] / libsrc / tgi / Makefile
1 #
2 # Makefile for the TGI graphics kernel
3 #
4
5 .SUFFIXES: .o .s .c
6
7 %.o:    %.c
8         @$(CC) $(CFLAGS) $<
9         @$(AS) -g -o $@ $(AFLAGS) $(*).s
10
11 %.o:    %.s
12         @$(AS) -g -o $@ $(AFLAGS) $<
13
14 C_OBJS =        tgi_load.o
15
16 S_OBJS =        tgi-kernel.o            \
17                 tgi_bar.o               \
18                 tgi_circle.o            \
19                 tgi_clear.o             \
20                 tgi_done.o              \
21                 tgi_emu_bar.o           \
22                 tgi_getcolor.o          \
23                 tgi_getcolorcount.o     \
24                 tgi_getdefpalette.o     \
25                 tgi_geterror.o          \
26                 tgi_getmaxcolor.o       \
27                 tgi_getmaxx.o           \
28                 tgi_getmaxy.o           \
29                 tgi_getpagecount.o      \
30                 tgi_getpalette.o        \
31                 tgi_getpixel.o          \
32                 tgi_getset.o            \
33                 tgi_getxres.o           \
34                 tgi_getyres.o           \
35                 tgi_gotoxy.o            \
36                 tgi_init.o              \
37                 tgi_line.o              \
38                 tgi_linepop.o           \
39                 tgi_lineto.o            \
40                 tgi_map_mode.o          \
41                 tgi_setcolor.o          \
42                 tgi_setdrawpage.o       \
43                 tgi_setpalette.o        \
44                 tgi_setpixel.o          \
45                 tgi_setdrawpage.o       \
46                 tgi_unload.o
47
48
49 all:    $(C_OBJS) $(S_OBJS)
50
51 clean:
52         @rm -f *~
53         @rm -f $(C_OBJS:.o=.s)
54         @rm -f $(C_OBJS)
55         @rm -f $(S_OBJS)
56