13 # Set the required model here, either s, c or l (LOWER CASE ONLY)
\r
19 # Set the compiler: either BCC or TCC
\r
24 AFLAGS = -0 -m$(MODEL)
\r
26 CPPFLAGS= -0 -m$(MODEL)
\r
27 LDFLAGS = -0 -m$(MODEL)
\r
30 # $(CC) -c $(CFLAGS) $<
\r
32 # $*$(OBJ).asm#: $*.asm#
\r
33 # wasm $(AFLAGS) $* \
\r
35 EXEC=demo1.exe demo2.exe demo3.exe demo4.exe demo5.exe demo6.exe demo7.exe demo8.exe# demo9.exe demo10.exe
\r
36 XLIBOBJS= xprintf.$(OBJ) xpoint.$(OBJ) xline.$(OBJ) xmain.$(OBJ) xpal.$(OBJ) xpbitmap.$(OBJ) xrect.$(OBJ) xtext.$(OBJ) xcbitmap.$(OBJ) xdetect.$(OBJ) xbmtools.$(OBJ) xfileio.$(OBJ) xrletool.$(OBJ) xbezier.$(OBJ) xpbmclip.$(OBJ) xvbitmap.$(OBJ) xmakevbm.$(OBJ) xmouse.$(OBJ) xcircle.$(OBJ) xclippbm.$(OBJ) xcomppbm.$(OBJ) xpolygon.$(OBJ) xvsync.$(OBJ) xfill.$(OBJ) xcbitm32.$(OBJ)
\r
38 all: $(XLIBOBJS) $(EXEC)
\r
40 demo1.exe : demo1.$(OBJ) $(XLIBOBJS) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
41 $(CC) $(CFLAGS) demo1.$(OBJ) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
43 demo2.exe : demo2.$(OBJ) $(XLIBOBJS) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
44 $(CC) $(CFLAGS) demo2.$(OBJ) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
46 demo3.exe : demo3.$(OBJ) $(XLIBOBJS) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
47 $(CC) $(CFLAGS) demo3.$(OBJ) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
49 demo4.exe : demo4.$(OBJ) $(XLIBOBJS) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
50 $(CC) $(CFLAGS) demo4.$(OBJ) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
52 demo5.exe : demo5.$(OBJ) $(XLIBOBJS) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
53 $(CC) $(CFLAGS) demo5.$(OBJ) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
55 demo6.exe : demo6.$(OBJ) $(XLIBOBJS) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
56 $(CC) $(CFLAGS) demo6.$(OBJ) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
58 demo7.exe : demo7.$(OBJ) $(XLIBOBJS) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
59 $(CC) $(CFLAGS) demo7.$(OBJ) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
61 demo8.exe : demo8.$(OBJ) $(XLIBOBJS) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
62 $(CC) $(CFLAGS) demo8.$(OBJ) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
64 demo9.exe : demo9.$(OBJ) $(XLIBOBJS) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
65 $(CC) $(CFLAGS) demo9.$(OBJ) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
67 demo10.exe : demo10.$(OBJ) $(XLIBOBJS) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
68 $(CC) $(CFLAGS) demo10.$(OBJ) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib
\r
71 # executable objects
\r
73 demo1.$(OBJ) : demo1.c
\r
74 $(CC) -c $(CFLAGS) demo1.c
\r
75 demo2.$(OBJ) : demo2.c
\r
76 $(CC) -c $(CFLAGS) demo2.c
\r
77 demo3.$(OBJ) : demo3.c
\r
78 $(CC) -c $(CFLAGS) demo3.c
\r
79 demo4.$(OBJ) : demo4.c
\r
80 $(CC) -c $(CFLAGS) demo4.c
\r
81 demo5.$(OBJ) : demo5.c
\r
82 $(CC) -c $(CFLAGS) demo5.c
\r
83 demo6.$(OBJ) : demo6.c
\r
84 $(CC) -c $(CFLAGS) demo6.c
\r
85 demo7.$(OBJ) : demo7.c
\r
86 $(CC) -c $(CFLAGS) demo7.c
\r
87 demo8.$(OBJ) : demo8.c
\r
88 $(CC) -c $(CFLAGS) demo8.c
\r
89 # demo9.$(OBJ) : demo9.c
\r
90 # $(CC) -c $(CFLAGS) demo9.c
\r
91 # demo10.$(OBJ) : demo10.c
\r
92 # $(CC) -c $(CFLAGS) demo10.c
\r
94 #$(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib: $(XLIBOBJS)
\r
95 # $(LIB) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib \
\r
96 # -+xmain -+xpoint -+xline -+xpal -+xrect -+xtext -+xprintf -+xbezier -+xfill -+xcbitm32
\r
97 # $(LIB) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib \
\r
98 # -+xpbitmap -+xcbitmap -+xdetect -+xbmtools -+xfileio -+xrletool -+xpbmclip
\r
99 # $(LIB) $(XLIBOBJS)#xlib$(XLIB_VERSION)$(MODEL).lib \
\r
100 # -+xvbitmap -+xmakevbm -+xmouse -+xcircle -+xclippbm -+xcomppbm -+xpolygon -+xvsync
\r
103 xprintf.$(OBJ) : xprintf.c
\r
104 $(CC) -c $(CFLAGS) xprintf.c
\r
106 xpoint.$(OBJ) : xpoint.asm## xpoint.inc xlib.inc model.inc
\r
107 $(CC) -c $(CFLAGS) xpoint.asm## xpoint.inc xlib.inc model.inc
\r
108 xline.$(OBJ) : xline.asm# xline.inc xlib.inc model.inc
\r
109 $(CC) -c $(CFLAGS) xline.asm# xline.inc xlib.inc model.inc
\r
110 xmain.$(OBJ): xmain.asm# xmain.inc xlib.inc model.inc
\r
111 $(CC) -c $(CFLAGS) xmain.asm# xmain.inc xlib.inc model.inc
\r
112 xpal.$(OBJ) : xpal.asm# xpal.inc xlib.inc model.inc
\r
113 $(CC) -c $(CFLAGS) xpal.asm# xpal.inc xlib.inc model.inc
\r
114 xpbitmap.$(OBJ): xpbitmap.asm# xpbitmap.inc xlib.inc model.inc
\r
115 $(CC) -c $(CFLAGS) xpbitmap.asm# xpbitmap.inc xlib.inc model.inc
\r
116 xpbmclip.$(OBJ): xpbmclip.asm# xpbmclip.inc xlib.inc model.inc
\r
117 $(CC) -c $(CFLAGS) xpbmclip.asm# xpbmclip.inc xlib.inc model.inc
\r
118 xclippbm.$(OBJ): xclippbm.asm# xclippbm.inc xlib.inc model.inc
\r
119 $(CC) -c $(CFLAGS) xclippbm.asm# xclippbm.inc xlib.inc model.inc
\r
120 xrect.$(OBJ): xpal.asm# xpal.inc xlib.inc model.inc
\r
121 $(CC) -c $(CFLAGS) xpal.asm# xpal.inc xlib.inc model.inc
\r
122 xtext.$(OBJ): xtext.asm# xtext.inc xlib.inc model.inc
\r
123 $(CC) -c $(CFLAGS) xtext.asm# xtext.inc xlib.inc model.inc
\r
124 xcbitmap.$(OBJ): xcbitmap.asm# xcbitmap.inc xlib.inc model.inc
\r
125 $(CC) -c $(CFLAGS) xcbitmap.asm# xcbitmap.inc xlib.inc model.inc
\r
126 xcomppbm.$(OBJ): xcomppbm.asm# xcomppbm.inc xlib.inc model.inc
\r
127 $(CC) -c $(CFLAGS) xcomppbm.asm# xcomppbm.inc xlib.inc model.inc
\r
128 xcbitm32.$(OBJ): xcbitm32.c
\r
129 $(CC) -c $(CFLAGS) xcbitm32.c
\r
130 xdetect.$(OBJ) : xdetect.asm# xdetect.inc model.inc
\r
131 $(CC) -c $(CFLAGS) xdetect.asm# xdetect.inc model.inc
\r
132 xbmtools.$(OBJ): xbmtools.asm# xbmtools.inc model.inc
\r
133 $(CC) -c $(CFLAGS) xbmtools.asm# xbmtools.inc model.inc
\r
134 xfileio.$(OBJ) : xfileio.asm# xfileio.inc model.inc
\r
135 $(CC) -c $(CFLAGS) xfileio.asm# xfileio.inc model.inc
\r
136 xrletool.$(OBJ): xrletool.asm# xrletool.inc model.inc
\r
137 $(CC) -c $(CFLAGS) xrletool.asm# xrletool.inc model.inc
\r
138 xvbitmap.$(OBJ): xvbitmap.asm# xvbitmap.inc xlib.inc model.inc
\r
139 $(CC) -c $(CFLAGS) xvbitmap.asm# xvbitmap.inc xlib.inc model.inc
\r
140 xmakevbm.$(OBJ): xmakevbm.c xvbitmap.h
\r
141 $(CC) -c $(CFLAGS) xmakevbm.c xvbitmap.h
\r
142 xmouse.$(OBJ) : xmouse.asm# xlib.inc model.inc
\r
143 $(CC) -c $(CFLAGS) xmouse.asm# xlib.inc model.inc
\r
144 xcircle.$(OBJ) : xcircle.asm# xcircle.inc xlib.inc model.inc
\r
145 $(CC) -c $(CFLAGS) xcircle.asm# xcircle.inc xlib.inc model.inc
\r
146 xpolygon.$(OBJ): xpolygon.asm# xpolygon.inc xlib.inc model.inc
\r
147 $(CC) -c $(CFLAGS) xpolygon.asm# xpolygon.inc xlib.inc model.inc
\r
148 xvsync.$(OBJ) : xvsync.asm# xvsync.inc xlib.inc model.inc
\r
149 $(CC) -c $(CFLAGS) xvsync.asm# xvsync.inc xlib.inc model.inc
\r
150 xfill.$(OBJ) : xfill.asm# xfill.inc xlib.inc model.inc
\r
151 $(CC) -c $(CFLAGS) xfill.asm# xfill.inc xlib.inc model.inc
\r
153 xbezier.$(OBJ): xbezier.asm
\r
154 $(CC) -c $(CFLAGS) xbezier.asm
\r
160 @$(REMOVECOMMAND) $(EXEC)
\r
161 @$(REMOVECOMMAND) *.$(OBJ)
\r