| 1 |
AGGLIBS= -lagg -framework Carbon -framework QuickTime |
| 2 |
AGGCXXFLAGS = -bind_at_load -O3 -I/Developer/Headers/FlatCarbon |
| 3 |
CXX = g++ |
| 4 |
C = gcc |
| 5 |
#CXX = icc |
| 6 |
LIB = ar cr -s |
| 7 |
|
| 8 |
PLATFORM=mac |
| 9 |
|
| 10 |
PLATFORMSOURCES=../../src/platform/$(PLATFORM)/agg_platform_support.o ../../src/platform/$(PLATFORM)/agg_mac_pmap.o |
| 11 |
|
| 12 |
CXXFLAGS= $(AGGCXXFLAGS) -I../../include \ |
| 13 |
-L../../src \ |
| 14 |
$(PIXFMT) |
| 15 |
|
| 16 |
LIBS = $(AGGLIBS) -lm |
| 17 |
|
| 18 |
all: |
| 19 |
cd ../../src/; make |
| 20 |
make aa_demo |
| 21 |
make aa_test |
| 22 |
make alpha_gradient |
| 23 |
make alpha_mask |
| 24 |
make alpha_mask2 |
| 25 |
make alpha_mask3 |
| 26 |
make bezier_div |
| 27 |
make blur |
| 28 |
make blend_color |
| 29 |
make bspline |
| 30 |
make circles |
| 31 |
make component_rendering |
| 32 |
make conv_contour |
| 33 |
make conv_dash_marker |
| 34 |
make conv_stroke |
| 35 |
make gamma_correction |
| 36 |
make gamma_ctrl |
| 37 |
make gouraud |
| 38 |
make gradient_focal |
| 39 |
make gradients |
| 40 |
make graph_test |
| 41 |
make idea |
| 42 |
make lion |
| 43 |
make lion_lens |
| 44 |
make lion_outline |
| 45 |
make multi_clip |
| 46 |
make pattern_fill |
| 47 |
make perspective |
| 48 |
make polymorphic_renderer |
| 49 |
make raster_text |
| 50 |
make rasterizers |
| 51 |
make rasterizers2 |
| 52 |
make rasterizer_compound |
| 53 |
make rounded_rect |
| 54 |
make scanline_boolean |
| 55 |
make scanline_boolean2 |
| 56 |
make simple_blur |
| 57 |
make trans_polar |
| 58 |
make image_alpha |
| 59 |
make image_filters |
| 60 |
make image_filters2 |
| 61 |
make image_fltr_graph |
| 62 |
make image_perspective |
| 63 |
make image_resample |
| 64 |
make image_transforms |
| 65 |
make image1 |
| 66 |
make distortions |
| 67 |
make pattern_perspective |
| 68 |
make compositing |
| 69 |
make line_patterns |
| 70 |
make mol_view |
| 71 |
|
| 72 |
aa_demo: ../aa_demo.o $(PLATFORMSOURCES) aa_demo.app |
| 73 |
$(CXX) $(CXXFLAGS) ../aa_demo.o $(PLATFORMSOURCES) -o aa_demo.app/Contents/MacOS/aa_demo $(LIBS) |
| 74 |
|
| 75 |
aa_test: ../aa_test.o $(PLATFORMSOURCES) aa_test.app |
| 76 |
$(CXX) $(CXXFLAGS) ../aa_test.o $(PLATFORMSOURCES) -o aa_test.app/Contents/MacOS/aa_test $(LIBS) |
| 77 |
|
| 78 |
alpha_gradient: ../alpha_gradient.o $(PLATFORMSOURCES) alpha_gradient.app |
| 79 |
$(CXX) $(CXXFLAGS) ../alpha_gradient.o $(PLATFORMSOURCES) -o alpha_gradient.app/Contents/MacOS/alpha_gradient $(LIBS) |
| 80 |
|
| 81 |
alpha_mask: ../alpha_mask.o ../parse_lion.o $(PLATFORMSOURCES) alpha_mask.app |
| 82 |
$(CXX) $(CXXFLAGS) ../alpha_mask.o ../parse_lion.o $(PLATFORMSOURCES) -o alpha_mask.app/Contents/MacOS/alpha_mask $(LIBS) |
| 83 |
|
| 84 |
alpha_mask2: ../alpha_mask2.o ../parse_lion.o $(PLATFORMSOURCES) alpha_mask2.app |
| 85 |
$(CXX) $(CXXFLAGS) ../alpha_mask2.o ../parse_lion.o $(PLATFORMSOURCES) -o alpha_mask2.app/Contents/MacOS/alpha_mask2 $(LIBS) |
| 86 |
|
| 87 |
alpha_mask3: ../alpha_mask3.o ../make_arrows.o ../make_gb_poly.o $(PLATFORMSOURCES) alpha_mask3.app |
| 88 |
$(CXX) $(CXXFLAGS) ../alpha_mask3.o ../make_arrows.o ../make_gb_poly.o $(PLATFORMSOURCES) -o alpha_mask3.app/Contents/MacOS/alpha_mask3 $(LIBS) |
| 89 |
|
| 90 |
bezier_div: ../bezier_div.o ../interactive_polygon.o $(PLATFORMSOURCES) bezier_div.app |
| 91 |
$(CXX) $(CXXFLAGS) ../bezier_div.o ../interactive_polygon.o $(PLATFORMSOURCES) -o bezier_div.app/Contents/MacOS/bezier_div $(LIBS) |
| 92 |
|
| 93 |
blur: ../blur.o $(PLATFORMSOURCES) blur.app |
| 94 |
$(CXX) $(CXXFLAGS) ../blur.o $(PLATFORMSOURCES) -o blur.app/Contents/MacOS/blur $(LIBS) |
| 95 |
|
| 96 |
blend_color: ../blend_color.o $(PLATFORMSOURCES) blend_color.app |
| 97 |
$(CXX) $(CXXFLAGS) ../blend_color.o $(PLATFORMSOURCES) -o blend_color.app/Contents/MacOS/blend_color $(LIBS) |
| 98 |
|
| 99 |
bspline: ../bspline.o ../interactive_polygon.o $(PLATFORMSOURCES) bspline.app |
| 100 |
$(CXX) $(CXXFLAGS) ../bspline.o ../interactive_polygon.o $(PLATFORMSOURCES) -o bspline.app/Contents/MacOS/bspline $(LIBS) |
| 101 |
|
| 102 |
circles: ../circles.o $(PLATFORMSOURCES) circles.app |
| 103 |
$(CXX) $(CXXFLAGS) ../circles.o $(PLATFORMSOURCES) -o circles.app/Contents/MacOS/circles $(LIBS) |
| 104 |
|
| 105 |
component_rendering: ../component_rendering.o $(PLATFORMSOURCES) component_rendering.app |
| 106 |
$(CXX) $(CXXFLAGS) ../component_rendering.o $(PLATFORMSOURCES) -o component_rendering.app/Contents/MacOS/component_rendering $(LIBS) |
| 107 |
|
| 108 |
compositing: ../compositing.o $(PLATFORMSOURCES) compositing.bmp compositing.app |
| 109 |
cp compositing.bmp compositing.app/Contents/MacOS/compositing.bmp |
| 110 |
$(CXX) $(CXXFLAGS) ../compositing.o $(PLATFORMSOURCES) -o compositing.app/Contents/MacOS/compositing $(LIBS) |
| 111 |
|
| 112 |
conv_contour: ../conv_contour.o $(PLATFORMSOURCES) conv_contour.app |
| 113 |
$(CXX) $(CXXFLAGS) ../conv_contour.o $(PLATFORMSOURCES) -o conv_contour.app/Contents/MacOS/conv_contour $(LIBS) |
| 114 |
|
| 115 |
conv_dash_marker: ../conv_dash_marker.o $(PLATFORMSOURCES) conv_dash_marker.app |
| 116 |
$(CXX) $(CXXFLAGS) ../conv_dash_marker.o $(PLATFORMSOURCES) -o conv_dash_marker.app/Contents/MacOS/conv_dash_marker $(LIBS) |
| 117 |
|
| 118 |
conv_stroke: ../conv_stroke.o $(PLATFORMSOURCES) conv_stroke.app |
| 119 |
$(CXX) $(CXXFLAGS) ../conv_stroke.o $(PLATFORMSOURCES) -o conv_stroke.app/Contents/MacOS/conv_stroke $(LIBS) |
| 120 |
|
| 121 |
distortions: ../distortions.o $(PLATFORMSOURCES) spheres.bmp distortions.app |
| 122 |
cp spheres.bmp distortions.app/Contents/MacOS/spheres.bmp |
| 123 |
$(CXX) $(CXXFLAGS) ../distortions.o $(PLATFORMSOURCES) -o distortions.app/Contents/MacOS/distortions $(LIBS) |
| 124 |
|
| 125 |
gamma_correction: ../gamma_correction.o $(PLATFORMSOURCES) gamma_correction.app |
| 126 |
$(CXX) $(CXXFLAGS) ../gamma_correction.o $(PLATFORMSOURCES) -o gamma_correction.app/Contents/MacOS/gamma_correction $(LIBS) |
| 127 |
|
| 128 |
gamma_ctrl: ../gamma_ctrl.o $(PLATFORMSOURCES) gamma_ctrl.app |
| 129 |
$(CXX) $(CXXFLAGS) ../gamma_ctrl.o $(PLATFORMSOURCES) -o gamma_ctrl.app/Contents/MacOS/gamma_ctrl $(LIBS) |
| 130 |
|
| 131 |
gouraud: ../gouraud.o $(PLATFORMSOURCES) gouraud.app |
| 132 |
$(CXX) $(CXXFLAGS) ../gouraud.o $(PLATFORMSOURCES) -o gouraud.app/Contents/MacOS/gouraud $(LIBS) |
| 133 |
|
| 134 |
gradient_focal: ../gradient_focal.o $(PLATFORMSOURCES) gradient_focal.app |
| 135 |
$(CXX) $(CXXFLAGS) ../gradient_focal.o $(PLATFORMSOURCES) -o gradient_focal.app/Contents/MacOS/gradient_focal $(LIBS) |
| 136 |
|
| 137 |
gradients: ../gradients.o $(PLATFORMSOURCES) gradients.app |
| 138 |
$(CXX) $(CXXFLAGS) ../gradients.o $(PLATFORMSOURCES) -o gradients.app/Contents/MacOS/gradients $(LIBS) |
| 139 |
|
| 140 |
graph_test: ../graph_test.o $(PLATFORMSOURCES) graph_test.app |
| 141 |
$(CXX) $(CXXFLAGS) ../graph_test.o $(PLATFORMSOURCES) -o graph_test.app/Contents/MacOS/graph_test $(LIBS) |
| 142 |
|
| 143 |
idea: ../idea.o $(PLATFORMSOURCES) idea.app |
| 144 |
$(CXX) $(CXXFLAGS) ../idea.o $(PLATFORMSOURCES) -o idea.app/Contents/MacOS/idea $(LIBS) |
| 145 |
|
| 146 |
image_alpha: ../image_alpha.o $(PLATFORMSOURCES) spheres.bmp image_alpha.app |
| 147 |
cp spheres.bmp image_alpha.app/Contents/MacOS/spheres.bmp |
| 148 |
$(CXX) $(CXXFLAGS) ../image_alpha.o $(PLATFORMSOURCES) -o image_alpha.app/Contents/MacOS/image_alpha $(LIBS) |
| 149 |
|
| 150 |
image_filters: ../image_filters.o $(PLATFORMSOURCES) spheres.bmp image_filters.app |
| 151 |
cp spheres.bmp image_filters.app/Contents/MacOS/spheres.bmp |
| 152 |
$(CXX) $(CXXFLAGS) ../image_filters.o $(PLATFORMSOURCES) -o image_filters.app/Contents/MacOS/image_filters $(LIBS) |
| 153 |
|
| 154 |
image_filters2: ../image_filters2.o $(PLATFORMSOURCES) spheres.bmp image_filters2.app |
| 155 |
cp spheres.bmp image_filters2.app/Contents/MacOS/spheres.bmp |
| 156 |
$(CXX) $(CXXFLAGS) ../image_filters2.o $(PLATFORMSOURCES) -o image_filters2.app/Contents/MacOS/image_filters2 $(LIBS) |
| 157 |
|
| 158 |
image_fltr_graph: ../image_fltr_graph.o $(PLATFORMSOURCES) spheres.bmp image_fltr_graph.app |
| 159 |
cp spheres.bmp image_fltr_graph.app/Contents/MacOS/spheres.bmp |
| 160 |
$(CXX) $(CXXFLAGS) ../image_fltr_graph.o $(PLATFORMSOURCES) -o image_fltr_graph.app/Contents/MacOS/image_fltr_graph $(LIBS) |
| 161 |
|
| 162 |
image_perspective: ../image_perspective.o ../interactive_polygon.o $(PLATFORMSOURCES) spheres.bmp image_perspective.app |
| 163 |
cp spheres.bmp image_perspective.app/Contents/MacOS/spheres.bmp |
| 164 |
$(CXX) $(CXXFLAGS) ../image_perspective.o ../interactive_polygon.o $(PLATFORMSOURCES) -o image_perspective.app/Contents/MacOS/image_perspective $(LIBS) |
| 165 |
|
| 166 |
image_resample: ../image_resample.o ../interactive_polygon.o $(PLATFORMSOURCES) spheres.bmp image_resample.app |
| 167 |
cp spheres.bmp image_resample.app/Contents/MacOS/spheres.bmp |
| 168 |
$(CXX) $(CXXFLAGS) ../image_resample.o ../interactive_polygon.o $(PLATFORMSOURCES) -o image_resample.app/Contents/MacOS/image_resample $(LIBS) |
| 169 |
|
| 170 |
image_transforms: ../image_transforms.o $(PLATFORMSOURCES) spheres.bmp image_transforms.app |
| 171 |
cp spheres.bmp image_transforms.app/Contents/MacOS/spheres.bmp |
| 172 |
$(CXX) $(CXXFLAGS) ../image_transforms.o $(PLATFORMSOURCES) -o image_transforms.app/Contents/MacOS/image_transforms $(LIBS) |
| 173 |
|
| 174 |
image1: ../image1.o $(PLATFORMSOURCES) spheres.bmp image1.app |
| 175 |
cp spheres.bmp image1.app/Contents/MacOS/spheres.bmp |
| 176 |
$(CXX) $(CXXFLAGS) ../image1.o $(PLATFORMSOURCES) -o image1.app/Contents/MacOS/image1 $(LIBS) |
| 177 |
|
| 178 |
line_patterns: ../line_patterns.o $(PLATFORMSOURCES) 1.bmp 2.bmp 3.bmp 4.bmp 5.bmp 6.bmp 7.bmp 8.bmp 9.bmp line_patterns.app |
| 179 |
cp 1.bmp line_patterns.app/Contents/MacOS/1.bmp |
| 180 |
cp 2.bmp line_patterns.app/Contents/MacOS/2.bmp |
| 181 |
cp 3.bmp line_patterns.app/Contents/MacOS/3.bmp |
| 182 |
cp 4.bmp line_patterns.app/Contents/MacOS/4.bmp |
| 183 |
cp 5.bmp line_patterns.app/Contents/MacOS/5.bmp |
| 184 |
cp 6.bmp line_patterns.app/Contents/MacOS/6.bmp |
| 185 |
cp 7.bmp line_patterns.app/Contents/MacOS/7.bmp |
| 186 |
cp 8.bmp line_patterns.app/Contents/MacOS/8.bmp |
| 187 |
cp 9.bmp line_patterns.app/Contents/MacOS/9.bmp |
| 188 |
$(CXX) $(CXXFLAGS) ../line_patterns.o $(PLATFORMSOURCES) -o line_patterns.app/Contents/MacOS/line_patterns $(LIBS) |
| 189 |
|
| 190 |
lion: ../lion.o ../parse_lion.o $(PLATFORMSOURCES) lion.app |
| 191 |
$(CXX) $(CXXFLAGS) ../lion.o ../parse_lion.o $(PLATFORMSOURCES) -o lion.app/Contents/MacOS/lion $(LIBS) |
| 192 |
|
| 193 |
lion_lens: ../lion_lens.o ../parse_lion.o $(PLATFORMSOURCES) lion_lens.app |
| 194 |
$(CXX) $(CXXFLAGS) ../lion_lens.o ../parse_lion.o $(PLATFORMSOURCES) -o lion_lens.app/Contents/MacOS/lion_lens $(LIBS) |
| 195 |
|
| 196 |
lion_outline: ../lion_outline.o ../parse_lion.o $(PLATFORMSOURCES) lion_outline.app |
| 197 |
$(CXX) $(CXXFLAGS) ../lion_outline.o ../parse_lion.o $(PLATFORMSOURCES) -o lion_outline.app/Contents/MacOS/lion_outline $(LIBS) |
| 198 |
|
| 199 |
mol_view: ../mol_view.o $(PLATFORMSOURCES) 1.sdf mol_view.app |
| 200 |
cp 1.sdf mol_view.app/Contents/MacOS/1.sdf |
| 201 |
$(CXX) $(CXXFLAGS) ../mol_view.o $(PLATFORMSOURCES) -o mol_view.app/Contents/MacOS/mol_view $(LIBS) |
| 202 |
|
| 203 |
multi_clip: ../multi_clip.o ../parse_lion.o $(PLATFORMSOURCES) multi_clip.app |
| 204 |
$(CXX) $(CXXFLAGS) ../multi_clip.o ../parse_lion.o $(PLATFORMSOURCES) -o multi_clip.app/Contents/MacOS/multi_clip $(LIBS) |
| 205 |
|
| 206 |
pattern_fill: ../pattern_fill.o $(PLATFORMSOURCES) pattern_fill.app |
| 207 |
$(CXX) $(CXXFLAGS) ../pattern_fill.o $(PLATFORMSOURCES) -o pattern_fill.app/Contents/MacOS/pattern_fill $(LIBS) |
| 208 |
|
| 209 |
pattern_perspective: ../pattern_perspective.o ../interactive_polygon.o $(PLATFORMSOURCES) agg.bmp pattern_perspective.app |
| 210 |
cp agg.bmp pattern_perspective.app/Contents/MacOS/agg.bmp |
| 211 |
$(CXX) $(CXXFLAGS) ../pattern_perspective.o ../interactive_polygon.o $(PLATFORMSOURCES) -o pattern_perspective.app/Contents/MacOS/pattern_perspective $(LIBS) |
| 212 |
|
| 213 |
perspective: ../perspective.o ../interactive_polygon.o ../parse_lion.o $(PLATFORMSOURCES) perspective.app |
| 214 |
$(CXX) $(CXXFLAGS) ../perspective.o ../interactive_polygon.o ../parse_lion.o $(PLATFORMSOURCES) -o perspective.app/Contents/MacOS/perspective $(LIBS) |
| 215 |
|
| 216 |
polymorphic_renderer: ../polymorphic_renderer.o $(PLATFORMSOURCES) polymorphic_renderer.app |
| 217 |
$(CXX) $(CXXFLAGS) ../polymorphic_renderer.o $(PLATFORMSOURCES) -o polymorphic_renderer.app/Contents/MacOS/polymorphic_renderer $(LIBS) |
| 218 |
|
| 219 |
raster_text: ../raster_text.o $(PLATFORMSOURCES) raster_text.app |
| 220 |
$(CXX) $(CXXFLAGS) ../raster_text.o $(PLATFORMSOURCES) -o raster_text.app/Contents/MacOS/raster_text $(LIBS) |
| 221 |
|
| 222 |
rasterizers: ../rasterizers.o $(PLATFORMSOURCES) rasterizers.app |
| 223 |
$(CXX) $(CXXFLAGS) ../rasterizers.o $(PLATFORMSOURCES) -o rasterizers.app/Contents/MacOS/rasterizers $(LIBS) |
| 224 |
|
| 225 |
rasterizers2: ../rasterizers2.o $(PLATFORMSOURCES) rasterizers2.app |
| 226 |
$(CXX) $(CXXFLAGS) ../rasterizers2.o $(PLATFORMSOURCES) -o rasterizers2.app/Contents/MacOS/rasterizers2 $(LIBS) |
| 227 |
|
| 228 |
rasterizer_compound: ../rasterizer_compound.o $(PLATFORMSOURCES) rasterizer_compound.app |
| 229 |
$(CXX) $(CXXFLAGS) ../rasterizer_compound.o $(PLATFORMSOURCES) -o rasterizer_compound.app/Contents/MacOS/rasterizer_compound $(LIBS) |
| 230 |
|
| 231 |
rounded_rect: ../rounded_rect.o $(PLATFORMSOURCES) rounded_rect.app |
| 232 |
$(CXX) $(CXXFLAGS) ../rounded_rect.o $(PLATFORMSOURCES) -o rounded_rect.app/Contents/MacOS/rounded_rect $(LIBS) |
| 233 |
|
| 234 |
scanline_boolean: ../scanline_boolean.o ../interactive_polygon.o $(PLATFORMSOURCES) scanline_boolean.app |
| 235 |
$(CXX) $(CXXFLAGS) ../scanline_boolean.o ../interactive_polygon.o $(PLATFORMSOURCES) -o scanline_boolean.app/Contents/MacOS/scanline_boolean $(LIBS) |
| 236 |
|
| 237 |
scanline_boolean2: ../scanline_boolean2.o ../make_arrows.o ../make_gb_poly.o $(PLATFORMSOURCES) scanline_boolean2.app |
| 238 |
$(CXX) $(CXXFLAGS) ../scanline_boolean2.o ../make_arrows.o ../make_gb_poly.o $(PLATFORMSOURCES) -o scanline_boolean2.app/Contents/MacOS/scanline_boolean2 $(LIBS) |
| 239 |
|
| 240 |
simple_blur: ../simple_blur.o ../parse_lion.o $(PLATFORMSOURCES) simple_blur.app |
| 241 |
$(CXX) $(CXXFLAGS) ../simple_blur.o ../parse_lion.o $(PLATFORMSOURCES) -o simple_blur.app/Contents/MacOS/simple_blur $(LIBS) |
| 242 |
|
| 243 |
trans_polar: ../trans_polar.o $(PLATFORMSOURCES) trans_polar.app |
| 244 |
$(CXX) $(CXXFLAGS) ../trans_polar.o $(PLATFORMSOURCES) -o trans_polar.app/Contents/MacOS/trans_polar $(LIBS) |
| 245 |
|
| 246 |
|
| 247 |
clean: |
| 248 |
rm -rf *.app |
| 249 |
rm -f ../*.o |
| 250 |
rm -f ../../src/platform/$(PLATFORM)/agg_platform_support.o |
| 251 |
rm -f ../../src/platform/$(PLATFORM)/agg_mac_pmap.o |
| 252 |
|
| 253 |
agg.bmp: |
| 254 |
cp ../art/agg.bmp . |
| 255 |
|
| 256 |
compositing.bmp: |
| 257 |
cp ../art/compositing.bmp . |
| 258 |
|
| 259 |
spheres.bmp: |
| 260 |
cp ../art/spheres.bmp . |
| 261 |
|
| 262 |
1.sdf: |
| 263 |
cp ../art/1.sdf . |
| 264 |
|
| 265 |
1.bmp: |
| 266 |
cp ../art/line_patterns.bmp.zip . |
| 267 |
unzip -o line_patterns.bmp.zip |
| 268 |
|
| 269 |
%.app: |
| 270 |
mkdir $*.app |
| 271 |
mkdir $*.app/Contents |
| 272 |
mkdir $*.app/Contents/MacOS |
| 273 |
|
| 274 |
%.o: %.cpp |
| 275 |
@echo \< $*.cpp \> |
| 276 |
$(CXX) -c $(CXXFLAGS) $*.cpp -o $@ |
| 277 |
|
| 278 |
.PHONY : clean |
| 279 |
|
| 280 |
|