Makefile.am 2.63 KB
Newer Older
1 2 3 4 5 6 7
# GObject - GLib Type, Object, Parameter and Signal Library
# Copyright (C) 1997,98,99,2000 Tim Janik and Red Hat, Inc.
#
## Process this file with automake to produce Makefile.in

SUBDIRS =

8
INCLUDES = -I$(top_srcdir) -I$(top_builddir) @GLIB_DEBUG_FLAGS@
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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82

# libraries to compile and install
lib_LTLIBRARIES = libgobject.la

# provide g_logv() domain
DEFS += -DG_LOG_DOMAIN=g_log_domain_gobject

# libtool stuff: set version and export symbols for resolving
libgobjectincludedir = $(includedir)/gobject
libgobject_la_LDFLAGS = @STRIP_BEGIN@ \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	-release $(LT_RELEASE) \
	-export-dynamic \
@STRIP_END@
libgobject_la_LIBADD = # $(libglib)

#
# setup source file variables
#
# GObject header files for public installation (non-generated)
gobject_public_h_sources = @STRIP_BEGIN@ \
	gvalue.h \
	gparam.h \
	gparamspecs.h \
	genums.h \
	gobject.h \
	gtype.h \
	gvaluecollector.h \
@STRIP_END@
# private GObject header files
gobject_private_h_sources = @STRIP_BEGIN@ \
@STRIP_END@

# GObject C sources to build the library from
gobject_c_sources = @STRIP_BEGIN@ \
	gvalue.c \
	gparam.c \
	gparamspecs.c \
	genums.c \
	gobject.c \
	gtype.c \
@STRIP_END@

# non-header sources (headers should be specified in the above variables)
# that don't serve as direct make target sources, i.e. they don't have
# their own .lo rules and don't get publically installed
gobject_extra_sources = @STRIP_BEGIN@ \
@STRIP_END@

#
# setup GObject sources and their dependancies
#
gobject_h_sources = $(gobject_private_h_sources) $(gobject_public_h_sources) # $(gobject_built_public_sources)
libgobjectinclude_HEADERS = $(gobject_public_h_sources) # $(gobject_built_public_sources)
libgobject_la_SOURCES = $(gobject_c_sources)
MAINTAINERCLEANFILES += # $(gobject_built_public_sources) $(gobject_built_sources)
EXTRA_HEADERS +=
EXTRA_DIST += $(gobject_private_h_sources)
EXTRA_DIST += $(gobject_extra_sources) # $(gobject_built_sources) $(gobject_built_public_sources)

#
# programs to compile and install
#
bin_PROGRAMS = gobject-query
# source files
gobject_query_SOURCES = gobject-query.c
# link programs against libgobject
progs_LDADD = ../libglib.la libgobject.la
gobject_query_LDADD = $(progs_LDADD)

#
# auxillary files
#
EXTRA_DIST += \
83 84 85 86 87 88 89 90 91 92 93 94
	TODO		\
	makefile.mingw	\
	makefile.mingw.in \
	gobject.rc	\
	gobject.rc.in

gobject.rc: $(top_builddir)/config.status $(top_srcdir)/gobject/gobject.rc.in
	cd $(top_builddir) && CONFIG_FILES=gobject/$@ CONFIG_HEADERS= $(SHELL) ./config.status

makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gobject/makefile.mingw.in
	cd $(top_builddir) && CONFIG_FILES=gobject/$@ CONFIG_HEADERS= $(SHELL) ./config.status