From b39843f3e42c8e062a29b2a64e3c3ce6a16eb72f Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 31 Oct 2008 11:44:00 -0700 Subject: [PATCH] Use wildcard to avoid listing out all source files by hand Signed-off-by: Shawn O. Pearce --- Makefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index c985f0cf4..e719ec29c 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