1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

Finalize and cleanup the denser Makefile format

Convert remaining conditional file building to use

	OBJS-$(CONFIG_FOO) += foo.o

one problem with reverse meaining (in util/) fixed with local 'hack'.

Cleanup and remove stuff which is now default targets.
This commit is contained in:
Jonas Fonseca 2005-09-28 12:38:17 +02:00 committed by Jonas Fonseca
parent bd8f005413
commit 94ed6fa754
20 changed files with 48 additions and 99 deletions

View File

@ -1,9 +1,7 @@
path_to_top=../..
include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_LEDS),yes)
ledsobj = leds.o
endif
OBJS-$(CONFIG_LEDS) += leds.o
OBJS = \
button.o \
@ -14,7 +12,6 @@ OBJS = \
hotkey.o \
inpfield.o \
inphist.o \
$(ledsobj) \
listbox.o \
listmenu.o \
menu.o \

View File

@ -2,7 +2,6 @@ path_to_top=../..
include $(path_to_top)/Makefile.config
SUBDIRS = backend
OBJS = bookmarks.o dialogs.o
OBJS = bookmarks.o dialogs.o
include $(path_to_top)/Makefile.lib

View File

@ -1,13 +1,7 @@
path_to_top=../../..
include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_XBEL_BOOKMARKS),yes)
xbelobj = xbel.o
endif
OBJS = common.o default.o $(xbelobj)
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-local: $(OBJS)
OBJS-$(CONFIG_XBEL_BOOKMARKS) += xbel.o
OBJS = common.o default.o
include $(path_to_top)/Makefile.lib

View File

@ -1,10 +1,8 @@
path_to_top=../..
include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_EXMODE),yes)
exmodeobj = exmode.o
endif
OBJS-$(CONFIG_EXMODE) += exmode.o
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 info.o menu.o options.o progress.o status.o
include $(path_to_top)/Makefile.lib

View File

@ -2,7 +2,6 @@ path_to_top=../../..
include $(path_to_top)/Makefile.config
SUBDIRS = parser
OBJS = frames.o parser.o renderer.o tables.o parser/lib.o
OBJS = frames.o parser.o renderer.o tables.o
include $(path_to_top)/Makefile.lib

View File

@ -2,7 +2,6 @@ path_to_top=../../..
include $(path_to_top)/Makefile.config
SUBDIRS = html
OBJS = sgml.o parser.o scanner.o
OBJS = sgml.o parser.o scanner.o
include $(path_to_top)/Makefile.lib

View File

@ -3,7 +3,6 @@ include $(path_to_top)/Makefile.config
INCLUDES += $(SPIDERMONKEY_CFLAGS)
SUBDIRS = spidermonkey
OBJS = ecmascript.o spidermonkey.o
OBJS = ecmascript.o spidermonkey.o
include $(path_to_top)/Makefile.lib

View File

@ -1,14 +1,9 @@
path_to_top=../..
include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_BZIP2),yes)
bzip2obj = bzip2.o
endif
OBJS-$(CONFIG_BZIP2) += bzip2.o
OBJS-$(CONFIG_GZIP) += gzip.o
ifeq ($(CONFIG_GZIP),yes)
gzipobj = gzip.o
endif
OBJS = encoding.o $(bzip2obj) $(gzipobj)
OBJS = encoding.o
include $(path_to_top)/Makefile.lib

View File

@ -1,7 +1,7 @@
path_to_top=../..
include $(path_to_top)/Makefile.config
SUBDIRS-$(CONFIG_NLS) += gettext
SUBDIRS-$(CONFIG_NLS) += gettext
OBJS = charsets.o

View File

@ -1,10 +1,8 @@
path_to_top=../..
include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_INTERLINK),yes)
interlinkobj = interlink.o
endif
OBJS-$(CONFIG_INTERLINK) += interlink.o
OBJS = event.o $(interlinkobj) main.o module.o select.o timer.o version.o
OBJS = event.o main.o module.o select.o timer.o version.o
include $(path_to_top)/Makefile.lib

View File

@ -2,9 +2,6 @@ path_to_top=../..
include $(path_to_top)/Makefile.config
SUBDIRS = backend
OBJS = \
dialogs.o \
mime.o
OBJS = dialogs.o mime.o
include $(path_to_top)/Makefile.lib

View File

@ -1,14 +1,9 @@
path_to_top=../../..
include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_MAILCAP),yes)
mailcapobj = mailcap.o
endif
OBJS-$(CONFIG_MAILCAP) += mailcap.o
OBJS-$(CONFIG_MIMETYPES) += mimetypes.o
ifeq ($(CONFIG_MIMETYPES),yes)
mimetypesobj = mimetypes.o
endif
OBJS = common.o default.o $(mailcapobj) $(mimetypesobj)
OBJS = common.o default.o
include $(path_to_top)/Makefile.lib

View File

@ -1,7 +1,7 @@
path_to_top=../..
include $(path_to_top)/Makefile.config
SUBDIRS-$(CONFIG_SSL) += ssl
SUBDIRS-$(CONFIG_SSL) += ssl
OBJS = connection.o dns.o progress.o socket.o state.o

View File

@ -9,10 +9,10 @@ SUBDIRS-$(CONFIG_NNTP) += nntp
SUBDIRS-$(CONFIG_SMB) += smb
SUBDIRS-$(CONFIG_URI_REWRITE) += rewrite
OBJS-$(CONFIG_DATA) += data.o
SUBDIRS = auth file http
OBJS = about.o $(dataobj) date.o header.o protocol.o proxy.o uri.o user.o
OBJS-$(CONFIG_DATA) += data.o
OBJS = about.o date.o header.o protocol.o proxy.o uri.o user.o
include $(path_to_top)/Makefile.lib

View File

@ -3,6 +3,15 @@ include $(path_to_top)/Makefile.config
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
include $(path_to_top)/Makefile.lib

View File

@ -1,10 +1,8 @@
path_to_top=../../..
include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_CGI),yes)
cgiobj = cgi.o
endif
OBJS-$(CONFIG_CGI) += cgi.o
OBJS = file.o $(cgiobj)
OBJS = file.o
include $(path_to_top)/Makefile.lib

View File

@ -1,9 +1,7 @@
path_to_top=../..
include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_MOUSE),yes)
mouseobj = mouse.o
endif
OBJS-$(CONFIG_MOUSE) += mouse.o
OBJS = \
color.o \
@ -11,7 +9,6 @@ OBJS = \
event.o \
hardio.o \
kbd.o \
$(mouseobj) \
screen.o \
tab.o \
terminal.o \

View File

@ -1,30 +1,15 @@
path_to_top=../..
include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_DEBUG),yes)
debugobj = memdebug.o
endif
# Reverse a CONFIG_* string
# Usage $(call not,$(CONFIG_FOO))
not = $(if $(findstring yes,$(1)),no,yes)
ifeq ($(CONFIG_MD5),yes)
md5obj = md5.o
endif
ifeq ($(CONFIG_SCANNER),yes)
scannerobj = scanner.o
endif
ifeq ($(CONFIG_SHA1),yes)
sha1obj = sha1.o
endif
ifeq ($(CONFIG_SMALL),yes)
else
fastfindobj = fastfind.o
endif
ifeq ($(CONFIG_MOUSE),yes)
mouseobj = mouse.o
endif
OBJS-$(CONFIG_DEBUG) += memdebug.o
OBJS-$(CONFIG_MD5) += md5.o
OBJS-$(CONFIG_SCANNER) += scanner.o
OBJS-$(CONFIG_SHA1) += sha1.o
OBJS-$(call not,$(CONFIG_SMALL)) += fastfind.o
OBJS = \
base64.o \
@ -39,11 +24,6 @@ OBJS = \
secsave.o \
snprintf.o \
string.o \
time.o \
$(debugobj) \
$(fastfindobj) \
$(md5obj) \
$(scannerobj) \
$(sha1obj)
time.o
include $(path_to_top)/Makefile.lib

View File

@ -2,9 +2,6 @@ path_to_top=../..
include $(path_to_top)/Makefile.config
SUBDIRS = dump text
OBJS = \
action.o \
timer.o
OBJS = action.o timer.o
include $(path_to_top)/Makefile.lib

View File

@ -1,10 +1,8 @@
path_to_top=../../..
include $(path_to_top)/Makefile.config
ifeq ($(CONFIG_MARKS),yes)
marksobj = marks.o
endif
OBJS-$(CONFIG_MARKS) += marks.o
OBJS = draw.o form.o link.o $(marksobj) search.o textarea.o view.o vs.o
OBJS = draw.o form.o link.o search.o textarea.o view.o vs.o
include $(path_to_top)/Makefile.lib