[rtems-libbsd commit] Makefile: Correct so not rebuilding all every time

Joel Sherrill joel at rtems.org
Fri Aug 3 13:36:46 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    b27d8759d25ef2c558daf83bd778f3b1d3a9e1c1
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=b27d8759d25ef2c558daf83bd778f3b1d3a9e1c1

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri Jul 27 08:05:15 2012 -0500

Makefile: Correct so not rebuilding all every time

---

 freebsd-userspace/Makefile |   17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/freebsd-userspace/Makefile b/freebsd-userspace/Makefile
index f1e1a4a..3de3258 100644
--- a/freebsd-userspace/Makefile
+++ b/freebsd-userspace/Makefile
@@ -4,20 +4,14 @@ include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
 include $(RTEMS_CUSTOM)
 include $(PROJECT_ROOT)/make/leaf.cfg
 
-CFLAGS += -I $(INSTALL_BASE)/include
-#CFLAGS += -ffreestanding 
 CFLAGS += -I include 
 CFLAGS += -I rtems/include 
 CFLAGS += -I lib/libc/include 
 CFLAGS += -I sys
 CFLAGS += -I local 
-#CFLAGS += -I . 
-#CFLAGS += -I rtemsbsd 
-##CFLAGS += -I rtemsbsd/$(RTEMS_CPU)/include 
-#CFLAGS += -I freebsd/$(RTEMS_CPU)/include 
-#CFLAGS += -I contrib/altq 
-#CFLAGS += -I contrib/pf 
-#CFLAGS += -B $(INSTALL_BASE) 
+
+CFLAGS += -I $(INSTALL_BASE)/include
+
 CFLAGS += -w 
 CFLAGS += -std=gnu99
 CFLAGS += -MT $@ -MD -MP -MF $(basename $@).d
@@ -93,14 +87,11 @@ C_D_FILES = $(C_FILES:%.c=%.d)
 LIB = libbsdc.a
 GEN_FILES = include/rpc/rpcb_prot.h
 
-all: lib_bsdc
+all: $(LIB)
 
 $(LIB): $(GEN_FILES) $(C_O_FILES)
 	$(AR) rcu $@ $^
 
-lib_bsdc: $(LIB) include/rpc/rpcb_prot.h
-	$(MAKE) $(LIB)
-
 include/rpc/rpcb_prot.h: include/rpc/rpcb_prot.x
 	rm -f include/rpc/rpcb_prot.h
 	rpcgen -h -o include/rpc/rpcb_prot.h include/rpc/rpcb_prot.x




More information about the vc mailing list