File: Makefile.am

package info (click to toggle)
guile-gtk-1.2 0.31-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,544 kB
  • ctags: 2,413
  • sloc: sh: 11,073; ansic: 3,380; lisp: 1,058; makefile: 106
file content (60 lines) | stat: -rw-r--r-- 1,732 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- Makefile -*-

SUBDIRS = gtk gtk-1.2 examples

INCLUDES = -I$(srcdir) -I. $(GTK_CFLAGS) $(GUILE_CFLAGS)

bin_SCRIPTS     = build-guile-gtk-1.2
lib_LTLIBRARIES = libguilegtk-1.2.la

libguilegtk_1_2_la_SOURCES = guile-gtk.c \
	                     guile-gtk.h \
                             guile-compat.c \
                             gtk-compat.c \
			     gtk-support.c \
                             gtk-threads.c \
                             gtk-threads.h \
	                     gdk-glue.c \
			     gtk-glue.c

libguilegtk_1_2_la_LDFLAGS = -version-info 0:0:0 -export-dynamic
libguilegtk_1_2_la_LIBADD = $(GTK_LIBS)

include_HEADERS = guile-gtk.h

# Also link a small program that merely tests whether all external
# references of libguilegtk-1.2 are satisfied.
#
check_PROGRAMS = linktest

linktest_SOURCES = linktest.c
linktest_LDADD = libguilegtk-1.2.la $(GUILE_LDFLAGS)

gtkdefs = gtk-1.2.defs
gdkdefs = gdk-1.2.defs

defsdir = $(datadir)/guile-gtk/
defs_DATA = $(gtkdefs) $(gdkdefs) 

install-exec-local:
	rm -f $(DESTDIR)$(bindir)/build-guile-gtk
	rm -f $(DESTDIR)$(bindir)/guile-gtk
	ln -sf build-guile-gtk-1.2 $(DESTDIR)$(bindir)/build-guile-gtk

BUILT_SOURCES = gdk-glue.c gtk-glue.c guile-gtk.x gtk-support.x

CLEANFILES = gdk-glue.c gtk-glue.c guile-gtk.x gtk-support.x

SUFFIXES = .x
.c.x:
	guile-1.6-snarf -o $@ $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)

BUILD = guile -l ./gtk-1.2/config.scm -s $(srcdir)/build-guile-gtk-1.2

gtk-glue.c: $(gtkdefs) $(gdkdefs) build-guile-gtk-1.2
	$(BUILD) -I $(srcdir) glue $(gtkdefs) >tmpt && mv tmpt $@

gdk-glue.c: $(gdkdefs) build-guile-gtk-1.2
	$(BUILD) -I $(srcdir) glue $(gdkdefs) >tmpd && mv tmpd $@

EXTRA_DIST = gdk-1.2.defs gtk-1.2.defs build-guile-gtk-1.2