Add new boxtypes FL_ASYM_BOX and FL_ASYM_FLAT_BOX.
[ntk.git] / src / Makefile
blob2386aad7cc2c141f55ed878c2089dd1475c19c4a
2 # "$Id: Makefile 8389 2011-02-06 14:08:08Z manolo $"
4 # Library makefile for the Fast Light Tool Kit (FLTK).
6 # Copyright 1998-2010 by Bill Spitzak and others.
8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Library General Public
10 # License as published by the Free Software Foundation; either
11 # version 2 of the License, or (at your option) any later version.
13 # This library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Library General Public License for more details.
18 # You should have received a copy of the GNU Library General Public
19 # License along with this library; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 # USA.
23 # Please report all bugs and problems on the following page:
25 # http://www.ntk.org/str.php
28 CPPFILES = \
29 Fl_Cairo_Graphics_Driver.cxx \
30 Fl.cxx \
31 Fl_Adjuster.cxx \
32 Fl_Bitmap.cxx \
33 Fl_Browser.cxx \
34 Fl_Browser_.cxx \
35 Fl_Browser_load.cxx \
36 Fl_Box.cxx \
37 Fl_Button.cxx \
38 Fl_Chart.cxx \
39 Fl_Check_Browser.cxx \
40 Fl_Check_Button.cxx \
41 Fl_Choice.cxx \
42 Fl_Color_Chooser.cxx \
43 Fl_Counter.cxx \
44 Fl_Dial.cxx \
45 Fl_Dial_Base.cxx \
46 Fl_Device.cxx \
47 Fl_Double_Window.cxx \
48 Fl_File_Browser.cxx \
49 Fl_File_Chooser.cxx \
50 Fl_File_Chooser2.cxx \
51 Fl_File_Icon.cxx \
52 Fl_File_Input.cxx \
53 Fl_Group.cxx \
54 Fl_Help_View.cxx \
55 Fl_Image.cxx \
56 Fl_Input.cxx \
57 Fl_Input_.cxx \
58 Fl_Light_Button.cxx \
59 Fl_Menu.cxx \
60 Fl_Menu_.cxx \
61 Fl_Menu_Bar.cxx \
62 Fl_Sys_Menu_Bar.cxx \
63 Fl_Menu_Button.cxx \
64 Fl_Menu_Window.cxx \
65 Fl_Menu_add.cxx \
66 Fl_Menu_global.cxx \
67 Fl_Multi_Label.cxx \
68 Fl_Native_File_Chooser.cxx \
69 Fl_Overlay_Window.cxx \
70 Fl_Pack.cxx \
71 Fl_Paged_Device.cxx \
72 Fl_Pixmap.cxx \
73 Fl_Positioner.cxx \
74 Fl_Preferences.cxx \
75 Fl_Printer.cxx \
76 Fl_Progress.cxx \
77 Fl_Repeat_Button.cxx \
78 Fl_Return_Button.cxx \
79 Fl_Round_Button.cxx \
80 Fl_Scroll.cxx \
81 Fl_Scrollbar.cxx \
82 Fl_Shared_Image.cxx \
83 Fl_Single_Window.cxx \
84 Fl_Slider.cxx \
85 Fl_Table.cxx \
86 Fl_Table_Row.cxx \
87 Fl_Tabs.cxx \
88 Fl_Text_Buffer.cxx \
89 Fl_Text_Display.cxx \
90 Fl_Text_Editor.cxx \
91 Fl_Tile.cxx \
92 Fl_Tiled_Image.cxx \
93 Fl_Tree.cxx \
94 Fl_Tree_Item.cxx \
95 Fl_Tree_Item_Array.cxx \
96 Fl_Tree_Prefs.cxx \
97 Fl_Tooltip.cxx \
98 Fl_Valuator.cxx \
99 Fl_Value_Input.cxx \
100 Fl_Value_Output.cxx \
101 Fl_Value_Slider.cxx \
102 Fl_Widget.cxx \
103 Fl_Window.cxx \
104 Fl_Window_fullscreen.cxx \
105 Fl_Window_hotspot.cxx \
106 Fl_Window_iconize.cxx \
107 Fl_Wizard.cxx \
108 Fl_XBM_Image.cxx \
109 Fl_XPM_Image.cxx \
110 Fl_abort.cxx \
111 Fl_add_idle.cxx \
112 Fl_arg.cxx \
113 Fl_compose.cxx \
114 Fl_display.cxx \
115 Fl_get_key.cxx \
116 Fl_get_system_colors.cxx \
117 Fl_grab.cxx \
118 Fl_lock.cxx \
119 Fl_own_colormap.cxx \
120 Fl_visual.cxx \
121 Fl_x.cxx \
122 filename_absolute.cxx \
123 filename_expand.cxx \
124 filename_ext.cxx \
125 filename_isdir.cxx \
126 filename_list.cxx \
127 filename_match.cxx \
128 filename_setext.cxx \
129 fl_arc.cxx \
130 fl_arci.cxx \
131 fl_ask.cxx \
132 fl_boxtype.cxx \
133 fl_color.cxx \
134 fl_cursor.cxx \
135 fl_curve.cxx \
136 fl_diamond_box.cxx \
137 fl_dnd.cxx \
138 fl_draw.cxx \
139 Fl_Cairo.cxx \
140 fl_draw_image.cxx \
141 fl_draw_pixmap.cxx \
142 fl_encoding_latin1.cxx \
143 fl_encoding_mac_roman.cxx \
144 fl_engraved_label.cxx \
145 fl_file_dir.cxx \
146 fl_font.cxx \
147 fl_labeltype.cxx \
148 fl_line_style.cxx \
149 fl_open_uri.cxx \
150 fl_oval_box.cxx \
151 fl_overlay.cxx \
152 fl_read_image.cxx \
153 fl_rect.cxx \
154 fl_round_box.cxx \
155 fl_rounded_box.cxx \
156 fl_set_font.cxx \
157 fl_set_fonts.cxx \
158 fl_scroll_area.cxx \
159 fl_shadow_box.cxx \
160 fl_shortcut.cxx \
161 fl_show_colormap.cxx \
162 fl_symbols.cxx \
163 fl_vertex.cxx \
164 screen_xywh.cxx \
165 fl_utf8.cxx \
166 Fl_Theme.cxx \
167 Fl_Theme_Chooser.cxx \
168 Cairo_Theme.cxx \
169 Gleam_Theme.cxx \
170 Clean_Theme.cxx \
171 Crystal_Theme.cxx \
172 themes.cxx \
173 Fl_Rectangle.cxx \
174 ps_image.cxx
176 OBJCPPFILES = \
177 Fl_cocoa.mm \
178 Fl_Quartz_Printer.mm \
179 Fl_Native_File_Chooser_MAC.mm
181 GLCPPFILES = \
182 Fl_Gl_Choice.cxx \
183 Fl_Gl_Overlay.cxx \
184 Fl_Gl_Device_Plugin.cxx \
185 Fl_Gl_Window.cxx \
186 freeglut_geometry.cxx \
187 freeglut_stroke_mono_roman.cxx \
188 freeglut_stroke_roman.cxx \
189 freeglut_teapot.cxx \
190 gl_draw.cxx \
191 gl_start.cxx \
192 glut_compatability.cxx \
193 glut_font.cxx
195 IMGCPPFILES = \
196 fl_images_core.cxx \
197 Fl_BMP_Image.cxx \
198 Fl_File_Icon2.cxx \
199 Fl_GIF_Image.cxx \
200 Fl_Help_Dialog.cxx \
201 Fl_JPEG_Image.cxx \
202 Fl_PNG_Image.cxx \
203 Fl_PNM_Image.cxx
206 CFILES = fl_call_main.c flstring.c scandir.c numericsort.c vsnprintf.c fl_utf.c
208 UTF8CFILES = \
209 xutf8/case.c \
210 xutf8/is_right2left.c \
211 xutf8/is_spacing.c \
212 xutf8/keysym2Ucs.c \
213 xutf8/utf8Input.c \
214 xutf8/utf8Utils.c \
215 xutf8/utf8Wrap.c
217 ################################################################
218 FLTKFLAGS = -DFL_LIBRARY
219 include ../makeinclude
221 MMFILES = $(shell if test $(USEMMFILES) = Yes; then echo $(OBJCPPFILES); fi)
223 OBJECTS = $(MMFILES:.mm=.o) $(CPPFILES:.cxx=.o) $(CFILES:.c=.o) $(UTF8CFILES:.c=.o)
224 GLOBJECTS = $(GLCPPFILES:.cxx=.o)
225 IMGOBJECTS = $(IMGCPPFILES:.cxx=.o)
227 all: $(LIBNAME) $(DSONAME) \
228 $(GLLIBNAME) $(GLDSONAME) \
229 $(IMGLIBNAME) $(IMGDSONAME)
231 $(LIBNAME): $(OBJECTS)
232 echo $(LIBCOMMAND) $@ ...
233 $(RM) $@
234 $(LIBCOMMAND) $@ $(OBJECTS)
235 $(RANLIB) $@
237 libntk.so.1.3: $(OBJECTS)
238 echo $(DSOCOMMAND) $@ ...
239 $(DSOCOMMAND) $@ $(OBJECTS)
240 $(RM) libntk.so
241 $(LN) libntk.so.1.3 libntk.so
243 libntk.sl.1.3: $(OBJECTS)
244 echo $(DSOCOMMAND) $@ ...
245 $(DSOCOMMAND) $@ $(OBJECTS)
246 $(RM) libntk.sl
247 $(LN) libntk.sl.1.3 libntk.sl
249 libntk.1.3.dylib: $(OBJECTS)
250 echo $(DSOCOMMAND) $@ ...
251 $(DSOCOMMAND) $@ \
252 -install_name $(libdir)/$@ \
253 -current_version 1.3.0 \
254 -compatibility_version 1.3.0 \
255 $(OBJECTS) $(LDLIBS)
256 $(RM) libntk.dylib
257 $(LN) libntk.1.3.dylib libntk.dylib
259 libntk_s.a: $(OBJECTS)
260 echo $(DSOCOMMAND) libntk_s.o ...
261 $(DSOCOMMAND) libntk_s.o $(OBJECTS) $(IMAGELIBS)
262 echo $(LIBCOMMAND) libntk_s.a libntk_s.o
263 $(RM) $@
264 $(LIBCOMMAND) libntk_s.a libntk_s.o
265 $(CHMOD) +x libntk_s.a
267 $(GLLIBNAME): $(GLOBJECTS)
268 echo $(LIBCOMMAND) $@ ...
269 $(RM) $@
270 $(LIBCOMMAND) $@ $(GLOBJECTS)
271 $(RANLIB) $@
273 libntk_gl.so.1.3: $(GLOBJECTS) libntk.so.1.3
274 echo $(DSOCOMMAND) $@ ...
275 $(DSOCOMMAND) $@ $(GLOBJECTS) -L. -lntk
276 $(RM) libntk_gl.so
277 $(LN) libntk_gl.so.1.3 libntk_gl.so
279 libntk_gl.sl.1.3: $(GLOBJECTS) libntk.sl.1.3
280 echo $(DSOCOMMAND) $@ ...
281 $(DSOCOMMAND) $@ $(GLOBJECTS) -L. -lntk
282 $(RM) libntk_gl.sl
283 $(LN) libntk_gl.sl.1.3 libntk_gl.sl
285 libntk_gl.1.3.dylib: $(GLOBJECTS) libntk.1.3.dylib
286 echo $(DSOCOMMAND) $@ ...
287 $(DSOCOMMAND) $@ \
288 -install_name $(libdir)/$@ \
289 -current_version 1.3.0 \
290 -compatibility_version 1.3.0 \
291 $(GLOBJECTS) -L. $(GLDLIBS) -lntk
292 $(RM) libntk_gl.dylib
293 $(LN) libntk_gl.1.3.dylib libntk_gl.dylib
295 libntk_gl_s.a: $(GLOBJECTS)
296 echo $(DSOCOMMAND) libntk_gl_s.o ...
297 $(DSOCOMMAND) libntk_gl_s.o $(GLOBJECTS)
298 echo $(LIBCOMMAND) libntk_gl_s.a libntk_gl_s.o
299 $(RM) $@
300 $(LIBCOMMAND) libntk_gl_s.a libntk_gl_s.o
301 $(CHMOD) +x libntk_gl_s.a
303 $(IMGLIBNAME): $(IMGOBJECTS)
304 echo $(LIBCOMMAND) $@ ...
305 $(RM) $@
306 $(LIBCOMMAND) $@ $(IMGOBJECTS)
307 $(RANLIB) $@
309 libntk_images.so.1.3: $(IMGOBJECTS) libntk.so.1.3
310 echo $(DSOCOMMAND) $@ ...
311 $(DSOCOMMAND) $@ $(IMGOBJECTS) -L. $(IMAGELIBS) -lntk
312 $(RM) libntk_images.so
313 $(LN) libntk_images.so.1.3 libntk_images.so
315 libntk_images.sl.1.3: $(IMGOBJECTS) libntk.sl.1.3
316 echo $(DSOCOMMAND) $@ ...
317 $(DSOCOMMAND) $@ $(IMGOBJECTS) -L. $(IMAGELIBS) -lntk
318 $(RM) libntk_images.sl
319 $(LN) libntk_images.sl.1.3 libntk_images.sl
321 libntk_images.1.3.dylib: $(IMGOBJECTS) libntk.1.3.dylib
322 echo $(DSOCOMMAND) $@ ...
323 $(DSOCOMMAND) $@ \
324 -install_name $(libdir)/$@ \
325 -current_version 1.3.0 \
326 -compatibility_version 1.3.0 \
327 $(IMGOBJECTS) -L. $(LDLIBS) $(IMAGELIBS) -lntk
328 $(RM) libntk_images.dylib
329 $(LN) libntk_images.1.3.dylib libntk_images.dylib
331 libntk_images_s.a: $(IMGOBJECTS)
332 echo $(DSOCOMMAND) libntk_images_s.o ...
333 $(DSOCOMMAND) libntk_images_s.o $(IMGOBJECTS)
334 echo $(LIBCOMMAND) libntk_images_s.a libntk_images_s.o
335 $(RM) $@
336 $(LIBCOMMAND) libntk_images_s.a libntk_images_s.o
337 $(CHMOD) +x libntk_images_s.a
339 #-----------------------------------------------------------------
340 # - the import libraries libntk*.dll.a and the .dll files
341 # are created from the libntk*.a files. They are built
342 # into the src dir.
343 # - The _images, _gl, _forms and dlls must be linked
344 # against the import libraries in the src dir.
345 #-----------------------------------------------------------------
347 #-----------------------------------------------------------------
348 # cygwin GDI shared libraries
349 #-----------------------------------------------------------------
351 cygntknox-1.3.dll: $(LIBNAME)
352 echo $(DSOCOMMAND) $(LIBNAME) ...
353 $(DSOCOMMAND) $(LIBNAME) -Wl,--no-whole-archive \
354 -Wl,--out-implib=libntk.dll.a $(LDLIBS)
356 cygntknox_gl-1.3.dll: $(GLLIBNAME) cygntknox-1.3.dll
357 echo $(DSOCOMMAND) $(GLLIBNAME) ...
358 $(DSOCOMMAND) $(GLLIBNAME) -Wl,--no-whole-archive \
359 -Wl,--out-implib=libntk_gl.dll.a \
360 -L. -lntk $(GLDLIBS)
362 cygntknox_images-1.3.dll: $(IMGLIBNAME) cygntknox-1.3.dll
363 echo $(DSOCOMMAND) $(IMGLIBNAME) ...
364 $(DSOCOMMAND) $(IMGLIBNAME) -Wl,--no-whole-archive \
365 -Wl,--out-implib=libntk_images.dll.a \
366 -L. -lntk -Wl,--exclude-libs -Wl,libntk_png.a \
367 $(IMAGELIBS) $(LDLIBS)
369 #-----------------------------------------------------------------
370 # cygwin X11 shared libraries
371 #-----------------------------------------------------------------
373 cygntk-1.3.dll: $(LIBNAME)
374 echo $(DSOCOMMAND) $(LIBNAME) ...
375 $(DSOCOMMAND) $(LIBNAME) -Wl,--no-whole-archive \
376 -Wl,--out-implib=libntk.dll.a $(LDLIBS)
378 cygntk_gl-1.3.dll: $(GLLIBNAME) cygntk-1.3.dll
379 echo $(DSOCOMMAND) $(GLLIBNAME) ...
380 $(DSOCOMMAND) $(GLLIBNAME) -Wl,--no-whole-archive \
381 -Wl,--out-implib=libntk_gl.dll.a \
382 -L. -lntk $(GLDLIBS)
384 cygntk_images-1.3.dll: $(IMGLIBNAME) cygntk-1.3.dll
385 echo $(DSOCOMMAND) $(IMGLIBNAME) ...
386 $(DSOCOMMAND) $(IMGLIBNAME) -Wl,--no-whole-archive \
387 -Wl,--out-implib=libntk_images.dll.a \
388 -L. -lntk -Wl,--exclude-libs -Wl,libntk_png.a \
389 $(IMAGELIBS) $(LDLIBS)
391 mgwntknox-1.3.dll: $(LIBNAME)
392 echo $(DSOCOMMAND) $(LIBNAME) ...
393 $(DSOCOMMAND) $(LIBNAME) -Wl,--no-whole-archive \
394 -Wl,--out-implib=libntk.dll.a $(LDLIBS)
396 mgwntknox_gl-1.3.dll: $(GLLIBNAME) mgwntknox-1.3.dll
397 echo $(DSOCOMMAND) $(GLLIBNAME) ...
398 $(DSOCOMMAND) $(GLLIBNAME) -Wl,--no-whole-archive \
399 -Wl,--out-implib=libntk_gl.dll.a \
400 -L. -lntk $(GLDLIBS)
402 #-----------------------------------------------------
403 # See STR #1585 for --exclude-libs
404 #-----------------------------------------------------
406 mgwntknox_images-1.3.dll: $(IMGLIBNAME) mgwntknox-1.3.dll
407 echo $(DSOCOMMAND) $(IMGLIBNAME) ...
408 $(DSOCOMMAND) $(IMGLIBNAME) -Wl,--no-whole-archive \
409 -Wl,--out-implib=libntk_images.dll.a \
410 -L. -lntk -Wl,--exclude-libs -Wl,libntk_png.a \
411 $(IMAGELIBS) $(LDLIBS)
413 clean:
414 -$(RM) *.o xutf8/*.o *.dll.a core.* *~ *.bak *.bck
415 -$(RM) $(DSONAME) $(FLDSONAME) $(GLDSONAME) $(IMGDSONAME) \
416 $(LIBNAME) $(GLLIBNAME) \
417 $(IMGLIBNAME) \
418 libntk.so libntk_gl.so libntk_images.so \
419 libntk.sl libntk_gl.sl libntk_images.sl \
420 libntk.dylib \
421 libntk_gl.dylib libntk_images.dylib \
422 cmap core
424 depend: $(CPPFILES) $(MMFILES) $(FLCPPFILES) $(GLCPPFILES) $(IMGCPPFILES) $(CFILES) $(UTF8CFILES)
425 makedepend -Y -I.. -f makedepend $(CPPFILES) $(MMFILES) $(FLCPPFILES) \
426 $(GLCPPFILES) $(IMGCPPFILES) $(CFILES) $(UTF8CFILES)
428 # Automatically generated dependencies... generated on a Linux/Unix host !
429 include makedepend
431 # These dependencies aren't part of the makedepend file since
432 # they are part of the WIN32 and MacOS code base...
433 # Please add only non-Linux/Unix files or such that are optional
434 # (like "*xft*") here:
435 Fl_get_key.o: Fl_get_key_mac.cxx Fl_get_key_win32.cxx
436 Fl_Native_File_Chooser.o : Fl_Native_File_Chooser_WIN32.cxx
437 Fl_Theme_Chooser.o : Fl_Theme_Chooser.cxx
438 Fl_Native_File_Chooser_MAC.o: Fl_Native_File_Chooser_MAC.mm
439 Fl.o: Fl_win32.cxx
440 Fl_cocoa.o: Fl_cocoa.mm
441 fl_color.o: fl_color_mac.cxx fl_color_win32.cxx
442 fl_dnd.o: fl_dnd_win32.cxx fl_dnd_x.cxx
443 fl_draw_image.o: fl_draw_image_mac.cxx fl_draw_image_win32.cxx
444 fl_font.o: fl_font_mac.cxx fl_font_x.cxx fl_font_xft.cxx fl_font_win32.cxx
445 fl_read_image.o: fl_read_image_mac.cxx fl_read_image_win32.cxx
446 fl_set_fonts.o: fl_set_fonts_mac.cxx fl_set_fonts_x.cxx \
447 fl_set_fonts_xft.cxx fl_set_fonts_win32.cxx
448 Fl_Printer.o: Fl_GDI_Printer.cxx Fl_PostScript.cxx
449 Fl_Quartz_Printer.o: Fl_Quartz_Printer.mm
450 fl_arci.o: ../FL/mac.H ../FL/win32.H
451 Fl_arg.o: ../FL/mac.H ../FL/win32.H
452 fl_ask.o: ../FL/mac.H ../FL/win32.H
453 Fl_Bitmap.o: ../FL/mac.H ../FL/win32.H
454 fl_color.o: ../FL/mac.H ../FL/win32.H
455 fl_cursor.o: ../FL/mac.H ../FL/win32.H
456 fl_dnd.o: ../FL/mac.H ../FL/win32.H
457 Fl.o: ../FL/mac.H ../FL/win32.H
458 Fl_Double_Window.o: ../FL/mac.H ../FL/win32.H
459 fl_draw_image.o: ../FL/mac.H ../FL/win32.H
460 fl_draw_image_mac.o: ../FL/mac.H ../FL/win32.H
461 fl_draw_image_win32.o: ../FL/mac.H ../FL/win32.H
462 fl_draw_pixmap.o: ../FL/mac.H ../FL/win32.H
463 fl_encoding_latin1.o: ../FL/mac.H ../FL/win32.H
464 fl_encoding_mac_roman.o: ../FL/mac.H ../FL/win32.H
465 Fl_File_Chooser2.o: ../FL/mac.H ../FL/win32.H
466 fl_font.o: ../FL/mac.H ../FL/win32.H
467 Fl_get_key.o: ../FL/mac.H ../FL/win32.H
468 Fl_get_system_colors.o: ../FL/mac.H ../FL/win32.H
469 Fl_Gl_Choice.o: ../FL/mac.H ../FL/win32.H
470 Fl_Gl_Overlay.o: ../FL/mac.H ../FL/win32.H
471 Fl_Gl_Window.o: ../FL/mac.H ../FL/win32.H
472 Fl_grab.o: ../FL/mac.H ../FL/win32.H
473 Fl_Image.o: ../FL/mac.H ../FL/win32.H
474 fl_line_style.o: ../FL/mac.H ../FL/win32.H
475 Fl_Menu_Window.o: ../FL/mac.H ../FL/win32.H
476 fl_overlay.o: ../FL/mac.H ../FL/win32.H
477 Fl_Overlay_Window.o: ../FL/mac.H ../FL/win32.H
478 Fl_own_colormap.o: ../FL/mac.H ../FL/win32.H
479 Fl_Pixmap.o: ../FL/mac.H ../FL/win32.H
480 Fl_Printer.o: ../FL/mac.H ../FL/win32.H
481 fl_read_image.o: ../FL/mac.H ../FL/win32.H
482 fl_read_image_mac.o: ../FL/mac.H ../FL/win32.H
483 fl_read_image_win32.o: ../FL/mac.H ../FL/win32.H
484 fl_rect.o: ../FL/mac.H ../FL/win32.H
485 fl_scroll_area.o: ../FL/mac.H ../FL/win32.H
486 fl_set_font.o: ../FL/mac.H ../FL/win32.H
487 fl_set_fonts.o: ../FL/mac.H ../FL/win32.H
488 fl_shortcut.o: ../FL/mac.H ../FL/win32.H
489 fl_vertex.o: ../FL/mac.H ../FL/win32.H
490 Fl_visual.o: ../FL/mac.H ../FL/win32.H
491 Fl_Window_fullscreen.o: ../FL/mac.H ../FL/win32.H
492 Fl_Window_iconize.o: ../FL/mac.H ../FL/win32.H
493 Fl_x.o: ../FL/mac.H ../FL/win32.H
494 gl_draw.o: ../FL/mac.H ../FL/win32.H
495 gl_start.o: ../FL/mac.H ../FL/win32.H
497 ################################################################
499 install: $(LIBNAME) $(DSONAME) \
500 $(GLLIBNAME) $(GLDSONAME) \
501 $(IMGLIBNAME) $(IMGDSONAME)
502 echo "Installing libraries in $(DESTDIR)$(libdir)..."
503 -$(INSTALL_DIR) $(DESTDIR)$(libdir)
504 -$(INSTALL_DIR) $(DESTDIR)$(bindir)
505 $(RM) $(DESTDIR)$(libdir)/$(LIBBASENAME)
506 $(INSTALL_LIB) $(LIBNAME) $(DESTDIR)$(libdir)
507 $(INSTALL_LIB) $(IMGLIBNAME) $(DESTDIR)$(libdir)
508 $(RANLIB) $(DESTDIR)$(libdir)/$(LIBBASENAME)
509 if test x$(GLLIBNAME) != x; then \
510 $(INSTALL_LIB) $(GLLIBNAME) $(DESTDIR)$(libdir); \
511 $(RANLIB) $(DESTDIR)$(libdir)/$(GLLIBBASENAME); \
513 $(RANLIB) $(DESTDIR)$(libdir)/$(IMGLIBBASENAME)
514 if test x$(DSONAME) = xlibntk.so.1.3; then\
515 $(RM) $(DESTDIR)$(libdir)/libntk.so*;\
516 $(INSTALL_LIB) libntk.so.1.3 $(DESTDIR)$(libdir); \
517 $(LN) libntk.so.1.3 $(DESTDIR)$(libdir)/libntk.so;\
519 if test x$(DSONAME) = xlibntk.sl.1.3; then\
520 $(RM) $(DESTDIR)$(libdir)/libntk.sl*;\
521 $(INSTALL_LIB) libntk.sl.1.3 $(DESTDIR)$(libdir); \
522 $(LN) libntk.sl.1.3 $(DESTDIR)$(libdir)/libntk.sl;\
524 if test x$(DSONAME) = xlibntk.1.3.dylib; then\
525 $(RM) $(DESTDIR)$(libdir)/libntk.*dylib;\
526 $(INSTALL_LIB) libntk.1.3.dylib $(DESTDIR)$(libdir); \
527 $(LN) libntk.1.3.dylib $(DESTDIR)$(libdir)/libntk.dylib;\
529 if test x$(DSONAME) = xlibntk_s.a; then\
530 $(RM) $(DESTDIR)$(libdir)/libntk_s.a;\
531 $(INSTALL_LIB) libntk_s.a $(DESTDIR)$(libdir); \
533 if test x$(DSONAME) = xcygntknox-1.3.dll; then\
534 $(RM) $(DESTDIR)$(bindir)/$(DSONAME);\
535 $(INSTALL_LIB) $(DSONAME) $(DESTDIR)$(bindir); \
536 $(RM) $(DESTDIR)$(libdir)/libntk.dll.a;\
537 $(INSTALL_LIB) libntk.dll.a $(DESTDIR)$(libdir); \
539 if test x$(DSONAME) = xmgwntknox-1.3.dll; then\
540 $(RM) $(DESTDIR)$(bindir)/$(DSONAME);\
541 $(INSTALL_LIB) $(DSONAME) $(DESTDIR)$(bindir); \
542 $(RM) $(DESTDIR)$(libdir)/libntk.dll.a;\
543 $(INSTALL_LIB) libntk.dll.a $(DESTDIR)$(libdir); \
545 if test x$(GLDSONAME) = xlibntk_gl.so.1.3; then\
546 $(RM) $(DESTDIR)$(libdir)/libntk_gl.so*;\
547 $(INSTALL_LIB) libntk_gl.so.1.3 $(DESTDIR)$(libdir); \
548 $(LN) libntk_gl.so.1.3 $(DESTDIR)$(libdir)/libntk_gl.so;\
550 if test x$(GLDSONAME) = xlibntk_gl.sl.1.3; then\
551 $(RM) $(DESTDIR)$(libdir)/libntk_gl.sl*;\
552 $(INSTALL_LIB) libntk_gl.sl.1.3 $(DESTDIR)$(libdir); \
553 $(LN) libntk_gl.sl.1.3 $(DESTDIR)$(libdir)/libntk_gl.sl;\
555 if test x$(GLDSONAME) = xlibntk_gl.1.3.dylib; then\
556 $(RM) $(DESTDIR)$(libdir)/libntk_gl.*dylib;\
557 $(INSTALL_LIB) libntk_gl.1.3.dylib $(DESTDIR)$(libdir); \
558 $(LN) libntk_gl.1.3.dylib $(DESTDIR)$(libdir)/libntk_gl.dylib;\
560 if test x$(GLDSONAME) = xlibntk_gl_s.a; then\
561 $(RM) $(DESTDIR)$(libdir)/libntk_gl_s.a;\
562 $(INSTALL_LIB) libntk_gl_s.a $(DESTDIR)$(libdir); \
564 if test x$(GLDSONAME) = xcygntknox_gl-1.3.dll; then\
565 $(RM) $(DESTDIR)$(bindir)/$(GLDSONAME);\
566 $(INSTALL_LIB) $(GLDSONAME) $(DESTDIR)$(bindir); \
567 $(RM) $(DESTDIR)$(libdir)/libntk_gl.dll.a;\
568 $(INSTALL_LIB) libntk_gl.dll.a $(DESTDIR)$(libdir); \
570 if test x$(GLDSONAME) = xmgwntknox_gl-1.3.dll; then\
571 $(RM) $(DESTDIR)$(bindir)/$(GLDSONAME);\
572 $(INSTALL_LIB) $(GLDSONAME) $(DESTDIR)$(bindir); \
573 $(RM) $(DESTDIR)$(libdir)/libntk_gl.dll.a;\
574 $(INSTALL_LIB) libntk_gl.dll.a $(DESTDIR)$(libdir); \
576 if test x$(IMGDSONAME) = xlibntk_images.so.1.3; then\
577 $(RM) $(DESTDIR)$(libdir)/libntk_images.so*;\
578 $(INSTALL_LIB) libntk_images.so.1.3 $(DESTDIR)$(libdir); \
579 $(LN) libntk_images.so.1.3 $(DESTDIR)$(libdir)/libntk_images.so;\
581 if test x$(IMGDSONAME) = xlibntk_images.sl.1.3; then\
582 $(RM) $(DESTDIR)$(libdir)/libntk_images.sl*;\
583 $(INSTALL_LIB) libntk_images.sl.1.3 $(DESTDIR)$(libdir); \
584 $(LN) libntk_images.sl.1.3 $(DESTDIR)$(libdir)/libntk_images.sl;\
586 if test x$(IMGDSONAME) = xlibntk_images.1.3.dylib; then\
587 $(RM) $(DESTDIR)$(libdir)/libntk_images.*dylib;\
588 $(INSTALL_LIB) libntk_images.1.3.dylib $(DESTDIR)$(libdir); \
589 $(LN) libntk_images.1.3.dylib $(DESTDIR)$(libdir)/libntk_images.dylib;\
591 if test x$(IMGDSONAME) = xlibntk_images_s.a; then\
592 $(RM) $(DESTDIR)$(libdir)/libntk_images_s.a;\
593 $(INSTALL_LIB) libntk_images_s.a $(DESTDIR)$(libdir); \
595 if test x$(IMGDSONAME) = xcygntknox_images-1.3.dll; then\
596 $(RM) $(DESTDIR)$(bindir)/$(IMGDSONAME); \
597 $(INSTALL_LIB) $(IMGDSONAME) $(DESTDIR)$(bindir); \
598 $(RM) $(DESTDIR)$(libdir)/libntk_images.dll.a;\
599 $(INSTALL_LIB) libntk_images.dll.a $(DESTDIR)$(libdir); \
601 if test x$(IMGDSONAME) = xmgwntknox_images-1.3.dll; then\
602 $(RM) $(DESTDIR)$(bindir)/$(IMGDSONAME); \
603 $(INSTALL_LIB) $(IMGDSONAME) $(DESTDIR)$(bindir); \
604 $(RM) $(DESTDIR)$(libdir)/libntk_images.dll.a;\
605 $(INSTALL_LIB) libntk_images.dll.a $(DESTDIR)$(libdir); \
609 uninstall:
610 echo "Uninstalling libraries..."
611 $(RM) $(DESTDIR)$(libdir)/$(LIBBASENAME)
612 if test x$(DSONAME) = xlibntk.so.1.3; then\
613 $(RM) $(DESTDIR)$(libdir)/libntk.so*;\
615 if test x$(DSONAME) = xlibntk.sl.1.3; then\
616 $(RM) $(DESTDIR)$(libdir)/libntk.sl*;\
618 if test x$(DSONAME) = xlibntk.1.3.dylib; then\
619 $(RM) $(DESTDIR)$(libdir)/libntk.*dylib;\
621 if test x$(DSONAME) = xlibntk_s.a; then\
622 $(RM) $(DESTDIR)$(libdir)/libntk_s.a;\
624 if test x$(DSONAME) = xcygntknox-1.3.dll; then\
625 $(RM) $(DESTDIR)$(bindir)/$(DSONAME); \
626 $(RM) $(DESTDIR)$(libdir)/libntk.dll.a;\
628 if test x$(DSONAME) = xcygntk-1.3.dll; then\
629 $(RM) $(DESTDIR)$(bindir)/$(DSONAME); \
630 $(RM) $(DESTDIR)$(libdir)/libntk.dll.a;\
632 if test x$(DSONAME) = xmgwntknox-1.3.dll; then\
633 $(RM) $(DESTDIR)$(bindir)/$(DSONAME); \
634 $(RM) $(DESTDIR)$(libdir)/libntk.dll.a;\
636 if test x$(GLLIBNAME) != x; then\
637 $(RM) $(DESTDIR)$(libdir)/$(GLLIBBASENAME);\
639 if test x$(GLDSONAME) = xlibntk_gl.so.1.3; then\
640 $(RM) $(DESTDIR)$(libdir)/libntk_gl.so*;\
642 if test x$(GLDSONAME) = xlibntk_gl.sl.1.3; then\
643 $(RM) $(DESTDIR)$(libdir)/libntk_gl.sl*;\
645 if test x$(GLDSONAME) = xlibntk_gl.1.3.dylib; then\
646 $(RM) $(DESTDIR)$(libdir)/libntk_gl.*dylib;\
648 if test x$(GLDSONAME) = xlibntk_gl_s.a; then\
649 $(RM) $(DESTDIR)$(libdir)/libntk_gl_s.a;\
651 if test x$(GLDSONAME) = xcygntknox_gl-1.3.dll; then\
652 $(RM) $(DESTDIR)$(bindir)/$(GLDSONAME); \
653 $(RM) $(DESTDIR)$(libdir)/libntk_gl.dll.a;\
655 if test x$(GLDSONAME) = xcygntk_gl-1.3.dll; then\
656 $(RM) $(DESTDIR)$(bindir)/$(GLDSONAME); \
657 $(RM) $(DESTDIR)$(libdir)/libntk_gl.dll.a;\
659 if test x$(GLDSONAME) = xmgwntknox_gl-1.3.dll; then\
660 $(RM) $(DESTDIR)$(bindir)/$(GLDSONAME); \
661 $(RM) $(DESTDIR)$(libdir)/libntk_gl.dll.a;\
663 if test x$(IMGLIBNAME) != x; then\
664 $(RM) $(DESTDIR)$(libdir)/$(IMGLIBBASENAME);\
666 if test x$(IMGDSONAME) = xlibntk_images.so.1.3; then\
667 $(RM) $(DESTDIR)$(libdir)/libntk_images.so*;\
669 if test x$(IMGDSONAME) = xlibntk_images.sl.1.3; then\
670 $(RM) $(DESTDIR)$(libdir)/libntk_images.sl*;\
672 if test x$(IMGDSONAME) = xlibntk_images.1.3.dylib; then\
673 $(RM) $(DESTDIR)$(libdir)/libntk_images.*dylib;\
675 if test x$(IMGDSONAME) = xlibntk_images_s.a; then\
676 $(RM) $(DESTDIR)$(libdir)/libntk_images_s.a;\
678 if test x$(IMGDSONAME) = xcygntknox_images-1.3.dll; then\
679 $(RM) $(DESTDIR)$(bindir)/$(IMGDSONAME); \
680 $(RM) $(DESTDIR)$(libdir)/libntk_images.dll.a;\
682 if test x$(IMGDSONAME) = xcygntk_images-1.3.dll; then\
683 $(RM) $(DESTDIR)$(bindir)/$(IMGDSONAME); \
684 $(RM) $(DESTDIR)$(libdir)/libntk_images.dll.a;\
686 if test x$(IMGDSONAME) = xmgwntknox_images-1.3.dll; then\
687 $(RM) $(DESTDIR)$(bindir)/$(IMGDSONAME); \
688 $(RM) $(DESTDIR)$(libdir)/libntk_images.dll.a;\
692 # End of "$Id: Makefile 8389 2011-02-06 14:08:08Z manolo $".