mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
1efab31581
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.
46 lines
726 B
Makefile
46 lines
726 B
Makefile
path_to_top=../..
|
|
include $(path_to_top)/Makefile.config
|
|
INCLUDES += $(X_CFLAGS)
|
|
|
|
ifeq ($(CONFIG_BEOS),yes)
|
|
beosdir = beos
|
|
beosobj = $(beosdir)/lib.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_OS2),yes)
|
|
os2dir = os2
|
|
os2obj = $(os2dir)/lib.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_RISCOS),yes)
|
|
riscosdir = riscos
|
|
riscosobj = $(riscosdir)/lib.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_UNIX),yes)
|
|
unixdir = unix
|
|
unixobj = $(unixdir)/lib.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_WIN32),yes)
|
|
win32dir = win32
|
|
win32obj = $(win32dir)/lib.o
|
|
endif
|
|
|
|
SUBDIRS = $(beosdir) $(os2dir) $(riscosdir) $(unixdir) $(win32dir)
|
|
|
|
OBJS = \
|
|
getifaddrs.o \
|
|
newwin.o \
|
|
osdep.o \
|
|
signals.o \
|
|
stub.o \
|
|
sysname.o \
|
|
$(beosobj) \
|
|
$(os2obj) \
|
|
$(riscosobj) \
|
|
$(unixobj) \
|
|
$(win32obj)
|
|
|
|
include $(path_to_top)/Makefile.lib
|