1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-27 01:25:34 +00:00

Simplify building of and linking with directories

Ditch the building of an archive (.a) in favour of linking all objects in a
directory into a lib.o file. This makes it easy to link in subdirectories
and more importantly keeps the build logic in the local subdirectories.

Note: after updating you will have to rm **/*.a if you do not make clean
before updating.
This commit is contained in:
Jonas Fonseca 2005-09-27 21:38:58 +02:00 committed by Jonas Fonseca
parent b30064c0d0
commit 1efab31581
57 changed files with 70 additions and 288 deletions

View File

@ -24,9 +24,10 @@ quiet_cmd_compile = ' [CC] $<'
masq_cmd_compile = $(COMPILE) -c $< masq_cmd_compile = $(COMPILE) -c $<
cmd_compile = $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< cmd_compile = $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
quiet_cmd_archive = ' [AR] $@' # Rule to compile a set of .o files into one .o file
cmd_archive = $(AR) r $@ $^ quiet_cmd_ld_objs = " [LD] $@"
cmd_ld_objs = $(LD) -r -o $@ $(filter $(OBJS), $^)
quiet_cmd_link = ' [LINK] $@' quiet_cmd_link = ' [LINK] $@'
cmd_link = $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) cmd_link = $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
@ -55,14 +56,16 @@ endif
>> .deps/$(*F).P; \ >> .deps/$(*F).P; \
rm .deps/$(*F).pp rm .deps/$(*F).pp
%.a:
$(call cmd,archive)
ifdef OBJS ifdef OBJS
CLEAN += $(OBJS) CLEAN += $(OBJS)
clean-local: clean-local:
$(RM) $(CLEAN) *.a $(RM) lib.o $(CLEAN)
lib.o: $(OBJS)
$(call cmd,ld_objs)
all-local: lib.o
endif endif

View File

@ -3,32 +3,32 @@ include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_BOOKMARKS),yes) ifeq ($(CONFIG_BOOKMARKS),yes)
bookmarksdir = bookmarks bookmarksdir = bookmarks
bookmarkslib = $(bookmarksdir)/libbookmarks.a bookmarkslib = $(bookmarksdir)/lib.o
endif endif
ifeq ($(CONFIG_COOKIES),yes) ifeq ($(CONFIG_COOKIES),yes)
cookiesdir = cookies cookiesdir = cookies
cookieslib = $(cookiesdir)/libcookies.a cookieslib = $(cookiesdir)/lib.o
endif endif
ifeq ($(CONFIG_FORMHIST),yes) ifeq ($(CONFIG_FORMHIST),yes)
formhistdir = formhist formhistdir = formhist
formhistlib = $(formhistdir)/libformhist.a formhistlib = $(formhistdir)/lib.o
endif endif
ifeq ($(CONFIG_GLOBHIST),yes) ifeq ($(CONFIG_GLOBHIST),yes)
globhistdir = globhist globhistdir = globhist
globhistlib = $(globhistdir)/libglobhist.a globhistlib = $(globhistdir)/lib.o
endif endif
ifeq ($(CONFIG_ECMASCRIPT),yes) ifeq ($(CONFIG_ECMASCRIPT),yes)
ecmascriptdir = ecmascript ecmascriptdir = ecmascript
ecmascriptlib = $(ecmascriptdir)/libecmascript.a ecmascriptlib = $(ecmascriptdir)/lib.o
endif endif
ifeq ($(CONFIG_SCRIPTING),yes) ifeq ($(CONFIG_SCRIPTING),yes)
scriptingdir = scripting scriptingdir = scripting
scriptinglib = $(scriptingdir)/libscripting.a scriptinglib = $(scriptingdir)/lib.o
endif endif
SUBDIRS = \ SUBDIRS = \
@ -59,29 +59,29 @@ SUBDIRS = \
# strange reason. Try to swap randomly when ld will start to complain about # strange reason. Try to swap randomly when ld will start to complain about
# mysteriously unresolved symbols. # mysteriously unresolved symbols.
ELINKSLIBS = \ ELINKSLIBS = \
main/libmain.a \ main/lib.o \
$(cookieslib) \ $(cookieslib) \
viewer/libviewer.a \ viewer/lib.o \
cache/libcache.a \ cache/lib.o \
document/libdocument.a \ document/lib.o \
intl/libintl.a \ intl/lib.o \
session/libsession.a \ session/lib.o \
network/libnetwork.a \ network/lib.o \
terminal/libterminal.a \ terminal/lib.o \
$(scriptinglib) \ $(scriptinglib) \
osdep/libosdep.a \ osdep/lib.o \
protocol/libprotocol.a \ protocol/lib.o \
$(bookmarkslib) \ $(bookmarkslib) \
$(formhistlib) \ $(formhistlib) \
$(globhistlib) \ $(globhistlib) \
$(ecmascriptlib) \ $(ecmascriptlib) \
config/libconfig.a \ config/lib.o \
dialogs/libdialogs.a \ dialogs/lib.o \
mime/libmime.a \ mime/lib.o \
bfu/libbfu.a \ bfu/lib.o \
encoding/libencoding.a \ encoding/lib.o \
$(INTLLIBS) \ intl/lib.o \
util/libutil.a util/lib.o
# Get the GIT HEAD ID if possible # Get the GIT HEAD ID if possible
ifdef CG_COMMIT_ID ifdef CG_COMMIT_ID
@ -89,12 +89,12 @@ BUILD_ID=$(shell $(CG_COMMIT_ID) 2> /dev/null)
endif endif
INCLUDES += -DBUILD_ID="\"$(BUILD_ID)\"" INCLUDES += -DBUILD_ID="\"$(BUILD_ID)\""
OBJS = vernum.o OBJS = vernum.o $(ELINKSLIBS)
vernum.o: FORCE vernum.o: FORCE
FORCE: FORCE:
all-local: elinks all-local: elinks
elinks: $(OBJS) $(ELINKSLIBS) elinks: $(OBJS)
$(call cmd,link) $(call cmd,link)
install: install:

View File

@ -23,7 +23,4 @@ OBJS = \
text.o \ text.o \
widget.o widget.o
all-local: libbfu.a
libbfu.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -10,7 +10,4 @@ endif
BACK_OBJS = common.o default.o $(xbelobj) BACK_OBJS = common.o default.o $(xbelobj)
OBJS = bookmarks.o dialogs.o $(foreach obj,$(BACK_OBJS),backend/$(obj)) OBJS = bookmarks.o dialogs.o $(foreach obj,$(BACK_OBJS),backend/$(obj))
all-local: libbookmarks.a
libbookmarks.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

3
src/cache/Makefile vendored
View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = cache.o dialogs.o OBJS = cache.o dialogs.o
all-local: libcache.a
libcache.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = cmdline.o conf.o dialogs.o home.o kbdbind.o options.o opttypes.o timer.o urlhist.o OBJS = cmdline.o conf.o dialogs.o home.o kbdbind.o options.o opttypes.o timer.o urlhist.o
all-local: libconfig.a
libconfig.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,9 +3,6 @@ include $(path_to_top)/Makefile.config
OBJS = cookies.o dialogs.o parser.o OBJS = cookies.o dialogs.o parser.o
all-local: libcookies.a
libcookies.a: $(OBJS)
parsetst: parser.o parsetst.o parsetst: parser.o parsetst.o
$(call cmd,link) -L../util/libutil.a $(call cmd,link) -L../util/libutil.a

View File

@ -7,7 +7,4 @@ endif
OBJS = document.o download.o edit.o $(exmodeobj) info.o menu.o options.o progress.o status.o OBJS = document.o download.o edit.o $(exmodeobj) info.o menu.o options.o progress.o status.o
all-local: libdialogs.a
libdialogs.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,29 +3,15 @@ include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_CSS),yes) ifeq ($(CONFIG_CSS),yes)
cssdir = css cssdir = css
cssobj = \ cssobj = $(cssdir)/lib.o
css/apply.o \
css/css.o \
css/parser.o \
css/property.o \
css/scanner.o \
css/stylesheet.o \
css/value.o
endif endif
ifeq ($(CONFIG_DOM),yes) ifeq ($(CONFIG_DOM),yes)
domdir = dom domdir = dom
domobj = \ domobj = $(domdir)/lib.o
$(domdir)/navigator.o \
$(domdir)/node.o \
$(domdir)/renderer.o
sgmldir = sgml sgmldir = sgml
sgmlobj = \ sgmlobj = $(sgmldir)/lib.o
$(sgmldir)/html/html.o \
$(sgmldir)/parser.o \
$(sgmldir)/scanner.o \
$(sgmldir)/sgml.o
endif endif
SUBDIRS = $(cssdir) $(domdir) html plain $(sgmldir) SUBDIRS = $(cssdir) $(domdir) html plain $(sgmldir)
@ -33,22 +19,10 @@ SUBDIRS = $(cssdir) $(domdir) html plain $(sgmldir)
SUB_OBJS = \ SUB_OBJS = \
$(cssobj) \ $(cssobj) \
$(domobj) \ $(domobj) \
html/parser/forms.o \ html/lib.o \
html/parser/general.o \ plain/lib.o \
html/parser/link.o \
html/parser/parse.o \
html/parser/stack.o \
html/parser/table.o \
html/frames.o \
html/parser.o \
html/renderer.o \
html/tables.o \
plain/renderer.o \
$(sgmlobj) $(sgmlobj)
OBJS = docdata.o document.o forms.o options.o refresh.o renderer.o $(SUB_OBJS) OBJS = docdata.o document.o forms.o options.o refresh.o renderer.o $(SUB_OBJS)
all-local: libdocument.a
libdocument.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = apply.o css.o parser.o property.o scanner.o stylesheet.o value.o OBJS = apply.o css.o parser.o property.o scanner.o stylesheet.o value.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = navigator.o node.o renderer.o OBJS = navigator.o node.o renderer.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,9 +3,6 @@ include $(path_to_top)/Makefile.config
SUBDIRS = parser SUBDIRS = parser
OBJS = frames.o parser.o renderer.o tables.o OBJS = frames.o parser.o renderer.o tables.o parser/lib.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = forms.o general.o link.o parse.o stack.o table.o OBJS = forms.o general.o link.o parse.o stack.o table.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = renderer.o OBJS = renderer.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,9 +3,6 @@ include $(path_to_top)/Makefile.config
SUBDIRS = html SUBDIRS = html
OBJS = sgml.o parser.o scanner.o OBJS = sgml.o parser.o scanner.o html/lib.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = html.o OBJS = html.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -5,9 +5,6 @@ INCLUDES += $(SPIDERMONKEY_CFLAGS)
SUBDIRS = spidermonkey SUBDIRS = spidermonkey
SM_OBJS = document.o form.o location.o navigator.o unibar.o window.o SM_OBJS = document.o form.o location.o navigator.o unibar.o window.o
OBJS = ecmascript.o spidermonkey.o $(foreach obj,$(SM_OBJS),spidermonkey/$(obj)) OBJS = ecmascript.o spidermonkey.o spidermonkey/lib.o
all-local: libecmascript.a
libecmascript.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -2,9 +2,6 @@ path_to_top=../../..
include $(path_to_top)/Makefile.config include $(path_to_top)/Makefile.config
INCLUDES += $(SPIDERMONKEY_CFLAGS) INCLUDES += $(SPIDERMONKEY_CFLAGS)
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
OBJS = document.o form.o location.o navigator.o unibar.o window.o OBJS = document.o form.o location.o navigator.o unibar.o window.o
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -11,7 +11,4 @@ endif
OBJS = encoding.o $(bzip2obj) $(gzipobj) OBJS = encoding.o $(bzip2obj) $(gzipobj)
all-local: libencoding.a
libencoding.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = formhist.o dialogs.o OBJS = formhist.o dialogs.o
all-local: libformhist.a
libformhist.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = globhist.o dialogs.o OBJS = globhist.o dialogs.o
all-local: libglobhist.a
libglobhist.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,13 +3,11 @@ include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_NLS),yes) ifeq ($(CONFIG_NLS),yes)
gettextdir = gettext gettextdir = gettext
gettextobj = $(gettextdir)/lib.o
endif endif
SUBDIRS = $(gettextdir) SUBDIRS = $(gettextdir)
OBJS = charsets.o OBJS = charsets.o $(gettextobj)
all-local: libintl.a
libintl.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -27,9 +27,6 @@ OBJS = \
plural.o \ plural.o \
textdomain.o textdomain.o
all-local: libintl.a
libintl.a: $(OBJS)
# $(builddir)/charset.alias: $(srcdir)/config.charset # $(builddir)/charset.alias: $(srcdir)/config.charset
$(builddir)/charset.alias: $(srcdir)/config.charset $(builddir)/charset.alias: $(srcdir)/config.charset

View File

@ -7,7 +7,4 @@ endif
OBJS = event.o $(interlinkobj) main.o module.o select.o timer.o version.o OBJS = event.o $(interlinkobj) main.o module.o select.o timer.o version.o
all-local: libmain.a
libmain.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,23 +3,9 @@ include $(path_to_top)/Makefile.config
SUBDIRS = backend SUBDIRS = backend
ifeq ($(CONFIG_MAILCAP),yes)
mailcapobj = backend/mailcap.o
endif
ifeq ($(CONFIG_MIMETYPES),yes)
mimetypesobj = backend/mimetypes.o
endif
OBJS = \ OBJS = \
dialogs.o \ dialogs.o \
mime.o \ mime.o \
backend/common.o \ backend/lib.o \
backend/default.o \
$(mailcapobj) \
$(mimetypesobj)
all-local: libmime.a
libmime.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -11,7 +11,4 @@ endif
OBJS = common.o default.o $(mailcapobj) $(mimetypesobj) OBJS = common.o default.o $(mailcapobj) $(mimetypesobj)
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,14 +3,11 @@ include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_SSL),yes) ifeq ($(CONFIG_SSL),yes)
ssldir = ssl ssldir = ssl
sslobj = $(ssldir)/ssl.o $(ssldir)/socket.o sslobj = $(ssldir)/lib.o
endif endif
SUBDIRS = $(ssldir) SUBDIRS = $(ssldir)
OBJS = connection.o dns.o progress.o socket.o state.o $(sslobj) OBJS = connection.o dns.o progress.o socket.o state.o $(sslobj)
all-local: libnetwork.a
libnetwork.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -5,7 +5,4 @@ INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS)
OBJS = ssl.o socket.o OBJS = ssl.o socket.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -4,27 +4,27 @@ INCLUDES += $(X_CFLAGS)
ifeq ($(CONFIG_BEOS),yes) ifeq ($(CONFIG_BEOS),yes)
beosdir = beos beosdir = beos
beosobj = $(beosdir)/beos.o $(beosdir)/overrides.o beosobj = $(beosdir)/lib.o
endif endif
ifeq ($(CONFIG_OS2),yes) ifeq ($(CONFIG_OS2),yes)
os2dir = os2 os2dir = os2
os2obj = $(os2dir)/os2.o os2obj = $(os2dir)/lib.o
endif endif
ifeq ($(CONFIG_RISCOS),yes) ifeq ($(CONFIG_RISCOS),yes)
riscosdir = riscos riscosdir = riscos
riscosobj = $(riscosdir)/riscos.o riscosobj = $(riscosdir)/lib.o
endif endif
ifeq ($(CONFIG_UNIX),yes) ifeq ($(CONFIG_UNIX),yes)
unixdir = unix unixdir = unix
unixobj = $(unixdir)/bsd.o $(unixdir)/unix.o unixobj = $(unixdir)/lib.o
endif endif
ifeq ($(CONFIG_WIN32),yes) ifeq ($(CONFIG_WIN32),yes)
win32dir = win32 win32dir = win32
win32obj = $(win32dir)/win32.o $(win32dir)/overrides.o win32obj = $(win32dir)/lib.o
endif endif
SUBDIRS = $(beosdir) $(os2dir) $(riscosdir) $(unixdir) $(win32dir) SUBDIRS = $(beosdir) $(os2dir) $(riscosdir) $(unixdir) $(win32dir)
@ -42,7 +42,4 @@ OBJS = \
$(unixobj) \ $(unixobj) \
$(win32obj) $(win32obj)
all-local: libosdep.a
libosdep.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = beos.o overrides.o OBJS = beos.o overrides.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = os2.o OBJS = os2.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = riscos.o OBJS = riscos.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = unix.o bsd.o OBJS = unix.o bsd.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = win32.o overrides.o OBJS = win32.o overrides.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -1,62 +1,49 @@
path_to_top=../.. path_to_top=../..
include $(path_to_top)/Makefile.config include $(path_to_top)/Makefile.config
authobj = auth/auth.o auth/dialogs.o auth/digest.o authobj = auth/lib.o
ifeq ($(CONFIG_CGI),yes)
cgiobj = file/cgi.o
endif
ifeq ($(CONFIG_BITTORRENT),yes) ifeq ($(CONFIG_BITTORRENT),yes)
bittorrentdir = bittorrent bittorrentdir = bittorrent
bittorrentobj = \ bittorrentobj = $(bittorrentdir)/lib.o
$(bittorrentdir)/bencoding.o \
$(bittorrentdir)/bittorrent.o \
$(bittorrentdir)/common.o \
$(bittorrentdir)/connection.o \
$(bittorrentdir)/dialogs.o \
$(bittorrentdir)/peerconnect.o \
$(bittorrentdir)/peerwire.o \
$(bittorrentdir)/piececache.o \
$(bittorrentdir)/tracker.o
endif endif
ifeq ($(CONFIG_DATA),yes) ifeq ($(CONFIG_DATA),yes)
dataobj = data.o dataobj = data.o
endif endif
fileobj = file/file.o fileobj = file/lib.o
ifeq ($(CONFIG_FINGER),yes) ifeq ($(CONFIG_FINGER),yes)
fingerdir = finger fingerdir = finger
fingerobj = $(fingerdir)/finger.o fingerobj = $(fingerdir)/lib.o
endif endif
ifeq ($(CONFIG_FTP),yes) ifeq ($(CONFIG_FTP),yes)
ftpdir = ftp ftpdir = ftp
ftpobj = $(ftpdir)/ftp.o $(ftpdir)/parse.o ftpobj = $(ftpdir)/lib.o
endif endif
ifeq ($(CONFIG_GOPHER),yes) ifeq ($(CONFIG_GOPHER),yes)
gopherdir = gopher gopherdir = gopher
gopherobj = $(gopherdir)/gopher.o gopherobj = $(gopherdir)/lib.o
endif endif
httpobj = http/blacklist.o http/codes.o http/http.o httpobj = http/lib.o
ifeq ($(CONFIG_NNTP),yes) ifeq ($(CONFIG_NNTP),yes)
nntpdir = nntp nntpdir = nntp
nntpobj = $(nntpdir)/connection.o $(nntpdir)/nntp.o $(nntpdir)/response.o nntpobj = $(nntpdir)/lib.o
endif endif
ifeq ($(CONFIG_SMB),yes) ifeq ($(CONFIG_SMB),yes)
smbdir = smb smbdir = smb
smbobj = $(smbdir)/smb.o smbobj = $(smbdir)/lib.o
endif endif
ifeq ($(CONFIG_URI_REWRITE),yes) ifeq ($(CONFIG_URI_REWRITE),yes)
rewritedir = rewrite rewritedir = rewrite
rewriteobj = $(rewritedir)/rewrite.o rewriteobj = $(rewritedir)/lib.o
endif endif
SUBDIRS = \ SUBDIRS = \
@ -84,9 +71,7 @@ SUB_OBJS = \
$(nntpobj) \ $(nntpobj) \
$(rewriteobj) \ $(rewriteobj) \
$(smbobj) $(smbobj)
OBJS = about.o date.o header.o protocol.o proxy.o uri.o user.o $(SUB_OBJS) OBJS = about.o date.o header.o protocol.o proxy.o uri.o user.o $(SUB_OBJS)
all-local: libprotocol.a
libprotocol.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -6,7 +6,4 @@ INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS)
OBJS = auth.o dialogs.o digest.o OBJS = auth.o dialogs.o digest.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -5,7 +5,4 @@ INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS)
OBJS = bencoding.o bittorrent.o common.o connection.o dialogs.o peerconnect.o peerwire.o piececache.o tracker.o OBJS = bencoding.o bittorrent.o common.o connection.o dialogs.o peerconnect.o peerwire.o piececache.o tracker.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -7,7 +7,4 @@ endif
OBJS = file.o $(cgiobj) OBJS = file.o $(cgiobj)
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = finger.o OBJS = finger.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = ftp.o parse.o OBJS = ftp.o parse.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = gopher.o OBJS = gopher.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = blacklist.o codes.o http.o OBJS = blacklist.o codes.o http.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = nntp.o connection.o response.o OBJS = nntp.o connection.o response.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = rewrite.o OBJS = rewrite.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = smb.o OBJS = smb.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,34 +3,31 @@ include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_GUILE),yes) ifeq ($(CONFIG_GUILE),yes)
guiledir = guile guiledir = guile
guileobj = $(guiledir)/core.o $(guiledir)/guile.o $(guiledir)/hooks.o guileobj = $(guiledir)/lib.o
endif endif
ifeq ($(CONFIG_LUA),yes) ifeq ($(CONFIG_LUA),yes)
luadir = lua luadir = lua
luaobj = $(luadir)/core.o $(luadir)/hooks.o $(luadir)/lua.o luaobj = $(luadir)/lib.o
endif endif
ifeq ($(CONFIG_PERL),yes) ifeq ($(CONFIG_PERL),yes)
perldir = perl perldir = perl
perlobj = $(perldir)/core.o $(perldir)/hooks.o $(perldir)/perl.o perlobj = $(perldir)/lib.o
endif endif
ifeq ($(CONFIG_PYTHON),yes) ifeq ($(CONFIG_PYTHON),yes)
pythondir = python pythondir = python
pythonobj = $(pythondir)/core.o $(pythondir)/hooks.o $(pythondir)/python.o pythonobj = $(pythondir)/lib.o
endif endif
ifeq ($(CONFIG_RUBY),yes) ifeq ($(CONFIG_RUBY),yes)
rubydir = ruby rubydir = ruby
rubyobj = $(rubydir)/core.o $(rubydir)/hooks.o $(rubydir)/ruby.o rubyobj = $(rubydir)/lib.o
endif endif
SUBDIRS = $(guiledir) $(luadir) $(perldir) $(pythondir) $(rubydir) SUBDIRS = $(guiledir) $(luadir) $(perldir) $(pythondir) $(rubydir)
OBJS = scripting.o $(guileobj) $(luaobj) $(perlobj) $(pythonobj) $(rubyobj) OBJS = scripting.o $(guileobj) $(luaobj) $(perlobj) $(pythonobj) $(rubyobj)
all-local: libscripting.a
libscripting.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -5,7 +5,4 @@ INCLUDES += $(GUILE_CFLAGS)
OBJS = guile.o hooks.o core.o OBJS = guile.o hooks.o core.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -5,7 +5,4 @@ INCLUDES += $(LUA_CFLAGS)
OBJS = lua.o hooks.o core.o OBJS = lua.o hooks.o core.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -5,7 +5,4 @@ INCLUDES += $(PERL_CFLAGS)
OBJS = perl.o hooks.o core.o OBJS = perl.o hooks.o core.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -5,7 +5,4 @@ INCLUDES += $(PYTHON_CFLAGS)
OBJS = python.o hooks.o core.o OBJS = python.o hooks.o core.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -5,7 +5,4 @@ INCLUDES += $(RUBY_CFLAGS)
OBJS = ruby.o hooks.o core.o OBJS = ruby.o hooks.o core.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = download.o history.o location.o session.o task.o OBJS = download.o history.o location.o session.o task.o
all-local: libsession.a
libsession.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -17,7 +17,4 @@ OBJS = \
terminal.o \ terminal.o \
window.o window.o
all-local: libterminal.a
libterminal.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -46,7 +46,4 @@ OBJS = \
$(scannerobj) \ $(scannerobj) \
$(sha1obj) $(sha1obj)
all-local: libutil.a
libutil.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,24 +3,10 @@ include $(path_to_top)/Makefile.config
SUBDIRS = dump text SUBDIRS = dump text
ifeq ($(CONFIG_MARKS),yes)
marksobj = text/marks.o
endif
OBJS = \ OBJS = \
action.o \ action.o \
timer.o \ timer.o \
dump/dump.o \ dump/lib.o \
text/draw.o \ text/lib.o
text/form.o \
text/link.o \
$(marksobj) \
text/search.o \
text/textarea.o \
text/view.o \
text/vs.o
all-local: libviewer.a
libviewer.a: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,4 @@ include $(path_to_top)/Makefile.config
OBJS = dump.o OBJS = dump.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib

View File

@ -7,7 +7,4 @@ endif
OBJS = draw.o form.o link.o $(marksobj) search.o textarea.o view.o vs.o OBJS = draw.o form.o link.o $(marksobj) search.o textarea.o view.o vs.o
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
include $(path_to_top)/Makefile.lib include $(path_to_top)/Makefile.lib