Changeset 4bc83af in rtems-libbsd


Ignore:
Timestamp:
05/17/12 19:56:15 (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
Children:
5382b1f1
Parents:
2f18089
Message:

timeout - Use standard Makefile template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/timeout01/Makefile

    r2f18089 r4bc83af  
    22
    33APP = timeout01
     4PGM=${ARCH}/$(APP).exe
     5
     6# optional managers required
     7MANAGERS=all
     8
     9# C source names
     10C_FILES = init.c timeout_helper.c timeout_test.c
     11C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     12
     13AM_CPPFLAGS += -I $(INSTALL_BASE)/include
     14LINK_LIBS += $(INSTALL_BASE)/libbsd.a ${REL_ARGS}
     15CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused -Wl,-Map,$(APP).map
    416
    517include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
     
    719include $(PROJECT_ROOT)/make/leaf.cfg
    820
    9 C_PIECES = init timeout_test timeout_helper
    10 C_O_FILES = $(C_PIECES:%=%.o)
    11 C_DEP_FILES = $(C_PIECES:%=%.dep)
     21OBJS= $(C_O_FILES)
     22CLEAN_ADDITIONS += $(APP).map *.dep
    1223
    13 OBJS= $(C_O_FILES)
     24all:    ${ARCH} $(PGM)
    1425
    15 DEPFLAGS = -MT $@ -MD -MP -MF $*.dep
    16 AM_CPPFLAGS += -I $(INSTALL_BASE)/include -I.
    17 CLEAN_ADDITIONS += $(APP).exe $(APP).map $(C_DEP_FILES)
    18 
    19 CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused -Wl,-Map,$(APP).map
    20 
    21 LINK_LIBS += $(INSTALL_BASE)/libbsd.a
    22 
    23 all: $(APP).exe
    24 
    25 $(APP).exe: $(C_O_FILES)
    26         $(make-exe)
    27 
    28 -include $(C_DEP_FILES)
     26$(PGM): $(OBJS)
     27        -$(make-exe)
Note: See TracChangeset for help on using the changeset viewer.