]> git.sur5r.net Git - cc65/blob - libsrc/tgi/Makefile
85fdfa031cf53fb7c647cd306209035c72c2ab4b
[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_getcolorcount.o     \
23                 tgi_geterror.o          \
24                 tgi_getmaxcolor.o       \
25                 tgi_getmaxx.o           \
26                 tgi_getmaxy.o           \
27                 tgi_getpixel.o          \
28                 tgi_getxres.o           \
29                 tgi_getyres.o           \
30                 tgi_init.o              \
31                 tgi_line.o              \
32                 tgi_map_mode.o          \
33                 tgi_setcolor.o          \
34                 tgi_setdrawpage.o       \
35                 tgi_setpixel.o          \
36                 tgi_setdrawpage.o       \
37                 tgi_unload.o
38
39
40 all:    $(C_OBJS) $(S_OBJS)
41
42 clean:
43         @rm -f *~
44         @rm -f $(C_OBJS:.o=.s)
45         @rm -f $(C_OBJS)
46         @rm -f $(S_OBJS)
47