2005-10-20 04:00:35 +02:00
|
|
|
top_builddir=..
|
|
|
|
include $(top_builddir)/Makefile.config
|
2005-09-15 15:58:31 +02:00
|
|
|
|
2005-09-27 22:49:47 +02:00
|
|
|
SUBDIRS-$(CONFIG_BOOKMARKS) += bookmarks
|
|
|
|
SUBDIRS-$(CONFIG_COOKIES) += cookies
|
2006-01-14 10:41:58 +01:00
|
|
|
SUBDIRS-$(CONFIG_DOM) += dom
|
|
|
|
SUBDIRS-$(CONFIG_ECMASCRIPT) += ecmascript
|
2005-09-27 22:49:47 +02:00
|
|
|
SUBDIRS-$(CONFIG_FORMHIST) += formhist
|
|
|
|
SUBDIRS-$(CONFIG_GLOBHIST) += globhist
|
|
|
|
SUBDIRS-$(CONFIG_SCRIPTING) += scripting
|
2005-09-15 15:58:31 +02:00
|
|
|
|
|
|
|
SUBDIRS = \
|
|
|
|
bfu \
|
|
|
|
cache \
|
|
|
|
config \
|
|
|
|
dialogs \
|
|
|
|
document \
|
|
|
|
encoding \
|
|
|
|
intl \
|
|
|
|
main \
|
|
|
|
mime \
|
|
|
|
network \
|
|
|
|
osdep \
|
|
|
|
protocol \
|
|
|
|
session \
|
|
|
|
terminal \
|
|
|
|
util \
|
|
|
|
viewer
|
|
|
|
|
2005-09-17 14:45:59 +02:00
|
|
|
# Get the GIT HEAD ID if possible
|
2005-09-19 11:04:03 +02:00
|
|
|
ifdef CG_COMMIT_ID
|
2005-11-01 23:19:50 +01:00
|
|
|
BUILD_ID=$(shell GIT_DIR=$(top_srcdir)/.git $(CG_COMMIT_ID) 2> /dev/null)
|
2005-09-17 14:45:59 +02:00
|
|
|
endif
|
2005-09-17 16:21:35 +02:00
|
|
|
INCLUDES += -DBUILD_ID="\"$(BUILD_ID)\""
|
2005-09-17 14:45:59 +02:00
|
|
|
|
2006-07-09 17:25:29 +02:00
|
|
|
vernum.o: $(LIB_O_NAME)
|
2005-09-16 13:13:22 +02:00
|
|
|
|
2006-07-09 17:25:29 +02:00
|
|
|
elinks: $(LIB_O_NAME) vernum.o
|
2005-09-16 13:13:22 +02:00
|
|
|
$(call cmd,link)
|
|
|
|
|
2007-05-20 18:44:09 +03:00
|
|
|
# Place the TAGS file in the source directory so that, if the same
|
|
|
|
# source is built for different configurations in different build
|
|
|
|
# directories, one doesn't have to remember which of those build
|
|
|
|
# directories has the most recent TAGS.
|
2007-01-27 21:03:09 +02:00
|
|
|
TAGS:
|
2007-05-20 18:44:09 +03:00
|
|
|
cd $(srcdir) \
|
|
|
|
&& find . \( -name "*.[ch]" -o -name "*.inc" \) -print \
|
2007-07-26 22:39:08 +03:00
|
|
|
| etags --regex='{c}/INIT_LIST_OF([^,]*,[ \t]*\([[:alnum:]_]+\))/\1/' \
|
2007-01-27 21:03:09 +02:00
|
|
|
--regex='{c}/struct_hierbox_browser(\n[ \t]*\([[:alnum:]_]+\),/\1/m' \
|
2007-03-23 09:44:16 +02:00
|
|
|
--regex='{c}/^ACTION_(\([[:alnum:]_]+\),[^,]*,[ \t]*\([[:alnum:]_]+\),/ACT_\1_\2/' \
|
|
|
|
--language=c -
|
2007-01-27 21:03:09 +02:00
|
|
|
.PHONY: TAGS
|
|
|
|
|
2005-10-01 14:16:19 +02:00
|
|
|
PROGS = elinks
|
2006-07-10 14:28:21 +02:00
|
|
|
CLEAN = vernum.o
|
2005-09-17 20:37:23 +02:00
|
|
|
|
2005-10-20 01:11:47 +02:00
|
|
|
include $(top_srcdir)/Makefile.lib
|