gui: Add <gtk/gtk.h> wrapper with functions from GTK+ 2.18 and 2.20.
[pspp] / Smake
1 # -*- makefile -*-
2
3 # Adjust these to reflect where you've installed gnulib.
4 GNULIB = ../gnulib
5 GNULIB_TOOL = $(GNULIB)/gnulib-tool
6
7 GNULIB_MODULES = \
8         assert \
9         byteswap \
10         c-strcase \
11         c-ctype \
12         c-strtod \
13         clean-temp \
14         close \
15         configmake \
16         count-one-bits \
17         crc \
18         crypto/md4 \
19         crypto/md5 \
20         dirname \
21         dtoastr \
22         environ \
23         fatal-signal \
24         fcntl \
25         fpieee \
26         fprintf-posix \
27         full-read \
28         full-write \
29         fseeko \
30         ftello \
31         fwriteerror \
32         getline \
33         gettext \
34         gettimeofday \
35         getopt-gnu \
36         gitlog-to-changelog \
37         include_next \
38         isfinite \
39         isinf \
40         isnan \
41         intprops \
42         inttostr \
43         localcharset \
44         mbchar \
45         memcasecmp \
46         memchr \
47         mempcpy \
48         memrchr \
49         minmax \
50         mkdtemp \
51         mkstemp \
52         printf-posix \
53         printf-safe \
54         progname \
55         rawmemchr \
56         read-file \
57         regex \
58         relocatable-prog \
59         rename \
60         round \
61         snprintf \
62         snprintf-posix \
63         sprintf-posix \
64         stdarg \
65         stdbool \
66         stdint \
67         stpcpy \
68         strcase \
69         strerror \
70         strftime \
71         strtod \
72         strtok_r \
73         strtol \
74         strtoul \
75         sys_stat \
76         tempname \
77         trunc \
78         unictype/ctype-print \
79         unictype/property-id-continue \
80         unictype/property-id-start \
81         unigbrk/uc-is-grapheme-break \
82         unilbrk/u8-possible-linebreaks \
83         unistd \
84         unistr/u8-check \
85         unistr/u8-cpy \
86         unistr/u8-mblen \
87         unistr/u8-mbtouc \
88         unistr/u8-mbtoucr \
89         unistr/u8-strlen \
90         unistr/u8-strmbtouc \
91         unistr/u8-strncat \
92         unistr/u8-uctomb \
93         uniwidth/u8-strwidth \
94         unitypes \
95         unlocked-io \
96         vasprintf-posix \
97         version-etc \
98         version-etc-fsf \
99         vfprintf-posix \
100         vprintf-posix \
101         vsnprintf \
102         vsnprintf-posix \
103         vsprintf-posix \
104         xalloc \
105         xalloc-die \
106         xmalloca \
107         xmemdup0 \
108         xsize \
109         xstrndup \
110         xvasprintf
111
112 all: 
113         test -e ChangeLog || touch ChangeLog
114         test -d m4 || mkdir m4
115         touch m4/Makefile.am
116         $(MAKE) -f Smake gnulib
117         libtoolize --force --automake
118         aclocal -I m4 -I gl/m4
119         autoconf
120         autoheader
121         automake --add-missing --copy --no-force
122
123 gnulib:
124         $(GNULIB_TOOL) --add-import --no-changelog --m4-base=gl/m4 \
125                 --source-base=gl --lib=libgl --tests-base=tests \
126                 --doc-base=gl/doc --aux-dir=build-aux --import \
127                 --libtool $(GNULIB_MODULES)
128
129
130 gettextize:
131         test -d m4 || mkdir m4
132         touch m4/Makefile.am
133         gettextize --force --no-changelog
134
135 check: all
136         rm -rf _check
137         mkdir _check
138         cd _check && ../configure $(CONFIGUREFLAGS)
139         cd _check && make distcheck
140         rm -rf _check
141
142 _build: all
143         test -d _build || mkdir _build
144         cd _build && ../configure $(CONFIGUREFLAGS)
145
146 _debug: all
147         test -d _debug || mkdir _debug
148         cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug
149
150 PO_FILES = po/ChangeLog \
151 po/Rules-quot po/boldquot.sed           \
152 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header                 \
153 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po     \
154 po/Makevars.template po/pspp.pot
155
156 clean:
157         rm -f config.sub config.guess config.rpath
158         rm -fr autom4te.cache
159         rm -f aclocal.m4
160         rm -f missing mkinstalldirs
161         rm -f install-sh
162         rm -f configure Makefile 
163         rm -f depcomp
164         rm -rf intl gl
165         rm -f m4/*.m4
166         rm -f $(PO_FILES) po/*.gmo 
167         rm -f mdate-sh texinfo.tex
168         rm -f doc/stamp-vti
169         rm -f config.h.in~
170         rm -f config.h.in
171         find . -name Makefile.in -exec rm -f {} \; 
172         rm -f compile
173         rm -f ltmain.sh
174         rm -f reloc-ldflags install-reloc
175
176 .PHONY: all gettextize clean