1
# $Id: Makefile.in,v 1.66 2005/04/24 23:06:20 tom Exp $
1
# $Id: Makefile.in,v 1.74 2006/04/17 23:13:49 tom Exp $
3
# Copyright 2001-2004,2005 Thomas Dickey
3
# Copyright 2001-2005,2006 Thomas Dickey
4
4
# Copyright 1999, Mike Glover
5
5
# All rights reserved.
265
268
@echo creating $@; $(LIBTOOL_CREATE) $@ $(LIB_OBJECT)
268
cdkshlib $(CDKSHLIB) :: $(CDKSHOBJS) headers.sed
271
cdkshlib $(CDKSHLIB) :: $(CDKSHOBJS)
269
272
gcc -shared -Wl,-soname=$(SONAME) $(LDFLAGS) -o $(CDKSHLIB) $(CDKSHOBJS)
320
323
# This installs the CDK man pages.
323
installCDKManPages :: headers.sed $(AUTO_MAN) $(MAN_DIR)
326
installCDKManPages :: $(INCLUDE_DIR) headers.sed $(MAN_DIR) manpage.sed $(AUTO_MAN)
324
327
@echo "Installing the CDK man pages in $(MAN_DIR) ..."
325
328
@for i in $(AUTO_MAN); do \
326
$(SHELL) $(srcdir)/headers.sh -x "$(INSTALL_DATA)" -d $(MAN_DIR) -s . $$i; \
327
$(SHELL) $(srcdir)/manlinks.sh installing $(srcdir) $(MAN_DIR) $$i; \
329
$(SHELL) $(srcdir)/headers.sh \
330
-x "$(INSTALL_DATA)" \
334
-e manpage.sed $$i; \
335
$(SHELL) $(srcdir)/manlinks.sh installing $(srcdir) $(MAN_DIR) $(MANSECT) $$i; \
329
337
@for i in $(CDKMAN); do \
330
$(SHELL) $(srcdir)/headers.sh -x "$(INSTALL_DATA)" -d $(MAN_DIR) -s . $(srcdir)/man/$$i; \
331
$(SHELL) $(srcdir)/manlinks.sh installing $(srcdir) $(MAN_DIR) $(srcdir)/man/$$i; \
338
$(SHELL) $(srcdir)/headers.sh \
339
-x "$(INSTALL_DATA)" \
343
-e manpage.sed $(srcdir)/man/$$i; \
344
$(SHELL) $(srcdir)/manlinks.sh installing $(srcdir) $(MAN_DIR) $(MANSECT) $(srcdir)/man/$$i; \
335
348
uninstallCDKManPages ::
336
349
@echo "Uninstalling the CDK man pages from $(MAN_DIR) ..."
337
350
@- for i in $(AUTO_MAN); do \
338
$(RM) $(MAN_DIR)/`basename $$i`; \
339
$(SHELL) $(srcdir)/manlinks.sh removing $(srcdir) $(MAN_DIR) $(srcdir)/$$i; \
351
$(SHELL) $(srcdir)/manlinks.sh removing $(srcdir) $(MAN_DIR) $(MANSECT) $(srcdir)/$$i; \
341
353
@- for i in $(CDKMAN); do \
342
$(RM) $(MAN_DIR)/$$i; \
343
$(SHELL) $(srcdir)/manlinks.sh removing $(srcdir) $(MAN_DIR) $(srcdir)/man/$$i; \
354
$(SHELL) $(srcdir)/manlinks.sh removing $(srcdir) $(MAN_DIR) $(MANSECT) $(srcdir)/man/$$i; \
347
358
# This installs the header files.
350
installCDKHeaderFiles :: headers.sed $(MY_HDR) $(INCLUDE_DIR)
361
installCDKHeaderFiles :: $(INCLUDE_DIR) headers.sed $(MY_HDR)
351
362
@echo "Installing CDK header files in $(INCLUDE_DIR)..."
352
363
$(SHELL) $(srcdir)/headers.sh -x "$(INSTALL_DATA)" -d $(INCLUDE_DIR) -s $(srcdir) $(MY_HDR)
353
364
@for i in $(CDKHDR); do \
396
407
headers.sed : $(srcdir)/headers.sh
397
408
$(SHELL) $(srcdir)/headers.sh -p CDK -c include/cdk_config.h -d $(INCLUDE_DIR) -s $(srcdir)/include -i -s include -i
412
@echo "s/(3)/($(MANSECT))/g" >$@
413
@echo "/^\.TH/s/\<3\>/$(MANSECT)/" >>$@
399
415
@MAKE_LOWER_TAGS@tags :
400
416
@MAKE_LOWER_TAGS@ ctags *.[ch] */*.[ch]
409
425
@- $(RM) -r autom4te.cache
410
426
- $(LIBTOOL_CLEAN) $(RM) $(LIB_OBJECT) $(CDKLIB)
411
427
- $(RM) *.i *.os $(CDKSHLIB)
412
- $(RM) headers.sed core tags *~
428
- $(RM) headers.sed manpage.sed core tags *~
413
429
$(RM) $(AUTO_HDR)
414
430
$(RM) $(AUTO_SRC)
415
431
$(RM) $(AUTO_MAN)
467
483
SCALE_C = $(srcdir)/gen-scale.c
468
484
SCALE_M = $(srcdir)/man/gen-scale.3
486
MKDIR_MAN = test -d man || mkdir man
470
488
include/dscale.h : $(SCALE_H)
471
489
$(GEN_SCALE) DSCALE DScale Double double $(SCALE_H) >$@
472
490
dscale.c : $(SCALE_C) $(AUTO_HDR)
473
491
$(GEN_SCALE) DSCALE DScale Double double $(SCALE_C) >$@
474
492
man/cdk_dscale.3 : $(SCALE_M) man
475
494
$(GEN_SCALE) DSCALE DScale Double double $(SCALE_M) >$@
477
496
include/fscale.h : $(SCALE_H)
479
498
fscale.c : $(SCALE_C) $(AUTO_HDR)
480
499
$(GEN_SCALE) FSCALE FScale Float float $(SCALE_C) >$@
481
500
man/cdk_fscale.3 : $(SCALE_M) man
482
502
$(GEN_SCALE) FSCALE FScale Float float $(SCALE_M) >$@
484
504
include/scale.h : $(SCALE_H)
486
506
scale.c : $(SCALE_C) $(AUTO_HDR)
487
507
$(GEN_SCALE) SCALE Scale Int int $(SCALE_C) >$@
488
508
man/cdk_scale.3 : $(SCALE_M) man
489
510
$(GEN_SCALE) SCALE Scale Int int $(SCALE_M) >$@
491
512
include/uscale.h : $(SCALE_H)
493
514
uscale.c : $(SCALE_C) $(AUTO_HDR)
494
515
$(GEN_SCALE) USCALE UScale Unsigned unsigned $(SCALE_C) >$@
495
516
man/cdk_uscale.3 : $(SCALE_M) man
496
518
$(GEN_SCALE) USCALE UScale Unsigned unsigned $(SCALE_M) >$@
498
520
SLIDER_H = $(srcdir)/include/gen-slider.h
504
526
fslider.c : $(SLIDER_C) $(AUTO_HDR)
505
527
$(GEN_SCALE) FSLIDER FSlider Float float $(SLIDER_C) >$@
506
528
man/cdk_fslider.3 : $(SLIDER_M) man
507
530
$(GEN_SCALE) FSLIDER FSlider Float float $(SLIDER_M) >$@
509
532
include/slider.h : $(SLIDER_H)
511
534
slider.c : $(SLIDER_C) $(AUTO_HDR)
512
535
$(GEN_SCALE) SLIDER Slider Int int $(SLIDER_C) >$@
513
536
man/cdk_slider.3 : $(SLIDER_M) man
514
538
$(GEN_SCALE) SLIDER Slider Int int $(SLIDER_M) >$@
516
540
include/uslider.h : $(SLIDER_H)