Got the kernel's nose out of cmdline args
[akaros.git] / user / apps / parlib / pthread / Makefrag
1 USER_APPS_PARLIB_PTHREAD_DIR := $(USER_APPS_PARLIB_DIR)/pthread
2
3 USER_APPS_PARLIB_PTHREAD_LDLIBS := $(USER_APPS_PARLIB_LDLIBS)
4
5 USER_APPS_PARLIB_PTHREAD_LDDEPENDS := $(OBJDIR)/$(USER_APPS_PARLIB_PTHREAD_DIR)/%.o \
6                                       $(USER_APPS_PARLIB_LDOBJS) \
7                                       $(OBJDIR)/$(USER_PARLIB_DIR)/libparlib.a \
8                                       $(OBJDIR)/$(USER_PARLIB_DIR)/libpthread.a \
9                                       $(OBJDIR)/$(USER_PARLIB_DIR)/libivyparlib.a
10
11 $(OBJDIR)/$(USER_APPS_PARLIB_PTHREAD_DIR)/%: $(USER_APPS_PARLIB_PTHREAD_LDDEPENDS)
12         @echo + ld [APPS PARLIB PTHREAD] $@
13         $(V)$(LD) -o $@ $(USER_APPS_PARLIB_LDFLAGS) $@.o \
14                     $(USER_APPS_PARLIB_LDOBJS) $(USER_APPS_PARLIB_LDDIRS) \
15                     $(USER_APPS_PARLIB_PTHREAD_LDLIBS) \
16                     $(USER_APPS_PARLIB_GCC_LIB)
17         $(V)$(OBJDUMP) -S $@ > $@.asm
18         $(V)$(NM) -n $@ > $@.sym