Makefile.am 1.81 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1 2
## Process this file with automake to produce Makefile.in

3
# build . first, then SUBDIRS
4
SUBDIRS = gmodule gthread docs 
5 6 7
all-recursive-am: all-am
# alpha `automake' supports this better
#SUBDIRS = . gmodule docs
Tim Janik's avatar
Tim Janik committed
8

Owen Taylor's avatar
Owen Taylor committed
9 10 11
configincludedir = $(pkglibdir)/include

bin_SCRIPTS=glib-config
Tim Janik's avatar
Tim Janik committed
12 13
BUILT_SOURCES=glib-config
glib-config: glib-config.in
Owen Taylor's avatar
Owen Taylor committed
14

15
INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
16

17 18 19 20 21 22 23 24 25 26
EXTRA_DIST = \
	glib.m4		\
	glib.spec	\
	sanity_check	\
	README.win32	\
	glib.def	\
	makefile.lcc	\
	makefile.msc	\
	glibconfig.h.win32

27
lib_LTLIBRARIES = libglib.la
Owen Taylor's avatar
Owen Taylor committed
28

29
libglib_la_SOURCES = \
Owen Taylor's avatar
Owen Taylor committed
30 31 32 33
		garray.c	\
		gcache.c	\
		gcompletion.c	\
		gdataset.c	\
34
                gdate.c         \
Owen Taylor's avatar
Owen Taylor committed
35 36
		gerror.c	\
		ghash.c		\
Tim Janik's avatar
Tim Janik committed
37
		ghook.c		\
Owen Taylor's avatar
Owen Taylor committed
38
		glist.c		\
39 40 41
		gmain.c         \
		giochannel.c    \
		giounix.c       \
Owen Taylor's avatar
Owen Taylor committed
42 43
		gmem.c		\
		gmessages.c	\
Tim Janik's avatar
Tim Janik committed
44
		gnode.c		\
Owen Taylor's avatar
Owen Taylor committed
45 46 47 48
		gprimes.c	\
		gslist.c	\
		gtimer.c	\
		gtree.c		\
49
		grel.c		\
Owen Taylor's avatar
Owen Taylor committed
50
		gstring.c	\
51
		gstrfuncs.c	\
Owen Taylor's avatar
Owen Taylor committed
52
		gscanner.c	\
53 54
		gutils.c	\
		gmutex.c
Owen Taylor's avatar
Owen Taylor committed
55 56 57 58 59 60 61

include_HEADERS = \
		glib.h

configinclude_DATA = \
		glibconfig.h

62 63 64 65 66 67 68
BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
glibconfig.h: stamp-gc-h
	@:
stamp-gc-h: config.status
	CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
	echo timestamp > stamp-gc-h

69 70
libglib_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE)
Owen Taylor's avatar
Owen Taylor committed
71

72
noinst_PROGRAMS = testglib testgdate testgdateparser
73
testglib_LDADD = libglib.la
74 75
testgdate_LDADD = libglib.la
testgdateparser_LDADD = libglib.la
Owen Taylor's avatar
Owen Taylor committed
76 77 78 79

m4datadir = $(datadir)/aclocal
m4data_DATA = glib.m4

80
.PHONY: files release sanity snapshot
Owen Taylor's avatar
Owen Taylor committed
81 82 83 84 85 86 87

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done

release:
88 89 90 91 92 93 94 95
	rm -rf .deps */.deps
	cd docs && make glib.html
	$(MAKE) distcheck

sanity:
	./sanity_check $(VERSION)

snapshot:
Owen Taylor's avatar
Owen Taylor committed
96
	$(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`