]> git.sur5r.net Git - cc65/blob - libsrc/tgi/Makefile
Added tgi_free_vectorfont.s
[cc65] / libsrc / tgi / Makefile
1 #
2 # Makefile for the TGI graphics kernel
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) -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 =        tgi_load.o              \
33                 tgi_load_driver.o
34
35 S_OBJS =        tgi-kernel.o            \
36                 tgi_bar.o               \
37                 tgi_circle.o            \
38                 tgi_clear.o             \
39                 tgi_clipline.o          \
40                 tgi_curtoxy.o           \
41                 tgi_done.o              \
42                 tgi_free_vectorfont.o   \
43                 tgi_getcolor.o          \
44                 tgi_getcolorcount.o     \
45                 tgi_getdefpalette.o     \
46                 tgi_geterror.o          \
47                 tgi_geterrormsg.o       \
48                 tgi_getmaxcolor.o       \
49                 tgi_getmaxx.o           \
50                 tgi_getmaxy.o           \
51                 tgi_getpagecount.o      \
52                 tgi_getpalette.o        \
53                 tgi_getpixel.o          \
54                 tgi_getset.o            \
55                 tgi_getxres.o           \
56                 tgi_getyres.o           \
57                 tgi_gotoxy.o            \
58                 tgi_init.o              \
59                 tgi_ioctl.o             \
60                 tgi_line.o              \
61                 tgi_linepop.o           \
62                 tgi_lineto.o            \
63                 tgi_map_mode.o          \
64                 tgi_outtext.o           \
65                 tgi_outtextxy.o         \
66                 tgi_popxy.o             \
67                 tgi_popxy2.o            \
68                 tgi_setcolor.o          \
69                 tgi_setdrawpage.o       \
70                 tgi_setpalette.o        \
71                 tgi_setpixel.o          \
72                 tgi_setviewpage.o       \
73                 tgi_stddrv.o            \
74                 tgi_stdmode.o           \
75                 tgi_textheight.o        \
76                 tgi_textwidth.o         \
77                 tgi_textstyle.o         \
78                 tgi_unload.o
79
80
81 #--------------------------------------------------------------------------
82 # Targets
83
84 .PHONY: all clean zap
85
86 all:    $(C_OBJS) $(S_OBJS)
87
88 clean:
89         @$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
90
91 zap:    clean
92