84 WAYPOINT_ICONS_LARGE =
85 WAYPOINT_ICONS_LARGE += wp_1st_aid_large.png
86 WAYPOINT_ICONS_LARGE += wp_airplane_large.png
87 WAYPOINT_ICONS_LARGE += wp_amuse_pk_large.png
88 WAYPOINT_ICONS_LARGE += wp_anchor_large.png
89 WAYPOINT_ICONS_LARGE += wp_ball_large.png
90 WAYPOINT_ICONS_LARGE += wp_beach_large.png
91 WAYPOINT_ICONS_LARGE += wp_bell_large.png
92 WAYPOINT_ICONS_LARGE += wp_bike_trail_large.png
93 WAYPOINT_ICONS_LARGE += wp_block_blue_large.png
94 WAYPOINT_ICONS_LARGE += wp_block_green_large.png
95 WAYPOINT_ICONS_LARGE += wp_block_red_large.png
96 WAYPOINT_ICONS_LARGE += wp_boat_ramp_large.png
97 WAYPOINT_ICONS_LARGE += wp_bowling_large.png
98 WAYPOINT_ICONS_LARGE += wp_bridge_large.png
99 WAYPOINT_ICONS_LARGE += wp_building_large.png
100 WAYPOINT_ICONS_LARGE += wp_buoy_ambr_large.png
101 WAYPOINT_ICONS_LARGE += wp_buoy_blck_large.png
102 WAYPOINT_ICONS_LARGE += wp_buoy_blue_large.png
103 WAYPOINT_ICONS_LARGE += wp_buoy_grn_large.png
104 WAYPOINT_ICONS_LARGE += wp_buoy_grn_red_large.png
105 WAYPOINT_ICONS_LARGE += wp_buoy_grn_wht_large.png
106 WAYPOINT_ICONS_LARGE += wp_buoy_orng_large.png
107 WAYPOINT_ICONS_LARGE += wp_buoy_red_grn_large.png
108 WAYPOINT_ICONS_LARGE += wp_buoy_red_large.png
109 WAYPOINT_ICONS_LARGE += wp_buoy_red_wht_large.png
110 WAYPOINT_ICONS_LARGE += wp_buoy_violet_large.png
111 WAYPOINT_ICONS_LARGE += wp_buoy_wht_grn_large.png
112 WAYPOINT_ICONS_LARGE += wp_buoy_wht_large.png
113 WAYPOINT_ICONS_LARGE += wp_buoy_wht_red_large.png
114 WAYPOINT_ICONS_LARGE += wp_camp_large.png
115 WAYPOINT_ICONS_LARGE += wp_car_large.png
116 WAYPOINT_ICONS_LARGE += wp_car_rental_large.png
117 WAYPOINT_ICONS_LARGE += wp_car_repair_large.png
118 WAYPOINT_ICONS_LARGE += wp_cemetery_large.png
119 WAYPOINT_ICONS_LARGE += wp_church_large.png
120 WAYPOINT_ICONS_LARGE += wp_civil_large.png
121 WAYPOINT_ICONS_LARGE += wp_controlled_large.png
122 WAYPOINT_ICONS_LARGE += wp_conv_store_large.png
123 WAYPOINT_ICONS_LARGE += wp_crossing_large.png
124 WAYPOINT_ICONS_LARGE += wp_dam_large.png
125 WAYPOINT_ICONS_LARGE += wp_danger_large.png
126 WAYPOINT_ICONS_LARGE += wp_deer_large.png
127 WAYPOINT_ICONS_LARGE += wp_dive1_large.png
128 WAYPOINT_ICONS_LARGE += wp_dive2_large.png
129 WAYPOINT_ICONS_LARGE += wp_dollar_large.png
130 WAYPOINT_ICONS_LARGE += wp_drinking_wtr_large.png
131 WAYPOINT_ICONS_LARGE += wp_exit_large.png
132 WAYPOINT_ICONS_LARGE += wp_fastfood_large.png
133 WAYPOINT_ICONS_LARGE += wp_fhs_facility_large.png
134 WAYPOINT_ICONS_LARGE += wp_fish_large.png
135 WAYPOINT_ICONS_LARGE += wp_fitness_large.png
136 WAYPOINT_ICONS_LARGE += wp_flag_blue_large.png
137 WAYPOINT_ICONS_LARGE += wp_flag_green_large.png
138 WAYPOINT_ICONS_LARGE += wp_flag_red_large.png
139 WAYPOINT_ICONS_LARGE += wp_forest_large.png
140 WAYPOINT_ICONS_LARGE += wp_fuel_large.png
141 WAYPOINT_ICONS_LARGE += wp_geocache_fnd_large.png
142 WAYPOINT_ICONS_LARGE += wp_geocache_large.png
143 WAYPOINT_ICONS_LARGE += wp_glider_large.png
144 WAYPOINT_ICONS_LARGE += wp_golf_large.png
145 WAYPOINT_ICONS_LARGE += wp_grnd_trans_large.png
146 WAYPOINT_ICONS_LARGE += wp_helipad_large.png
147 WAYPOINT_ICONS_LARGE += wp_horn_large.png
148 WAYPOINT_ICONS_LARGE += wp_house_large.png
149 WAYPOINT_ICONS_LARGE += wp_ice_skating_large.png
150 WAYPOINT_ICONS_LARGE += wp_info_large.png
151 WAYPOINT_ICONS_LARGE += wp_knife_large.png
152 WAYPOINT_ICONS_LARGE += wp_light_large.png
153 WAYPOINT_ICONS_LARGE += wp_lodging_large.png
154 WAYPOINT_ICONS_LARGE += wp_lodge_large.png
155 WAYPOINT_ICONS_LARGE += wp_lrg_cty_large.png
156 WAYPOINT_ICONS_LARGE += wp_med_cty_large.png
157 WAYPOINT_ICONS_LARGE += wp_mine_large.png
158 WAYPOINT_ICONS_LARGE += wp_mob_large.png
159 WAYPOINT_ICONS_LARGE += wp_movie_large.png
160 WAYPOINT_ICONS_LARGE += wp_mug_large.png
161 WAYPOINT_ICONS_LARGE += wp_museum_large.png
162 WAYPOINT_ICONS_LARGE += wp_oil_field_large.png
163 WAYPOINT_ICONS_LARGE += wp_parachute_large.png
164 WAYPOINT_ICONS_LARGE += wp_parking_large.png
165 WAYPOINT_ICONS_LARGE += wp_park_large.png
166 WAYPOINT_ICONS_LARGE += wp_pharmacy_large.png
167 WAYPOINT_ICONS_LARGE += wp_phone_large.png
168 WAYPOINT_ICONS_LARGE += wp_picnic_large.png
169 WAYPOINT_ICONS_LARGE += wp_pin_blue_large.png
170 WAYPOINT_ICONS_LARGE += wp_pin_green_large.png
171 WAYPOINT_ICONS_LARGE += wp_pin_red_large.png
172 WAYPOINT_ICONS_LARGE += wp_pizza_large.png
173 WAYPOINT_ICONS_LARGE += wp_police_large.png
174 WAYPOINT_ICONS_LARGE += wp_post_ofc_large.png
175 WAYPOINT_ICONS_LARGE += wp_rbcn_large.png
176 WAYPOINT_ICONS_LARGE += wp_restricted_large.png
177 WAYPOINT_ICONS_LARGE += wp_restroom_large.png
178 WAYPOINT_ICONS_LARGE += wp_rv_park_large.png
179 WAYPOINT_ICONS_LARGE += wp_scenic_large.png
180 WAYPOINT_ICONS_LARGE += wp_school_large.png
181 WAYPOINT_ICONS_LARGE += wp_shopping_large.png
182 WAYPOINT_ICONS_LARGE += wp_short_tower_large.png
183 WAYPOINT_ICONS_LARGE += wp_shower_large.png
184 WAYPOINT_ICONS_LARGE += wp_skiing_large.png
185 WAYPOINT_ICONS_LARGE += wp_ski_resort_large.png
186 WAYPOINT_ICONS_LARGE += wp_skull_large.png
187 WAYPOINT_ICONS_LARGE += wp_sml_cty_large.png
188 WAYPOINT_ICONS_LARGE += wp_stadium_large.png
189 WAYPOINT_ICONS_LARGE += wp_store_large.png
190 WAYPOINT_ICONS_LARGE += wp_summit_large.png
191 WAYPOINT_ICONS_LARGE += wp_swimming_large.png
192 WAYPOINT_ICONS_LARGE += wp_tall_tower_large.png
193 WAYPOINT_ICONS_LARGE += wp_theater_large.png
194 WAYPOINT_ICONS_LARGE += wp_toll_booth_large.png
195 WAYPOINT_ICONS_LARGE += wp_trail_head_large.png
196 WAYPOINT_ICONS_LARGE += wp_truck_stop_large.png
197 WAYPOINT_ICONS_LARGE += wp_tunnel_large.png
198 WAYPOINT_ICONS_LARGE += wp_ultralight_large.png
199 WAYPOINT_ICONS_LARGE += wp_wbuoy_large.png
200 WAYPOINT_ICONS_LARGE += wp_weigh_station_large.png
201 WAYPOINT_ICONS_LARGE += wp_wrecker_large.png
202 WAYPOINT_ICONS_LARGE += wp_wreck_large.png
203 WAYPOINT_ICONS_LARGE += wp_zoo_large.png
209 vik_new_route_18.png \
221 route_finder_18.png \
224 vikaggregatelayer.png \
235 cursor_new_route.png \
241 cursor_route_finder.png \
248 ALL_ICONS = $(ICONS) $(WAYPOINT_ICONS) $(WAYPOINT_ICONS_LARGE) $(CURSORS)
249 EXTRA_DIST = $(ALL_ICONS)
250 ALL_ICONS_HEADER = $(ALL_ICONS:.png=_pixmap.h)
252 BUILT_SOURCES = $(ALL_ICONS_HEADER) icons.c icons.h
253 CLEANFILES = $(BUILT_SOURCES)
254 SUFFIXES = .png _pixmap.h
257 gdk-pixbuf-csource --name="`basename $< .png`_pixbuf" --struct --extern $< > $@
258 cat $@ | sed -e 's/\(pixel_data: ..\)/\1 (unsigned char \*)/' > temp$@.h
261 noinst_LIBRARIES = libicons.a
262 libicons_a_SOURCES = icons.c icons.h
264 icons.h: $(ALL_ICONS_HEADER)
265 echo "/* Generated file */" > $@
266 sed -n "s/^\(const.*\) = {/extern \1;/p" $(ALL_ICONS_HEADER) >> $@
268 icons.c: $(ALL_ICONS_HEADER)
269 echo "/* Generated file */" > $@
270 echo "#include <gdk-pixbuf/gdk-pixdata.h>" >> $@
271 for file in $(ALL_ICONS_HEADER) ; do echo "#include \"$$file\"" >> $@ ; done
273 $(BUILT_SOURCES): $(srcdir)/Makefile.am
275 AM_CFLAGS = -Wall -g -D_GNU_SOURCE \
278 iconsdir = $(datadir)/icons/hicolor/48x48/apps
279 icons_DATA = viking.png
280 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
283 @-if test -z "$(DESTDIR)"; then \
284 echo "Updating Gtk icon cache."; \
285 $(gtk_update_icon_cache); \
287 echo "*** Icon cache not updated. After install, run this:"; \
288 echo "*** $(gtk_update_icon_cache)"; \