cfg_dev.mk, defs-orig.mk, rules.mk: Add support for YStopWatchThreadList

This commit is contained in:
Jan Lindemann 2002-04-01 17:16:36 +00:00 committed by Jan Lindemann
commit f1db64eafa
3 changed files with 15 additions and 3 deletions

View file

@ -0,0 +1 @@
USE_TIMER = true

View file

@ -136,6 +136,11 @@ CPPFLAGS += -fprofile-arcs -ftest-coverage
LDFLAGS += -fprofile-arcs -ftest-coverage
endif
ifeq ($(USE_TIMER),true)
CFLAGS += -D_USE_TIMER_
CPPFLAGS += -D_USE_TIMER_
endif
LDFLAGS += -L$(LIBDIR) $(PROJECTLIB_LDFLAGS) $(LOCAL_LDFLAGS) $(PROJECT_LDFLAGS) $(LPPFLAGS)
LDREST += $(LDAUDIO) $(LDFFTW) -ldl
CC = $(YAMD)gcc

View file

@ -3,7 +3,9 @@
# contact@jannet.de
# $Id$
all: $(ALL)
GENERATE_FUNC_TIMERS = $(MODDIR)/YStopWatchThreadList/generate_func_timers.sh
all: $(LOCAL_TARGETS) $(ALL)
echo_all:
@echo "$(ALL)"
@ -40,6 +42,9 @@ $(TOPDIR)/include/%.h: $(TOPDIR)/include %.h
%.o: %.c
$(CC) $(CFLAGS) -c $<
timers_%.h: %.h $(GENERATE_FUNC_TIMERS)
sh $(GENERATE_FUNC_TIMERS) $< $@
ifeq ($(USE_PROJECT_LIB),true)
$(EXE): $(OBJ) $(LIB)
else
@ -90,7 +95,7 @@ doneclean:
execlean: allclean objclean textclean
distclean: clean objclean textclean tmpclean vcdistclean profclean
distclean: clean objclean textclean tmpclean vcdistclean profclean timerclean
localclean: $(LOCAL_CLEAN)
rm -rf $(CLEAN)
@ -107,4 +112,5 @@ prereqclean:
profclean:
rm -f *.da *.bb *.bbg *.gcov
timerclean:
rm -f timers_*.h