* [devel] Создание LTOBJS ( lo-файлы )
@ 2007-09-17 5:59 Vitaly Lipatov
2007-09-17 6:01 ` Andrey Rahmatullin
0 siblings, 1 reply; 2+ messages in thread
From: Vitaly Lipatov @ 2007-09-17 5:59 UTC (permalink / raw)
To: devel
В одном Makefile (опять sane) такая конструкция:
LIBLIB_OBJS = @LIBOBJS@ @ALLOCA@ getopt.o getopt1.o md5.o
LIBLIB_LTOBJS = $(addsuffix .lo,$(basename $(LIBLIB_OBJS)))
TARGETS = liblib.a $(LIBLIB_LTOBJS)
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LIBTOOL = ../libtool
MCOMP = --mode=compile
.c.o:
$(COMPILE) $<
.c.lo:
@$(LIBTOOL) $(MCOMP) $(COMPILE) $<
all: $(TARGETS)
liblib.a: $(LIBLIB_OBJS)
ar r $@ $(LIBLIB_OBJS)
$(RANLIB) $@
Поскольку при создании lo-файлов происходит компиляция, и
создаются объектники, выходит создавать отдельно объектники нет
смысла, или я не понимаю какой-то хитрости? Зачем они отдельно
создают _OBJS и _LTOBJS?
--
Lav
Виталий Липатов
Санкт-Петербург
GNU! ALT Linux Team! WINE! LaTeX! LyX! http://freesource.info
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-17 6:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-17 5:59 [devel] Создание LTOBJS ( lo-файлы ) Vitaly Lipatov
2007-09-17 6:01 ` Andrey Rahmatullin
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git