| 1 |
include ../../Makefile.in.$(shell uname).SDL |
| 2 |
|
| 3 |
PLATFORM=sdl |
| 4 |
|
| 5 |
PLATFORMSOURCES=../../src/platform/$(PLATFORM)/agg_platform_support.o |
| 6 |
|
| 7 |
CXXFLAGS= $(AGGCXXFLAGS) -I../../include \ |
| 8 |
-L../../src \ |
| 9 |
$(PIXFMT) |
| 10 |
|
| 11 |
CXXFREETYPEFLAGS= $(AGGCXXFLAGS) -Wall \ |
| 12 |
-I../../include \ |
| 13 |
-I../../font_freetype \ |
| 14 |
-I/usr/local/include/freetype2 \ |
| 15 |
-L../../src \ |
| 16 |
$(PIXFMT) |
| 17 |
|
| 18 |
LIBS = $(AGGLIBS) -lm |
| 19 |
|
| 20 |
base: |
| 21 |
cd ../../src/; make |
| 22 |
make aa_demo |
| 23 |
make aa_test |
| 24 |
make alpha_gradient |
| 25 |
make alpha_mask |
| 26 |
make alpha_mask2 |
| 27 |
make alpha_mask3 |
| 28 |
make bspline |
| 29 |
make blur |
| 30 |
make blend_color |
| 31 |
make bezier_div |
| 32 |
make circles |
| 33 |
make component_rendering |
| 34 |
make conv_contour |
| 35 |
make conv_dash_marker |
| 36 |
make conv_stroke |
| 37 |
make gamma_correction |
| 38 |
make gamma_ctrl |
| 39 |
make gouraud |
| 40 |
make gradient_focal |
| 41 |
make gradients |
| 42 |
make graph_test |
| 43 |
make idea |
| 44 |
make lion |
| 45 |
make lion_lens |
| 46 |
make lion_outline |
| 47 |
make multi_clip |
| 48 |
make pattern_fill |
| 49 |
make perspective |
| 50 |
make polymorphic_renderer |
| 51 |
make raster_text |
| 52 |
make rasterizers |
| 53 |
make rasterizers2 |
| 54 |
make rasterizer_compound |
| 55 |
make rounded_rect |
| 56 |
make scanline_boolean |
| 57 |
make scanline_boolean2 |
| 58 |
make simple_blur |
| 59 |
make trans_polar |
| 60 |
make image_alpha |
| 61 |
make image_filters |
| 62 |
make image_filters2 |
| 63 |
make image_fltr_graph |
| 64 |
make image_perspective |
| 65 |
make image_resample |
| 66 |
make image_transforms |
| 67 |
make image1 |
| 68 |
make distortions |
| 69 |
make pattern_perspective |
| 70 |
make compositing |
| 71 |
make line_patterns |
| 72 |
make mol_view |
| 73 |
|
| 74 |
freetype: |
| 75 |
make freetype_test |
| 76 |
make trans_curve1_ft |
| 77 |
make trans_curve2_ft |
| 78 |
|
| 79 |
gpc: |
| 80 |
make gpc_test |
| 81 |
|
| 82 |
all: |
| 83 |
make base |
| 84 |
make freetype |
| 85 |
make gpc |
| 86 |
|
| 87 |
aa_demo: ../aa_demo.o $(PLATFORMSOURCES) |
| 88 |
$(CXX) $(CXXFLAGS) $^ -o aa_demo $(LIBS) |
| 89 |
|
| 90 |
aa_test: ../aa_test.o $(PLATFORMSOURCES) |
| 91 |
$(CXX) $(CXXFLAGS) $^ -o aa_test $(LIBS) |
| 92 |
|
| 93 |
alpha_gradient: ../alpha_gradient.o $(PLATFORMSOURCES) |
| 94 |
$(CXX) $(CXXFLAGS) $^ -o alpha_gradient $(LIBS) |
| 95 |
|
| 96 |
alpha_mask: ../alpha_mask.o ../parse_lion.o $(PLATFORMSOURCES) |
| 97 |
$(CXX) $(CXXFLAGS) $^ -o alpha_mask $(LIBS) |
| 98 |
|
| 99 |
alpha_mask2: ../alpha_mask2.o ../parse_lion.o $(PLATFORMSOURCES) |
| 100 |
$(CXX) $(CXXFLAGS) $^ -o alpha_mask2 $(LIBS) |
| 101 |
|
| 102 |
alpha_mask3: ../alpha_mask3.o ../make_arrows.o ../make_gb_poly.o $(PLATFORMSOURCES) |
| 103 |
$(CXX) $(CXXFLAGS) $^ -o alpha_mask3 $(LIBS) |
| 104 |
|
| 105 |
bezier_div: ../bezier_div.o ../interactive_polygon.o $(PLATFORMSOURCES) |
| 106 |
$(CXX) $(CXXFLAGS) $^ -o bezier_div $(LIBS) |
| 107 |
|
| 108 |
blur: ../blur.o $(PLATFORMSOURCES) |
| 109 |
$(CXX) $(CXXFLAGS) $^ -o blur $(LIBS) |
| 110 |
|
| 111 |
blend_color: ../blend_color.o $(PLATFORMSOURCES) |
| 112 |
$(CXX) $(CXXFLAGS) $^ -o blend_color $(LIBS) |
| 113 |
|
| 114 |
bspline: ../bspline.o ../interactive_polygon.o $(PLATFORMSOURCES) |
| 115 |
$(CXX) $(CXXFLAGS) $^ -o bspline $(LIBS) |
| 116 |
|
| 117 |
circles: ../circles.o $(PLATFORMSOURCES) |
| 118 |
$(CXX) $(CXXFLAGS) $^ -o circles $(LIBS) |
| 119 |
|
| 120 |
component_rendering: ../component_rendering.o $(PLATFORMSOURCES) |
| 121 |
$(CXX) $(CXXFLAGS) $^ -o component_rendering $(LIBS) |
| 122 |
|
| 123 |
compositing: ../compositing.o $(PLATFORMSOURCES) compositing.bmp |
| 124 |
$(CXX) $(CXXFLAGS) ../compositing.o $(PLATFORMSOURCES) -o compositing $(LIBS) |
| 125 |
|
| 126 |
conv_contour: ../conv_contour.o $(PLATFORMSOURCES) |
| 127 |
$(CXX) $(CXXFLAGS) $^ -o conv_contour $(LIBS) |
| 128 |
|
| 129 |
conv_dash_marker: ../conv_dash_marker.o $(PLATFORMSOURCES) |
| 130 |
$(CXX) $(CXXFLAGS) $^ -o conv_dash_marker $(LIBS) |
| 131 |
|
| 132 |
conv_stroke: ../conv_stroke.o $(PLATFORMSOURCES) |
| 133 |
$(CXX) $(CXXFLAGS) $^ -o conv_stroke $(LIBS) |
| 134 |
|
| 135 |
distortions: ../distortions.o $(PLATFORMSOURCES) spheres.bmp |
| 136 |
$(CXX) $(CXXFLAGS) ../distortions.o $(PLATFORMSOURCES) -o distortions $(LIBS) |
| 137 |
|
| 138 |
gamma_correction: ../gamma_correction.o $(PLATFORMSOURCES) |
| 139 |
$(CXX) $(CXXFLAGS) $^ -o gamma_correction $(LIBS) |
| 140 |
|
| 141 |
gamma_ctrl: ../gamma_ctrl.o $(PLATFORMSOURCES) |
| 142 |
$(CXX) $(CXXFLAGS) $^ -o gamma_ctrl $(LIBS) |
| 143 |
|
| 144 |
gouraud: ../gouraud.o $(PLATFORMSOURCES) |
| 145 |
$(CXX) $(CXXFLAGS) $^ -o gouraud $(LIBS) |
| 146 |
|
| 147 |
gradient_focal: ../gradient_focal.o $(PLATFORMSOURCES) |
| 148 |
$(CXX) $(CXXFLAGS) $^ -o gradient_focal $(LIBS) |
| 149 |
|
| 150 |
gradients: ../gradients.o $(PLATFORMSOURCES) |
| 151 |
$(CXX) $(CXXFLAGS) $^ -o gradients $(LIBS) |
| 152 |
|
| 153 |
graph_test: ../graph_test.o $(PLATFORMSOURCES) |
| 154 |
$(CXX) $(CXXFLAGS) $^ -o graph_test $(LIBS) |
| 155 |
|
| 156 |
idea: ../idea.o $(PLATFORMSOURCES) |
| 157 |
$(CXX) $(CXXFLAGS) $^ -o idea $(LIBS) |
| 158 |
|
| 159 |
image_alpha: ../image_alpha.o $(PLATFORMSOURCES) spheres.bmp |
| 160 |
$(CXX) $(CXXFLAGS) ../image_alpha.o $(PLATFORMSOURCES) -o image_alpha $(LIBS) |
| 161 |
|
| 162 |
image_filters: ../image_filters.o $(PLATFORMSOURCES) spheres.bmp |
| 163 |
$(CXX) $(CXXFLAGS) ../image_filters.o $(PLATFORMSOURCES) -o image_filters $(LIBS) |
| 164 |
|
| 165 |
image_filters2: ../image_filters2.o $(PLATFORMSOURCES) spheres.bmp |
| 166 |
$(CXX) $(CXXFLAGS) ../image_filters2.o $(PLATFORMSOURCES) -o image_filters2 $(LIBS) |
| 167 |
|
| 168 |
image_fltr_graph: ../image_fltr_graph.o $(PLATFORMSOURCES) spheres.bmp |
| 169 |
$(CXX) $(CXXFLAGS) ../image_fltr_graph.o $(PLATFORMSOURCES) -o image_fltr_graph $(LIBS) |
| 170 |
|
| 171 |
image_perspective: ../image_perspective.o ../interactive_polygon.o $(PLATFORMSOURCES) spheres.bmp |
| 172 |
$(CXX) $(CXXFLAGS) ../image_perspective.o ../interactive_polygon.o $(PLATFORMSOURCES) -o image_perspective $(LIBS) |
| 173 |
|
| 174 |
image_resample: ../image_resample.o ../interactive_polygon.o $(PLATFORMSOURCES) spheres.bmp |
| 175 |
$(CXX) $(CXXFLAGS) ../image_resample.o ../interactive_polygon.o $(PLATFORMSOURCES) -o image_resample $(LIBS) |
| 176 |
|
| 177 |
image_transforms: ../image_transforms.o $(PLATFORMSOURCES) spheres.bmp |
| 178 |
$(CXX) $(CXXFLAGS) ../image_transforms.o $(PLATFORMSOURCES) -o image_transforms $(LIBS) |
| 179 |
|
| 180 |
image1: ../image1.o $(PLATFORMSOURCES) spheres.bmp |
| 181 |
$(CXX) $(CXXFLAGS) ../image1.o $(PLATFORMSOURCES) -o image1 $(LIBS) |
| 182 |
|
| 183 |
line_patterns: ../line_patterns.o $(PLATFORMSOURCES) 1.bmp 2.bmp 3.bmp 4.bmp 5.bmp 6.bmp 7.bmp 8.bmp 9.bmp |
| 184 |
$(CXX) $(CXXFLAGS) ../line_patterns.o $(PLATFORMSOURCES) -o line_patterns $(LIBS) |
| 185 |
|
| 186 |
lion: ../lion.o ../parse_lion.o $(PLATFORMSOURCES) |
| 187 |
$(CXX) $(CXXFLAGS) $^ -o lion $(LIBS) |
| 188 |
|
| 189 |
lion_lens: ../lion_lens.o ../parse_lion.o $(PLATFORMSOURCES) |
| 190 |
$(CXX) $(CXXFLAGS) $^ -o lion_lens $(LIBS) |
| 191 |
|
| 192 |
lion_outline: ../lion_outline.o ../parse_lion.o $(PLATFORMSOURCES) |
| 193 |
$(CXX) $(CXXFLAGS) $^ -o lion_outline $(LIBS) |
| 194 |
|
| 195 |
mol_view: ../mol_view.o $(PLATFORMSOURCES) 1.sdf |
| 196 |
$(CXX) $(CXXFLAGS) ../mol_view.o $(PLATFORMSOURCES) -o mol_view $(LIBS) |
| 197 |
|
| 198 |
multi_clip: ../multi_clip.o ../parse_lion.o $(PLATFORMSOURCES) |
| 199 |
$(CXX) $(CXXFLAGS) $^ -o multi_clip $(LIBS) |
| 200 |
|
| 201 |
pattern_fill: ../pattern_fill.o $(PLATFORMSOURCES) |
| 202 |
$(CXX) $(CXXFLAGS) $^ -o pattern_fill $(LIBS) |
| 203 |
|
| 204 |
pattern_perspective: ../pattern_perspective.o ../interactive_polygon.o $(PLATFORMSOURCES) agg.bmp |
| 205 |
$(CXX) $(CXXFLAGS) ../pattern_perspective.o ../interactive_polygon.o $(PLATFORMSOURCES) -o pattern_perspective $(LIBS) |
| 206 |
|
| 207 |
perspective: ../perspective.o ../interactive_polygon.o ../parse_lion.o $(PLATFORMSOURCES) |
| 208 |
$(CXX) $(CXXFLAGS) $^ -o perspective $(LIBS) |
| 209 |
|
| 210 |
polymorphic_renderer: ../polymorphic_renderer.o $(PLATFORMSOURCES) |
| 211 |
$(CXX) $(CXXFLAGS) $^ -o polymorphic_renderer $(LIBS) |
| 212 |
|
| 213 |
raster_text: ../raster_text.o $(PLATFORMSOURCES) |
| 214 |
$(CXX) $(CXXFLAGS) $^ -o raster_text $(LIBS) |
| 215 |
|
| 216 |
rasterizers: ../rasterizers.o $(PLATFORMSOURCES) |
| 217 |
$(CXX) $(CXXFLAGS) $^ -o rasterizers $(LIBS) |
| 218 |
|
| 219 |
rasterizers2: ../rasterizers2.o $(PLATFORMSOURCES) |
| 220 |
$(CXX) $(CXXFLAGS) $^ -o rasterizers2 $(LIBS) |
| 221 |
|
| 222 |
rasterizer_compound: ../rasterizer_compound.o $(PLATFORMSOURCES) |
| 223 |
$(CXX) $(CXXFLAGS) $^ -o rasterizer_compound $(LIBS) |
| 224 |
|
| 225 |
rounded_rect: ../rounded_rect.o $(PLATFORMSOURCES) |
| 226 |
$(CXX) $(CXXFLAGS) $^ -o rounded_rect $(LIBS) |
| 227 |
|
| 228 |
scanline_boolean: ../scanline_boolean.o ../interactive_polygon.o $(PLATFORMSOURCES) |
| 229 |
$(CXX) $(CXXFLAGS) $^ -o scanline_boolean $(LIBS) |
| 230 |
|
| 231 |
scanline_boolean2: ../scanline_boolean2.o ../make_arrows.o ../make_gb_poly.o $(PLATFORMSOURCES) |
| 232 |
$(CXX) $(CXXFLAGS) $^ -o scanline_boolean2 $(LIBS) |
| 233 |
|
| 234 |
simple_blur: ../simple_blur.o ../parse_lion.o $(PLATFORMSOURCES) |
| 235 |
$(CXX) $(CXXFLAGS) $^ -o simple_blur $(LIBS) |
| 236 |
|
| 237 |
trans_polar: ../trans_polar.o $(PLATFORMSOURCES) |
| 238 |
$(CXX) $(CXXFLAGS) $^ -o trans_polar $(LIBS) |
| 239 |
|
| 240 |
|
| 241 |
freetype_test: ../freetype_test.o ../../font_freetype/agg_font_freetype.o $(PLATFORMSOURCES) timesi.ttf |
| 242 |
$(CXX) $(CXXFREETYPEFLAGS) ../freetype_test.o ../../font_freetype/agg_font_freetype.o $(PLATFORMSOURCES) -o freetype_test $(LIBS) -lfreetype |
| 243 |
|
| 244 |
trans_curve1_ft: ../trans_curve1_ft.o ../../font_freetype/agg_font_freetype.o ../interactive_polygon.o $(PLATFORMSOURCES) timesi.ttf |
| 245 |
$(CXX) $(CXXFLAGS) ../trans_curve1_ft.o ../../font_freetype/agg_font_freetype.o ../interactive_polygon.o $(PLATFORMSOURCES) -o trans_curve1_ft $(LIBS) -lfreetype |
| 246 |
|
| 247 |
trans_curve2_ft: ../trans_curve2_ft.o ../../font_freetype/agg_font_freetype.o ../interactive_polygon.o $(PLATFORMSOURCES) timesi.ttf |
| 248 |
$(CXX) $(CXXFLAGS) ../trans_curve2_ft.o ../../font_freetype/agg_font_freetype.o ../interactive_polygon.o $(PLATFORMSOURCES) -o trans_curve2_ft $(LIBS) -lfreetype |
| 249 |
|
| 250 |
gpc_test: ../gpc_test.o ../make_arrows.o ../make_gb_poly.o $(PLATFORMSOURCES) |
| 251 |
$(CXX) $(CXXFLAGS) $^ -o gpc_test $(LIBS) |
| 252 |
|
| 253 |
|
| 254 |
clean: |
| 255 |
rm -f ../*.o |
| 256 |
rm -f ../../src/platform/$(PLATFORM)/agg_platform_support.o |
| 257 |
rm -f aa_demo |
| 258 |
rm -f aa_test |
| 259 |
rm -f alpha_gradient |
| 260 |
rm -f alpha_mask |
| 261 |
rm -f alpha_mask2 |
| 262 |
rm -f alpha_mask3 |
| 263 |
rm -f blur |
| 264 |
rm -f blend_color |
| 265 |
rm -f bezier_div |
| 266 |
rm -f bspline |
| 267 |
rm -f circles |
| 268 |
rm -f component_rendering |
| 269 |
rm -f conv_contour |
| 270 |
rm -f conv_dash_marker |
| 271 |
rm -f conv_stroke |
| 272 |
rm -f gamma_correction |
| 273 |
rm -f gamma_ctrl |
| 274 |
rm -f gouraud |
| 275 |
rm -f gradients |
| 276 |
rm -f gradient_focal |
| 277 |
rm -f graph_test |
| 278 |
rm -f idea |
| 279 |
rm -f lion |
| 280 |
rm -f lion_lens |
| 281 |
rm -f lion_outline |
| 282 |
rm -f multi_clip |
| 283 |
rm -f pattern_fill |
| 284 |
rm -f perspective |
| 285 |
rm -f polymorphic_renderer |
| 286 |
rm -f raster_text |
| 287 |
rm -f rasterizers |
| 288 |
rm -f rasterizers2 |
| 289 |
rm -f rounded_rect |
| 290 |
rm -f scanline_boolean |
| 291 |
rm -f scanline_boolean2 |
| 292 |
rm -f simple_blur |
| 293 |
rm -f trans_polar |
| 294 |
rm -f image_alpha |
| 295 |
rm -f image_filters |
| 296 |
rm -f image_filters2 |
| 297 |
rm -f image_fltr_graph |
| 298 |
rm -f image_perspective |
| 299 |
rm -f image_resample |
| 300 |
rm -f image_transforms |
| 301 |
rm -f image1 |
| 302 |
rm -f distortions |
| 303 |
rm -f pattern_perspective |
| 304 |
rm -f compositing |
| 305 |
rm -f line_patterns |
| 306 |
rm -f mol_view |
| 307 |
rm -f freetype_test |
| 308 |
rm -f trans_curve1_ft |
| 309 |
rm -f trans_curve2_ft |
| 310 |
rm -f gpc_test |
| 311 |
|
| 312 |
agg.bmp: |
| 313 |
cp ../art/agg.bmp . |
| 314 |
|
| 315 |
compositing.bmp: |
| 316 |
cp ../art/compositing.bmp . |
| 317 |
|
| 318 |
spheres.bmp: |
| 319 |
cp ../art/spheres.bmp . |
| 320 |
|
| 321 |
1.sdf: |
| 322 |
cp ../art/1.sdf . |
| 323 |
|
| 324 |
1.bmp: |
| 325 |
cp ../art/line_patterns.bmp.zip . |
| 326 |
unzip -o line_patterns.bmp.zip |
| 327 |
|
| 328 |
timesi.ttf: |
| 329 |
cp ../art/timesi.zip . |
| 330 |
unzip -o timesi.zip |
| 331 |
|
| 332 |
../freetype_test.o: ../freetype_test.cpp |
| 333 |
@echo \< $*.cpp \> |
| 334 |
$(CXX) -c $(CXXFREETYPEFLAGS) $*.cpp -o $@ |
| 335 |
|
| 336 |
../trans_curve1_ft.o: ../trans_curve1_ft.cpp |
| 337 |
@echo \< $*.cpp \> |
| 338 |
$(CXX) -c $(CXXFREETYPEFLAGS) $*.cpp -o $@ |
| 339 |
|
| 340 |
../trans_curve2_ft.o: ../trans_curve2_ft.cpp |
| 341 |
@echo \< $*.cpp \> |
| 342 |
$(CXX) -c $(CXXFREETYPEFLAGS) $*.cpp -o $@ |
| 343 |
|
| 344 |
../../font_freetype/agg_font_freetype.o: ../../font_freetype/agg_font_freetype.cpp |
| 345 |
@echo \< $*.cpp \> |
| 346 |
$(CXX) -c $(CXXFREETYPEFLAGS) $*.cpp -o $@ |
| 347 |
|
| 348 |
../gpc_test.o: ../gpc_test.cpp |
| 349 |
@echo \< $*.cpp \> |
| 350 |
$(CXX) -c $(CXXFLAGS) -I../../gpc $*.cpp -o $@ |
| 351 |
|
| 352 |
%.o: %.cpp |
| 353 |
@echo \< $*.cpp \> |
| 354 |
$(CXX) -c $(CXXFLAGS) $*.cpp -o $@ |
| 355 |
|
| 356 |
.PHONY : clean |
| 357 |
|
| 358 |
|