mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-04 14:54:02 +08:00
Makefile: Correct so not rebuilding all every time
This commit is contained in:
parent
2cbf1af59d
commit
b27d8759d2
@ -4,20 +4,14 @@ include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
|
|||||||
include $(RTEMS_CUSTOM)
|
include $(RTEMS_CUSTOM)
|
||||||
include $(PROJECT_ROOT)/make/leaf.cfg
|
include $(PROJECT_ROOT)/make/leaf.cfg
|
||||||
|
|
||||||
CFLAGS += -I $(INSTALL_BASE)/include
|
|
||||||
#CFLAGS += -ffreestanding
|
|
||||||
CFLAGS += -I include
|
CFLAGS += -I include
|
||||||
CFLAGS += -I rtems/include
|
CFLAGS += -I rtems/include
|
||||||
CFLAGS += -I lib/libc/include
|
CFLAGS += -I lib/libc/include
|
||||||
CFLAGS += -I sys
|
CFLAGS += -I sys
|
||||||
CFLAGS += -I local
|
CFLAGS += -I local
|
||||||
#CFLAGS += -I .
|
|
||||||
#CFLAGS += -I rtemsbsd
|
CFLAGS += -I $(INSTALL_BASE)/include
|
||||||
##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 += -w
|
CFLAGS += -w
|
||||||
CFLAGS += -std=gnu99
|
CFLAGS += -std=gnu99
|
||||||
CFLAGS += -MT $@ -MD -MP -MF $(basename $@).d
|
CFLAGS += -MT $@ -MD -MP -MF $(basename $@).d
|
||||||
@ -93,14 +87,11 @@ C_D_FILES = $(C_FILES:%.c=%.d)
|
|||||||
LIB = libbsdc.a
|
LIB = libbsdc.a
|
||||||
GEN_FILES = include/rpc/rpcb_prot.h
|
GEN_FILES = include/rpc/rpcb_prot.h
|
||||||
|
|
||||||
all: lib_bsdc
|
all: $(LIB)
|
||||||
|
|
||||||
$(LIB): $(GEN_FILES) $(C_O_FILES)
|
$(LIB): $(GEN_FILES) $(C_O_FILES)
|
||||||
$(AR) rcu $@ $^
|
$(AR) rcu $@ $^
|
||||||
|
|
||||||
lib_bsdc: $(LIB) include/rpc/rpcb_prot.h
|
|
||||||
$(MAKE) $(LIB)
|
|
||||||
|
|
||||||
include/rpc/rpcb_prot.h: include/rpc/rpcb_prot.x
|
include/rpc/rpcb_prot.h: include/rpc/rpcb_prot.x
|
||||||
rm -f include/rpc/rpcb_prot.h
|
rm -f include/rpc/rpcb_prot.h
|
||||||
rpcgen -h -o include/rpc/rpcb_prot.h include/rpc/rpcb_prot.x
|
rpcgen -h -o include/rpc/rpcb_prot.h include/rpc/rpcb_prot.x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user