From: Jonas Fonseca <fonseca@diku.dk>
To: torvalds@osdl.org
Cc: git@vger.kernel.org
Subject: [PATCH] Simplify building of programs
Date: Sun, 24 Apr 2005 01:59:56 +0200 [thread overview]
Message-ID: <20050423235956.GA7437@diku.dk> (raw)
Don't list libgit.a twice when compiling programs and make them depend
on the .c files so .o files are not left behind.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
--- 66b3fa5bde838935121a2eb7cf4b67587c32de13/Makefile (mode:100644 sha1:e26b7c3695bf7ee88a75dcb6fd1953ce8b33c748)
+++ uncommitted/Makefile (mode:100644)
@@ -49,8 +49,7 @@
LIB_H=cache.h object.h
-LIBS = $(LIB_FILE)
-LIBS += -lz
+LIBS = -lz
ifdef MOZILLA_SHA1
SHA1_HEADER="mozilla-sha1/sha1.h"
@@ -70,7 +69,7 @@
all: $(PROG) $(GEN_SCRIPT)
-$(PROG):%: %.o $(LIB_FILE)
+$(PROG):%: %.c $(LIB_FILE)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
$(LIB_FILE): $(LIB_OBJS)
--
Jonas Fonseca
next reply other threads:[~2005-04-23 23:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-23 23:59 Jonas Fonseca [this message]
2005-04-24 0:23 ` [PATCH] Simplify building of programs Jonas Fonseca
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050423235956.GA7437@diku.dk \
--to=fonseca@diku.dk \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.