Commit b39843f3e42c8e062a29b2a64e3c3ce6a16eb72f

Shawn O. Pearce 2008-10-31T11:44:00

Use wildcard to avoid listing out all source files by hand Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

diff --git a/Makefile b/Makefile
index c985f0c..e719ec2 100644
--- a/Makefile
+++ b/Makefile
@@ -5,15 +5,8 @@ DOXYGEN = doxygen
 CFLAGS = -g -O2
 BASIC_CFLAGS = -Isrc
 
-OBJS = \
-	src/git_odb.o \
-	src/git_oid.o \
-#end OBJS
-
-HDRS = \
-	src/git_oid.h \
-	src/git_common.h \
-#end HDRS
+OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c))
+HDRS = $(wildcard src/*.h)
 
 
 all:: libgit2.a