]> git.sur5r.net Git - cc65/blob - libsrc/tgi/Makefile
Start of TGI changes. Untested, may not work.
[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_getcolor.o          \
43                 tgi_getcolorcount.o     \
44                 tgi_getdefpalette.o     \
45                 tgi_geterror.o          \
46                 tgi_geterrormsg.o       \
47                 tgi_getmaxcolor.o       \
48                 tgi_getmaxx.o           \
49                 tgi_getmaxy.o           \
50                 tgi_getpagecount.o      \
51                 tgi_getpalette.o        \
52                 tgi_getpixel.o          \
53                 tgi_getset.o            \
54                 tgi_getxres.o           \
55                 tgi_getyres.o           \
56                 tgi_gotoxy.o            \
57                 tgi_init.o              \
58                 tgi_ioctl.o             \
59                 tgi_line.o              \
60                 tgi_linepop.o           \
61                 tgi_lineto.o            \
62                 tgi_map_mode.o          \
63                 tgi_outtext.o           \
64                 tgi_outtextxy.o         \
65                 tgi_popxy.o             \
66                 tgi_popxy2.o            \
67                 tgi_setcolor.o          \
68                 tgi_setdrawpage.o       \
69                 tgi_setpalette.o        \
70                 tgi_setpixel.o          \
71                 tgi_setviewpage.o       \
72                 tgi_stddrv.o            \
73                 tgi_stdmode.o           \
74                 tgi_textheight.o        \
75                 tgi_textwidth.o         \
76                 tgi_textstyle.o         \
77                 tgi_unload.o
78
79
80 #--------------------------------------------------------------------------
81 # Targets
82
83 .PHONY: all clean zap
84
85 all:    $(C_OBJS) $(S_OBJS)
86
87 clean:
88         @$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
89
90 zap:    clean
91