mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 17:49:19 +08:00
timeout - Use standard Makefile template
This commit is contained in:
parent
2f1808913b
commit
4bc83af749
@ -1,28 +1,27 @@
|
||||
include ../../config.inc
|
||||
|
||||
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_CUSTOM)
|
||||
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)
|
||||
CLEAN_ADDITIONS += $(APP).map *.dep
|
||||
|
||||
DEPFLAGS = -MT $@ -MD -MP -MF $*.dep
|
||||
AM_CPPFLAGS += -I $(INSTALL_BASE)/include -I.
|
||||
CLEAN_ADDITIONS += $(APP).exe $(APP).map $(C_DEP_FILES)
|
||||
all: ${ARCH} $(PGM)
|
||||
|
||||
CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused -Wl,-Map,$(APP).map
|
||||
|
||||
LINK_LIBS += $(INSTALL_BASE)/libbsd.a
|
||||
|
||||
all: $(APP).exe
|
||||
|
||||
$(APP).exe: $(C_O_FILES)
|
||||
$(make-exe)
|
||||
|
||||
-include $(C_DEP_FILES)
|
||||
$(PGM): $(OBJS)
|
||||
-$(make-exe)
|
||||
|
Loading…
x
Reference in New Issue
Block a user