mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 01:29:19 +08:00
timeout - Use standard Makefile template
This commit is contained in:
parent
2f1808913b
commit
4bc83af749
@ -1,28 +1,27 @@
|
|||||||
include ../../config.inc
|
include ../../config.inc
|
||||||
|
|
||||||
APP = timeout01
|
APP = timeout01
|
||||||
|
PGM=${ARCH}/$(APP).exe
|
||||||
|
|
||||||
|
# optional managers required
|
||||||
|
MANAGERS=all
|
||||||
|
|
||||||
|
# C source names
|
||||||
|
C_FILES = init.c timeout_helper.c timeout_test.c
|
||||||
|
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
|
||||||
|
|
||||||
|
AM_CPPFLAGS += -I $(INSTALL_BASE)/include
|
||||||
|
LINK_LIBS += $(INSTALL_BASE)/libbsd.a ${REL_ARGS}
|
||||||
|
CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused -Wl,-Map,$(APP).map
|
||||||
|
|
||||||
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
|
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
|
||||||
include $(RTEMS_CUSTOM)
|
include $(RTEMS_CUSTOM)
|
||||||
include $(PROJECT_ROOT)/make/leaf.cfg
|
include $(PROJECT_ROOT)/make/leaf.cfg
|
||||||
|
|
||||||
C_PIECES = init timeout_test timeout_helper
|
|
||||||
C_O_FILES = $(C_PIECES:%=%.o)
|
|
||||||
C_DEP_FILES = $(C_PIECES:%=%.dep)
|
|
||||||
|
|
||||||
OBJS= $(C_O_FILES)
|
OBJS= $(C_O_FILES)
|
||||||
|
CLEAN_ADDITIONS += $(APP).map *.dep
|
||||||
|
|
||||||
DEPFLAGS = -MT $@ -MD -MP -MF $*.dep
|
all: ${ARCH} $(PGM)
|
||||||
AM_CPPFLAGS += -I $(INSTALL_BASE)/include -I.
|
|
||||||
CLEAN_ADDITIONS += $(APP).exe $(APP).map $(C_DEP_FILES)
|
|
||||||
|
|
||||||
CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused -Wl,-Map,$(APP).map
|
$(PGM): $(OBJS)
|
||||||
|
-$(make-exe)
|
||||||
LINK_LIBS += $(INSTALL_BASE)/libbsd.a
|
|
||||||
|
|
||||||
all: $(APP).exe
|
|
||||||
|
|
||||||
$(APP).exe: $(C_O_FILES)
|
|
||||||
$(make-exe)
|
|
||||||
|
|
||||||
-include $(C_DEP_FILES)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user