source: trunk/lang/ruby/Makefile.in @ 4346

Last change on this file since 4346 was 3471, checked in by ldelgass, 11 years ago

Makefile fixes: make 'install' target always depend on 'all' target. This
ensures that an up to date build exists before installing, and also permits
the use of "make install" in place of "make all install" or "make all; make install". It doesn't affect the existing build scripts. Likewise, make 'distclean'
always depend on 'clean'. Remove empty contour objects example, as there is no
corresponding object class. Also declare all the standard targets 'all, install,
etc' in the .PHONY section for performance.

File size: 1.8 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12INSTALL         = @INSTALL@
13SOEXT           = @SHLIB_SUFFIX@
14
15
16RUBY            = @RUBY@
17RUBY_CPPFLAGS   = @RUBY_CPPFLAGS@
18RUBY_LDFLAGS    = @RUBY_LDFLAGS@
19RUBY_LIBRUBYARG = @RUBY_LIBRUBYARG@
20destdir         = $(libdir)/ruby
21rubydir         = $$RAPPTURE_INSTALL_DIR/lib/ruby
22
23CXX             = @CXX@
24CC              = @CXX@
25CFLAGS_DEBUG    = @CFLAGS_DEBUG@
26CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
27STLIB_LD        = @STLIB_LD@
28SHLIB_LD        = @SHLIB_LD@
29SHLIB_CFLAGS    = @SHLIB_CFLAGS@
30SHLIB_LDFLAGS   = @SHLIB_LDFLAGS@
31SHLIB_SUFFIX    = @SHLIB_SUFFIX@
32CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
33LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
34
35DEFINES         = -Wall -DRAISE_EXCEPTIONS
36CFLAGS          = @CFLAGS@ @SHLIB_CFLAGS@
37INCLUDES        = -I$(srcdir) \
38                  -I$(srcdir)/../../src/core \
39                  -I$(includedir) \
40                  $(RUBY_CPPFLAGS)
41
42RANLIB          = @RANLIB@
43MKDIR_P         = @MKDIR_P@
44AR              = ar
45VPATH           = $(srcdir)
46RM              = rm -f
47
48CDEBUGFLAGS     = -g -Wall
49
50LIBS            = \
51                -L../../src/core -lrappture \
52                $(RUBY_LIBRUBYARG)
53
54CXX_SWITCHES    = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)
55
56
57OBJS            = \
58                Ruby_Rappture.o
59
60lib             = Rappture$(SOEXT)
61
62all: $(lib)
63
64$(lib): $(OBJS)
65        $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \
66                $(LIB_SEARCH_DIRS) $(LIBS)
67
68.cc.o:
69        $(CXX) $(CXX_SWITCHES) -c $?
70
71install: $(lib)
72        $(MKDIR_P) -m 0755 $(destdir)
73        $(INSTALL) -m 0555 $(lib) $(destdir)
74
75clean:
76        $(RM) $(lib) $(OBJS)
77
78distclean: clean
79        $(RM) Makefile *~ build.rb
80
81Makefile.ruby: build.rb
82        $(RUBY) build.rb
83
84old: Makefile.ruby
85        $(MAKE) -f Makefile.ruby all
Note: See TracBrowser for help on using the repository browser.