]> git.sur5r.net Git - cc65/blob - libsrc/tgi/Makefile
Changed rm -f to $(RM)
[cc65] / libsrc / tgi / Makefile
1 #
2 # Makefile for the TGI graphics kernel
3 #
4
5 .SUFFIXES: .o .s .c
6
7 #--------------------------------------------------------------------------
8 # Rules
9
10 %.o:    %.c
11         @$(CC) $(CFLAGS) $<
12         @$(AS) -g -o $@ $(AFLAGS) $(*).s
13
14 %.o:    %.s
15         @$(AS) -g -o $@ $(AFLAGS) $<
16
17 #--------------------------------------------------------------------------
18 # Object files
19
20 C_OBJS =        tgi_load.o
21
22 S_OBJS =        tgi-kernel.o            \
23                 tgi_bar.o               \
24                 tgi_circle.o            \
25                 tgi_clear.o             \
26                 tgi_curtoxy.o           \
27                 tgi_done.o              \
28                 tgi_emu_bar.o           \
29                 tgi_getcolor.o          \
30                 tgi_getcolorcount.o     \
31                 tgi_getdefpalette.o     \
32                 tgi_geterror.o          \
33                 tgi_getmaxcolor.o       \
34                 tgi_getmaxx.o           \
35                 tgi_getmaxy.o           \
36                 tgi_getpagecount.o      \
37                 tgi_getpalette.o        \
38                 tgi_getpixel.o          \
39                 tgi_getset.o            \
40                 tgi_getxres.o           \
41                 tgi_getyres.o           \
42                 tgi_gotoxy.o            \
43                 tgi_init.o              \
44                 tgi_line.o              \
45                 tgi_linepop.o           \
46                 tgi_lineto.o            \
47                 tgi_map_mode.o          \
48                 tgi_outtext.o           \
49                 tgi_outtextxy.o         \
50                 tgi_popxy.o             \
51                 tgi_popxy2.o            \
52                 tgi_setcolor.o          \
53                 tgi_setdrawpage.o       \
54                 tgi_setpalette.o        \
55                 tgi_setpixel.o          \
56                 tgi_setviewpage.o       \
57                 tgi_textsize.o          \
58                 tgi_textstyle.o         \
59                 tgi_unload.o
60
61
62 #--------------------------------------------------------------------------
63 # Targets
64
65 .PHONY: all clean zap
66
67 all:    $(C_OBJS) $(S_OBJS)
68
69 clean:
70         @$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
71
72 zap:    clean
73