| 1 |
# |
| 2 |
# Makefile for AmigaOS 4.0 |
| 3 |
# |
| 4 |
|
| 5 |
CXX = g++ |
| 6 |
CXXFLAGS = -mcrt=clib2 -O3 -Iinclude -Igpc -Ifont_freetype |
| 7 |
CXXLIBS = -Llib -lagg |
| 8 |
CC = gcc |
| 9 |
CFLAGS = -mcrt=clib2 -O3 -Igpc |
| 10 |
AR = ar |
| 11 |
ARFLAGS = cr |
| 12 |
STRIP = strip -R.comment |
| 13 |
|
| 14 |
LIBNAME = lib/libagg.a |
| 15 |
SVGNAME = bin/svg_test |
| 16 |
|
| 17 |
EXAMPLES =\ |
| 18 |
bin/aa_demo \ |
| 19 |
bin/aa_test \ |
| 20 |
bin/alpha_gradient \ |
| 21 |
bin/alpha_mask \ |
| 22 |
bin/alpha_mask2 \ |
| 23 |
bin/alpha_mask3 \ |
| 24 |
bin/bezier_div \ |
| 25 |
bin/bspline \ |
| 26 |
bin/circles \ |
| 27 |
bin/component_rendering \ |
| 28 |
bin/compositing \ |
| 29 |
bin/compositing2 \ |
| 30 |
bin/conv_contour \ |
| 31 |
bin/conv_dash_marker \ |
| 32 |
bin/conv_stroke \ |
| 33 |
bin/distortions \ |
| 34 |
bin/flash_rasterizer \ |
| 35 |
bin/flash_rasterizer2 \ |
| 36 |
bin/gamma_correction \ |
| 37 |
bin/gamma_ctrl \ |
| 38 |
bin/gamma_tuner \ |
| 39 |
bin/gouraud \ |
| 40 |
bin/gouraud_mesh \ |
| 41 |
bin/gpc_test \ |
| 42 |
bin/gradients \ |
| 43 |
bin/graph_test \ |
| 44 |
bin/idea \ |
| 45 |
bin/image_alpha \ |
| 46 |
bin/image_filters \ |
| 47 |
bin/image_filters2 \ |
| 48 |
bin/image_fltr_graph \ |
| 49 |
bin/image_perspective \ |
| 50 |
bin/image_resample \ |
| 51 |
bin/image_transforms \ |
| 52 |
bin/image1 \ |
| 53 |
bin/line_patterns_clip \ |
| 54 |
bin/line_patterns \ |
| 55 |
bin/lion \ |
| 56 |
bin/lion_lens \ |
| 57 |
bin/lion_outline \ |
| 58 |
bin/mol_view \ |
| 59 |
bin/multi_clip \ |
| 60 |
bin/pattern_fill \ |
| 61 |
bin/pattern_perspective \ |
| 62 |
bin/pattern_resample \ |
| 63 |
bin/perspective \ |
| 64 |
bin/polymorphic_renderer \ |
| 65 |
bin/raster_text \ |
| 66 |
bin/rasterizers \ |
| 67 |
bin/rasterizers2 \ |
| 68 |
bin/rounded_rect \ |
| 69 |
bin/scanline_boolean \ |
| 70 |
bin/scanline_boolean2 \ |
| 71 |
bin/simple_blur \ |
| 72 |
bin/trans_polar |
| 73 |
|
| 74 |
FREETYPE_EXAMPLES=\ |
| 75 |
bin/freetype_test \ |
| 76 |
bin/trans_curve1_ft \ |
| 77 |
bin/trans_curve2_ft |
| 78 |
|
| 79 |
PLATFORM_SRC=\ |
| 80 |
src/platform/AmigaOS/agg_platform_support.cpp |
| 81 |
|
| 82 |
FREETYPE_SRC=\ |
| 83 |
font_freetype/agg_font_freetype.cpp |
| 84 |
|
| 85 |
LIB_CXXSRC=\ |
| 86 |
src/agg_arc.cpp \ |
| 87 |
src/agg_arrowhead.cpp \ |
| 88 |
src/agg_bezier_arc.cpp \ |
| 89 |
src/agg_bspline.cpp \ |
| 90 |
src/agg_curves.cpp \ |
| 91 |
src/agg_embedded_raster_fonts.cpp \ |
| 92 |
src/agg_gsv_text.cpp \ |
| 93 |
src/agg_image_filters.cpp \ |
| 94 |
src/agg_line_aa_basics.cpp \ |
| 95 |
src/agg_line_profile_aa.cpp \ |
| 96 |
src/agg_rounded_rect.cpp \ |
| 97 |
src/agg_sqrt_tables.cpp \ |
| 98 |
src/agg_trans_affine.cpp \ |
| 99 |
src/agg_trans_double_path.cpp \ |
| 100 |
src/agg_trans_single_path.cpp \ |
| 101 |
src/agg_trans_warp_magnifier.cpp \ |
| 102 |
src/agg_vcgen_bspline.cpp \ |
| 103 |
src/agg_vcgen_contour.cpp \ |
| 104 |
src/agg_vcgen_dash.cpp \ |
| 105 |
src/agg_vcgen_markers_term.cpp \ |
| 106 |
src/agg_vcgen_smooth_poly1.cpp \ |
| 107 |
src/agg_vcgen_stroke.cpp \ |
| 108 |
src/agg_vpgen_clip_polygon.cpp \ |
| 109 |
src/agg_vpgen_clip_polyline.cpp \ |
| 110 |
src/agg_vpgen_segmentator.cpp \ |
| 111 |
src/ctrl/agg_bezier_ctrl.cpp \ |
| 112 |
src/ctrl/agg_cbox_ctrl.cpp \ |
| 113 |
src/ctrl/agg_gamma_ctrl.cpp \ |
| 114 |
src/ctrl/agg_gamma_spline.cpp \ |
| 115 |
src/ctrl/agg_polygon_ctrl.cpp \ |
| 116 |
src/ctrl/agg_rbox_ctrl.cpp \ |
| 117 |
src/ctrl/agg_scale_ctrl.cpp \ |
| 118 |
src/ctrl/agg_slider_ctrl.cpp \ |
| 119 |
src/ctrl/agg_spline_ctrl.cpp |
| 120 |
|
| 121 |
LIB_CSRC=\ |
| 122 |
gpc/gpc.c |
| 123 |
|
| 124 |
SVG_SRC=\ |
| 125 |
examples/svg_viewer/agg_svg_parser.cpp \ |
| 126 |
examples/svg_viewer/agg_svg_path_renderer.cpp \ |
| 127 |
examples/svg_viewer/agg_svg_path_tokenizer.cpp \ |
| 128 |
examples/svg_viewer/svg_test.cpp \ |
| 129 |
$(PLATFORM_SRC) |
| 130 |
|
| 131 |
PLATFORM_OBJ = $(PLATFORM_SRC:.cpp=.o) |
| 132 |
FREETYPE_OBJ = $(FREETYPE_SRC:.cpp=.o) |
| 133 |
LIB_OBJ = $(LIB_CXXSRC:.cpp=.o) $(LIB_CSRC:.c=.o) |
| 134 |
SVG_OBJ = $(SVG_SRC:.cpp=.o) |
| 135 |
|
| 136 |
|
| 137 |
# |
| 138 |
# Targets |
| 139 |
# |
| 140 |
.PHONY : help all lib examples svg freetype clean install wget |
| 141 |
|
| 142 |
help: |
| 143 |
@Echo Requirements: |
| 144 |
@Echo - AmigaOS 4.0 |
| 145 |
@Echo - SDK 51.22 |
| 146 |
@Echo - optional: libexpat.a for SVG viewer |
| 147 |
@Echo - optional: libft2.a for FreeType examples |
| 148 |
@Echo "" |
| 149 |
@Echo Targets: |
| 150 |
@Echo all - build AGG library and all tests/examples |
| 151 |
@Echo lib - build AGG library only |
| 152 |
@Echo examples - build AGG library and examples |
| 153 |
@Echo svg - build AGG library and SVG viewer |
| 154 |
@Echo freetype - build AGG library and FreeType examples |
| 155 |
@Echo clean - clean all build files |
| 156 |
@Echo install - build AGG library and install into SDK |
| 157 |
@Echo wget - download and install example test files with wget |
| 158 |
|
| 159 |
all: lib examples svg freetype |
| 160 |
$(STRIP) $(EXAMPLES) $(SVGNAME) $(FREETYPE_EXAMPLES) |
| 161 |
|
| 162 |
lib: $(LIBNAME) |
| 163 |
|
| 164 |
examples: lib $(EXAMPLES) |
| 165 |
|
| 166 |
svg: lib $(SVGNAME) |
| 167 |
|
| 168 |
freetype: lib $(FREETYPE_EXAMPLES) |
| 169 |
|
| 170 |
clean: |
| 171 |
-@Delete *>NIL: FORCE QUIET examples/#?.o |
| 172 |
-@Delete *>NIL: FORCE QUIET $(PLATFORM_OBJ) $(FREETYPE_OBJ) $(LIB_OBJ) $(SVG_OBJ) |
| 173 |
-@Delete *>NIL: FORCE QUIET ALL lib bin |
| 174 |
|
| 175 |
install: lib |
| 176 |
-@Copy CLONE $(LIBNAME) SDK:Local/clib2/lib |
| 177 |
-@Copy CLONE ALL include/#?.h SDK:Local/common/include/agg |
| 178 |
-@Copy CLONE ALL gpc/#?.h SDK:Local/common/include/gpc |
| 179 |
|
| 180 |
$(LIBNAME): $(LIB_OBJ) |
| 181 |
$(AR) $(ARFLAGS) $@ $^ |
| 182 |
|
| 183 |
$(SVGNAME): $(SVG_OBJ) |
| 184 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) -lexpat |
| 185 |
|
| 186 |
|
| 187 |
# |
| 188 |
# Examples binaries |
| 189 |
# |
| 190 |
bin/aa_test: examples/aa_test.o $(PLATFORM_OBJ) |
| 191 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 192 |
|
| 193 |
bin/aa_demo: examples/aa_demo.o $(PLATFORM_OBJ) |
| 194 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 195 |
|
| 196 |
bin/alpha_gradient: examples/alpha_gradient.o $(PLATFORM_OBJ) |
| 197 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 198 |
|
| 199 |
bin/alpha_mask: examples/alpha_mask.o examples/parse_lion.o $(PLATFORM_OBJ) |
| 200 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 201 |
|
| 202 |
bin/alpha_mask2: examples/alpha_mask2.o examples/parse_lion.o $(PLATFORM_OBJ) |
| 203 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 204 |
|
| 205 |
bin/alpha_mask3: examples/alpha_mask3.o examples/make_arrows.o examples/make_gb_poly.o $(PLATFORM_OBJ) |
| 206 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 207 |
|
| 208 |
bin/bezier_div: examples/bezier_div.o $(PLATFORM_OBJ) |
| 209 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 210 |
|
| 211 |
bin/bspline: examples/bspline.o examples/interactive_polygon.o $(PLATFORM_OBJ) |
| 212 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 213 |
|
| 214 |
bin/circles: examples/circles.o $(PLATFORM_OBJ) |
| 215 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 216 |
|
| 217 |
bin/component_rendering: examples/component_rendering.o $(PLATFORM_OBJ) |
| 218 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 219 |
|
| 220 |
bin/compositing: examples/compositing.o $(PLATFORM_OBJ) |
| 221 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 222 |
|
| 223 |
bin/compositing2: examples/compositing2.o $(PLATFORM_OBJ) |
| 224 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 225 |
|
| 226 |
bin/conv_contour: examples/conv_contour.o $(PLATFORM_OBJ) |
| 227 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 228 |
|
| 229 |
bin/conv_dash_marker: examples/conv_dash_marker.o $(PLATFORM_OBJ) |
| 230 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 231 |
|
| 232 |
bin/conv_stroke: examples/conv_stroke.o $(PLATFORM_OBJ) |
| 233 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 234 |
|
| 235 |
bin/distortions: examples/distortions.o $(PLATFORM_OBJ) |
| 236 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 237 |
|
| 238 |
bin/flash_rasterizer: examples/flash_rasterizer.o $(PLATFORM_OBJ) |
| 239 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 240 |
|
| 241 |
bin/flash_rasterizer2: examples/flash_rasterizer2.o $(PLATFORM_OBJ) |
| 242 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 243 |
|
| 244 |
bin/gamma_correction: examples/gamma_correction.o $(PLATFORM_OBJ) |
| 245 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 246 |
|
| 247 |
bin/gamma_ctrl: examples/gamma_ctrl.o $(PLATFORM_OBJ) |
| 248 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 249 |
|
| 250 |
bin/gamma_tuner: examples/gamma_tuner.o $(PLATFORM_OBJ) |
| 251 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 252 |
|
| 253 |
bin/gouraud: examples/gouraud.o $(PLATFORM_OBJ) |
| 254 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 255 |
|
| 256 |
bin/gouraud_mesh: examples/gouraud_mesh.o $(PLATFORM_OBJ) |
| 257 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 258 |
|
| 259 |
bin/gpc_test: examples/gpc_test.o examples/make_arrows.o examples/make_gb_poly.o $(PLATFORM_OBJ) |
| 260 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 261 |
|
| 262 |
bin/gradients: examples/gradients.o $(PLATFORM_OBJ) |
| 263 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 264 |
|
| 265 |
bin/graph_test: examples/graph_test.o $(PLATFORM_OBJ) |
| 266 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 267 |
|
| 268 |
bin/idea: examples/idea.o $(PLATFORM_OBJ) |
| 269 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 270 |
|
| 271 |
bin/image1: examples/image1.o $(PLATFORM_OBJ) |
| 272 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 273 |
|
| 274 |
bin/image_alpha: examples/image_alpha.o $(PLATFORM_OBJ) |
| 275 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 276 |
|
| 277 |
bin/image_filters: examples/image_filters.o $(PLATFORM_OBJ) |
| 278 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 279 |
|
| 280 |
bin/image_filters2: examples/image_filters2.o $(PLATFORM_OBJ) |
| 281 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 282 |
|
| 283 |
bin/image_fltr_graph: examples/image_fltr_graph.o $(PLATFORM_OBJ) |
| 284 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 285 |
|
| 286 |
bin/image_perspective: examples/image_perspective.o examples/interactive_polygon.o $(PLATFORM_OBJ) |
| 287 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 288 |
|
| 289 |
bin/image_resample: examples/image_resample.o examples/interactive_polygon.o $(PLATFORM_OBJ) |
| 290 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 291 |
|
| 292 |
bin/image_transforms: examples/image_transforms.o $(PLATFORM_OBJ) |
| 293 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 294 |
|
| 295 |
bin/line_patterns: examples/line_patterns.o $(PLATFORM_OBJ) |
| 296 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 297 |
|
| 298 |
bin/line_patterns_clip: examples/line_patterns_clip.o $(PLATFORM_OBJ) |
| 299 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 300 |
|
| 301 |
bin/lion: examples/lion.o examples/parse_lion.o $(PLATFORM_OBJ) |
| 302 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 303 |
|
| 304 |
bin/lion_lens: examples/lion_lens.o examples/parse_lion.o $(PLATFORM_OBJ) |
| 305 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 306 |
|
| 307 |
bin/lion_outline: examples/lion_outline.o examples/parse_lion.o $(PLATFORM_OBJ) |
| 308 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 309 |
|
| 310 |
bin/mol_view: examples/mol_view.o $(PLATFORM_OBJ) |
| 311 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 312 |
|
| 313 |
bin/multi_clip: examples/multi_clip.o examples/parse_lion.o $(PLATFORM_OBJ) |
| 314 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 315 |
|
| 316 |
bin/pattern_fill: examples/pattern_fill.o $(PLATFORM_OBJ) |
| 317 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 318 |
|
| 319 |
bin/pattern_perspective: examples/pattern_perspective.o examples/interactive_polygon.o $(PLATFORM_OBJ) |
| 320 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 321 |
|
| 322 |
bin/pattern_resample: examples/pattern_resample.o examples/interactive_polygon.o $(PLATFORM_OBJ) |
| 323 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 324 |
|
| 325 |
bin/perspective: examples/perspective.o examples/interactive_polygon.o examples/parse_lion.o $(PLATFORM_OBJ) |
| 326 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 327 |
|
| 328 |
bin/polymorphic_renderer: examples/polymorphic_renderer.o $(PLATFORM_OBJ) |
| 329 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 330 |
|
| 331 |
bin/rasterizers: examples/rasterizers.o $(PLATFORM_OBJ) |
| 332 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 333 |
|
| 334 |
bin/rasterizers2: examples/rasterizers2.o $(PLATFORM_OBJ) |
| 335 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 336 |
|
| 337 |
bin/raster_text: examples/raster_text.o $(PLATFORM_OBJ) |
| 338 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 339 |
|
| 340 |
bin/rounded_rect: examples/rounded_rect.o $(PLATFORM_OBJ) |
| 341 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 342 |
|
| 343 |
bin/scanline_boolean: examples/scanline_boolean.o examples/interactive_polygon.o $(PLATFORM_OBJ) |
| 344 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 345 |
|
| 346 |
bin/scanline_boolean2: examples/scanline_boolean2.o examples/make_arrows.o examples/make_gb_poly.o $(PLATFORM_OBJ) |
| 347 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 348 |
|
| 349 |
bin/simple_blur: examples/simple_blur.o examples/parse_lion.o $(PLATFORM_OBJ) |
| 350 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 351 |
|
| 352 |
bin/trans_polar: examples/trans_polar.o $(PLATFORM_OBJ) |
| 353 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) |
| 354 |
|
| 355 |
bin/freetype_test: examples/freetype_test.o $(FREETYPE_OBJ) $(PLATFORM_OBJ) |
| 356 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) -lft2 |
| 357 |
|
| 358 |
bin/trans_curve1_ft: examples/trans_curve1_ft.o examples/interactive_polygon.o $(FREETYPE_OBJ) $(PLATFORM_OBJ) |
| 359 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) -lft2 |
| 360 |
|
| 361 |
bin/trans_curve2_ft: examples/trans_curve2_ft.o examples/interactive_polygon.o $(FREETYPE_OBJ) $(PLATFORM_OBJ) |
| 362 |
$(CXX) $(CXXFLAGS) $^ -o $@ $(CXXLIBS) -lft2 |
| 363 |
|
| 364 |
|
| 365 |
# |
| 366 |
# Examples files |
| 367 |
# |
| 368 |
wget: |
| 369 |
wget http://www.antigrain.com/svg/tiger.svg |
| 370 |
move tiger.svg bin |
| 371 |
wget http://www.antigrain.com/agg.bmp |
| 372 |
move agg.bmp bin |
| 373 |
wget http://www.antigrain.com/compositing.bmp |
| 374 |
move compositing.bmp bin |
| 375 |
wget http://www.antigrain.com/spheres.bmp |
| 376 |
move spheres.bmp bin |
| 377 |
wget http://www.antigrain.com/shapes.txt |
| 378 |
move shapes.txt bin |
| 379 |
wget http://www.antigrain.com/1.sdf |
| 380 |
move 1.sdf bin |
| 381 |
wget http://www.antigrain.com/line_patterns.bmp.zip |
| 382 |
xadunfile line_patterns.bmp.zip bin overwrite |
| 383 |
delete line_patterns.bmp.zip |
| 384 |
wget http://www.antigrain.com/timesi.zip |
| 385 |
xadunfile timesi.zip bin overwrite |
| 386 |
delete timesi.zip |
| 387 |
|
| 388 |
|
| 389 |
# |
| 390 |
# Pattern Rules |
| 391 |
# |
| 392 |
%.o: %.cpp |
| 393 |
@MakeDir lib bin force |
| 394 |
$(CXX) -c $(CXXFLAGS) $< -o $@ |
| 395 |
|
| 396 |
%.o: %.c |
| 397 |
@MakeDir lib bin force |
| 398 |
$(CC) -c $(CFLAGS) $< -o $@ |