2005-09-16 07:13:22 -04:00
|
|
|
path_to_top=..
|
|
|
|
include $(path_to_top)/Makefile.config
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2005-09-16 07:13:22 -04:00
|
|
|
ifeq ($(CONFIG_BOOKMARKS),yes)
|
2005-09-15 09:58:31 -04:00
|
|
|
bookmarksdir = bookmarks
|
2005-09-27 15:38:58 -04:00
|
|
|
bookmarkslib = $(bookmarksdir)/lib.o
|
2005-09-15 09:58:31 -04:00
|
|
|
endif
|
|
|
|
|
2005-09-16 07:13:22 -04:00
|
|
|
ifeq ($(CONFIG_COOKIES),yes)
|
2005-09-15 09:58:31 -04:00
|
|
|
cookiesdir = cookies
|
2005-09-27 15:38:58 -04:00
|
|
|
cookieslib = $(cookiesdir)/lib.o
|
2005-09-15 09:58:31 -04:00
|
|
|
endif
|
|
|
|
|
2005-09-16 07:13:22 -04:00
|
|
|
ifeq ($(CONFIG_FORMHIST),yes)
|
2005-09-15 09:58:31 -04:00
|
|
|
formhistdir = formhist
|
2005-09-27 15:38:58 -04:00
|
|
|
formhistlib = $(formhistdir)/lib.o
|
2005-09-15 09:58:31 -04:00
|
|
|
endif
|
|
|
|
|
2005-09-16 07:13:22 -04:00
|
|
|
ifeq ($(CONFIG_GLOBHIST),yes)
|
2005-09-15 09:58:31 -04:00
|
|
|
globhistdir = globhist
|
2005-09-27 15:38:58 -04:00
|
|
|
globhistlib = $(globhistdir)/lib.o
|
2005-09-15 09:58:31 -04:00
|
|
|
endif
|
|
|
|
|
2005-09-16 07:13:22 -04:00
|
|
|
ifeq ($(CONFIG_ECMASCRIPT),yes)
|
2005-09-15 09:58:31 -04:00
|
|
|
ecmascriptdir = ecmascript
|
2005-09-27 15:38:58 -04:00
|
|
|
ecmascriptlib = $(ecmascriptdir)/lib.o
|
2005-09-15 09:58:31 -04:00
|
|
|
endif
|
|
|
|
|
2005-09-16 07:13:22 -04:00
|
|
|
ifeq ($(CONFIG_SCRIPTING),yes)
|
2005-09-15 09:58:31 -04:00
|
|
|
scriptingdir = scripting
|
2005-09-27 15:38:58 -04:00
|
|
|
scriptinglib = $(scriptingdir)/lib.o
|
2005-09-15 09:58:31 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
SUBDIRS = \
|
|
|
|
bfu \
|
|
|
|
$(bookmarksdir) \
|
|
|
|
cache \
|
|
|
|
config \
|
|
|
|
$(cookiesdir) \
|
|
|
|
dialogs \
|
|
|
|
document \
|
|
|
|
$(ecmascriptdir) \
|
|
|
|
encoding \
|
|
|
|
$(formhistdir) \
|
|
|
|
$(globhistdir) \
|
|
|
|
intl \
|
|
|
|
main \
|
|
|
|
mime \
|
|
|
|
network \
|
|
|
|
osdep \
|
|
|
|
protocol \
|
|
|
|
$(scriptingdir) \
|
|
|
|
session \
|
|
|
|
terminal \
|
|
|
|
util \
|
|
|
|
viewer
|
|
|
|
|
|
|
|
# Order of this is purely magic and random, so that ld doesn't fail for some
|
|
|
|
# strange reason. Try to swap randomly when ld will start to complain about
|
|
|
|
# mysteriously unresolved symbols.
|
2005-09-16 07:13:22 -04:00
|
|
|
ELINKSLIBS = \
|
2005-09-27 15:38:58 -04:00
|
|
|
main/lib.o \
|
2005-09-15 09:58:31 -04:00
|
|
|
$(cookieslib) \
|
2005-09-27 15:38:58 -04:00
|
|
|
viewer/lib.o \
|
|
|
|
cache/lib.o \
|
|
|
|
document/lib.o \
|
|
|
|
intl/lib.o \
|
|
|
|
session/lib.o \
|
|
|
|
network/lib.o \
|
|
|
|
terminal/lib.o \
|
2005-09-15 09:58:31 -04:00
|
|
|
$(scriptinglib) \
|
2005-09-27 15:38:58 -04:00
|
|
|
osdep/lib.o \
|
|
|
|
protocol/lib.o \
|
2005-09-15 09:58:31 -04:00
|
|
|
$(bookmarkslib) \
|
|
|
|
$(formhistlib) \
|
|
|
|
$(globhistlib) \
|
|
|
|
$(ecmascriptlib) \
|
2005-09-27 15:38:58 -04:00
|
|
|
config/lib.o \
|
|
|
|
dialogs/lib.o \
|
|
|
|
mime/lib.o \
|
|
|
|
bfu/lib.o \
|
|
|
|
encoding/lib.o \
|
|
|
|
intl/lib.o \
|
|
|
|
util/lib.o
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2005-09-17 08:45:59 -04:00
|
|
|
# Get the GIT HEAD ID if possible
|
2005-09-19 05:04:03 -04:00
|
|
|
ifdef CG_COMMIT_ID
|
|
|
|
BUILD_ID=$(shell $(CG_COMMIT_ID) 2> /dev/null)
|
2005-09-17 08:45:59 -04:00
|
|
|
endif
|
2005-09-17 10:21:35 -04:00
|
|
|
INCLUDES += -DBUILD_ID="\"$(BUILD_ID)\""
|
2005-09-17 08:45:59 -04:00
|
|
|
|
2005-09-27 15:38:58 -04:00
|
|
|
OBJS = vernum.o $(ELINKSLIBS)
|
2005-09-16 07:13:22 -04:00
|
|
|
vernum.o: FORCE
|
|
|
|
FORCE:
|
|
|
|
|
2005-09-27 15:11:28 -04:00
|
|
|
all-local: elinks
|
2005-09-27 15:38:58 -04:00
|
|
|
elinks: $(OBJS)
|
2005-09-16 07:13:22 -04:00
|
|
|
$(call cmd,link)
|
|
|
|
|
2005-09-22 10:07:27 -04:00
|
|
|
install:
|
2005-09-22 08:50:59 -04:00
|
|
|
$(INSTALL_PROGRAM) elinks $(DESTDIR)$(bindir)
|
2005-09-17 14:37:23 -04:00
|
|
|
|
2005-09-16 07:13:22 -04:00
|
|
|
include $(path_to_top)/Makefile.lib
|