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