Changeset 1961


Ignore:
Timestamp:
Nov 15, 2007, 1:27:40 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Use autotools for Ruby bindings
Location:
libcaca/trunk/ruby
Files:
1 added
3 deleted
1 edited
4 moved

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/ruby/Makefile.am

    r1960 r1961  
    11# $Id: $
     2rubylibdir=$(RUBY_SITEARCHDIR)
    23
    34if USE_RUBY
    4 noinst_DATA = cucul/cucul.so caca/caca.so
     5rubylib_LTLIBRARIES = cucul.la
    56endif
    67
    7 EXTRA_DIST = cucul/extconf.rb \
    8              cucul/cucul.c \
    9              cucul/cucul-canvas.c \
    10              cucul/cucul-canvas.h \
    11              cucul/test.rb \
    12              cucul/t/tc_frame.rb \
    13              caca/extconf.rb
     8cucul_la_CPPFLAGS = -I$(top_srcdir)/cucul -I$(RUBY_ARCHDIR)
     9cucul_la_SOURCES = cucul.c cucul-canvas.c
     10cucul_la_LDFLAGS = -module -avoid-version -shared -L$(RUBY_LIBDIR) -l$(RUBY_SO_NAME)
     11cucul_la_LIBADD = ../cucul/libcucul.la
    1412
    15 DISTCLEANFILES = cucul/Makefile caca/Makefile
     13EXTRA_DIST = cucul-canvas.h \
     14             test.rb \
     15             t/tc_frame.rb
    1616
    17 cucul/cucul.so:
    18         ruby -C cucul extconf.rb
    19         make -C cucul
    20 
    21 caca/caca.so: cucul/cucul.so
    22         ruby -C caca extconf.rb
    23         make -C caca
    24 
    25 clean-local:
    26         [ ! -f cucul/Makefile ] || make -C cucul clean
    27         [ ! -f caca/Makefile ] || make -C caca clean
    28 
    29 distclean-local:
    30         rm -f cucul/Makefile caca/Makefile
     17CFLAGS+=-Wno-strict-prototypes -Wno-missing-prototypes
Note: See TracChangeset for help on using the changeset viewer.