* [PATCH] Simplify building of programs
@ 2005-04-23 23:59 Jonas Fonseca
2005-04-24 0:23 ` Jonas Fonseca
0 siblings, 1 reply; 2+ messages in thread
From: Jonas Fonseca @ 2005-04-23 23:59 UTC (permalink / raw)
To: torvalds; +Cc: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Simplify building of programs
2005-04-23 23:59 [PATCH] Simplify building of programs Jonas Fonseca
@ 2005-04-24 0:23 ` Jonas Fonseca
0 siblings, 0 replies; 2+ messages in thread
From: Jonas Fonseca @ 2005-04-24 0:23 UTC (permalink / raw)
To: torvalds, git
[ Sorry, newbie in action. Last patch was for cogito, here it is the for
git in case it matters. ]
Do not first build .o files when building programs.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
--- 30290c79f4914d7575c87d1c06f441d8a3bc5115/Makefile (mode:100644 sha1:57e70239503466fb3a77f1f2618ee64377e8e04b)
+++ uncommitted/Makefile (mode:100644)
@@ -50,7 +50,7 @@
init-db: init-db.o
-%: %.o $(LIB_FILE)
+%: %.c $(LIB_FILE)
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
blob.o: $(LIB_H)
--
Jonas Fonseca
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-24 0:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-23 23:59 [PATCH] Simplify building of programs Jonas Fonseca
2005-04-24 0:23 ` Jonas Fonseca
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox