Track user and kernel time per thread.
[newos.git] / apps / false / app.mk
blob60d62371707064d0a56a6cd87c79b14d645d5b94
1 FALSEAPP_DIR = $(APPS_DIR)/false
2 FALSEAPP_OBJ_DIR = $(FALSEAPP_DIR)/$(OBJ_DIR)
3 FALSEAPP_OBJS = \
4 $(FALSEAPP_OBJ_DIR)/main.o
6 DEPS += $(FALSEAPP_OBJS:.o=.d)
8 FALSEAPP = $(FALSEAPP_OBJ_DIR)/false
10 $(FALSEAPP): $(FALSEAPP_OBJS) $(LIBS) $(GLUE)
11 $(LD) --script=$(APPS_LDSCRIPT) -L $(LIBGCC_PATH) -o $@ $(GLUE) $(FALSEAPP_OBJS) $(LINK_LIBS) $(LIBGCC)
13 falseappclean:
14 rm -f $(FALSEAPP_OBJS) $(FALSEAPP)
16 APPS += $(FALSEAPP)
18 APPS_CLEAN += falseappclean
20 $(FALSEAPP_OBJ_DIR)/%.o: $(FALSEAPP_DIR)/%.c
21 @if [ ! -d $(FALSEAPP_OBJ_DIR) ]; then mkdir -p $(FALSEAPP_OBJ_DIR); fi
22 @mkdir -p $(FALSEAPP_OBJ_DIR)
23 $(CC) -c $< $(APPS_CFLAGS) $(APPS_INCLUDES) -o $@
25 $(FALSEAPP_OBJ_DIR)/%.d: $(FALSEAPP_DIR)/%.c
26 @if [ ! -d $(FALSEAPP_OBJ_DIR) ]; then mkdir -p $(FALSEAPP_OBJ_DIR); fi
27 @echo "making deps for $<..."
28 @($(ECHO) -n $(dir $@); $(CC) $(APPS_CFLAGS) $(APPS_INCLUDES) -M -MG $<) > $@