Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
[elinks.git] / src / Makefile
blob2585b7a699e3f898ac716c6bf825738b154e1fa2
1 top_builddir=..
2 include $(top_builddir)/Makefile.config
4 SUBDIRS-$(CONFIG_BOOKMARKS) += bookmarks
5 SUBDIRS-$(CONFIG_COOKIES) += cookies
6 SUBDIRS-$(CONFIG_DOM) += dom
7 SUBDIRS-$(CONFIG_ECMASCRIPT) += ecmascript
8 SUBDIRS-$(CONFIG_FORMHIST) += formhist
9 SUBDIRS-$(CONFIG_GLOBHIST) += globhist
10 SUBDIRS-$(CONFIG_SCRIPTING) += scripting
12 SUBDIRS = \
13 bfu \
14 cache \
15 config \
16 dialogs \
17 document \
18 encoding \
19 intl \
20 main \
21 mime \
22 network \
23 osdep \
24 protocol \
25 session \
26 terminal \
27 util \
28 viewer
30 # Get the GIT HEAD ID if possible
31 ifdef CG_COMMIT_ID
32 BUILD_ID=$(shell GIT_DIR=$(top_srcdir)/.git $(CG_COMMIT_ID) 2> /dev/null)
33 endif
34 INCLUDES += -DBUILD_ID="\"$(BUILD_ID)\""
36 vernum.o: $(LIB_O_NAME)
38 elinks: $(LIB_O_NAME) vernum.o
39 $(call cmd,link)
41 TAGS:
42 find $(srcdir). -name "*.[ch]" -print \
43 | etags --regex='{c}/INIT_LIST_HEAD(\([[:alnum:]_]+\))/\1/' \
44 --regex='{c}/struct_hierbox_browser(\n[ \t]*\([[:alnum:]_]+\),/\1/m' \
46 .PHONY: TAGS
48 PROGS = elinks
49 CLEAN = vernum.o
51 include $(top_srcdir)/Makefile.lib