]> git.sur5r.net Git - cc65/blob - libsrc/tgi/Makefile
Patch by Stefan Haubenthal: Remove __fastcall__ in comments and/or the
[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) --forget-inc-paths -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_arc.o               \
33                 tgi_load_driver.o       \
34                 tgi_load_vectorfont.o   \
35                 tgi_pieslice.o
36
37 S_OBJS =        tgi-kernel.o            \
38                 tgi_bar.o               \
39                 tgi_circle.o            \
40                 tgi_clear.o             \
41                 tgi_clippedline.o       \
42                 tgi_curtoxy.o           \
43                 tgi_done.o              \
44                 tgi_ellipse.o           \
45                 tgi_free_vectorfont.o   \
46                 tgi_getaspectratio.o    \
47                 tgi_getcolor.o          \
48                 tgi_getcolorcount.o     \
49                 tgi_getdefpalette.o     \
50                 tgi_geterror.o          \
51                 tgi_geterrormsg.o       \
52                 tgi_getmaxcolor.o       \
53                 tgi_getmaxx.o           \
54                 tgi_getmaxy.o           \
55                 tgi_getpagecount.o      \
56                 tgi_getpalette.o        \
57                 tgi_getpixel.o          \
58                 tgi_getset.o            \
59                 tgi_gettextheight.o     \
60                 tgi_gettextwidth.o      \
61                 tgi_getxres.o           \
62                 tgi_getyres.o           \
63                 tgi_gotoxy.o            \
64                 tgi_imulround.o         \
65                 tgi_init.o              \
66                 tgi_install_vectorfont.o\
67                 tgi_ioctl.o             \
68                 tgi_line.o              \
69                 tgi_linepop.o           \
70                 tgi_lineto.o            \
71                 tgi_outcode.o           \
72                 tgi_outtext.o           \
73                 tgi_outtextxy.o         \
74                 tgi_popxy.o             \
75                 tgi_popxy2.o            \
76                 tgi_setaspectratio.o    \
77                 tgi_setcolor.o          \
78                 tgi_setdrawpage.o       \
79                 tgi_setpalette.o        \
80                 tgi_setpixel.o          \
81                 tgi_settextdir.o        \
82                 tgi_settextstyle.o      \
83                 tgi_setviewpage.o       \
84                 tgi_unload.o            \
85                 tgi_vectorchar.o
86
87
88 #--------------------------------------------------------------------------
89 # Targets
90
91 .PHONY: all clean zap
92
93 all:    $(C_OBJS) $(S_OBJS)
94
95 clean:
96         @$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
97
98 zap:    clean
99