Git development
 help / color / mirror / Atom feed
* [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

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