Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 21365c0 in mainline


Ignore:
Timestamp:
2014-09-02T19:34:08Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
4dc7a84
Parents:
5713e5f
Message:

Allow autogens also in libc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    r5713e5f r21365c0  
    4949-include $(CONFIG_MAKEFILE)
    5050-include arch/$(UARCH)/Makefile.inc
     51
     52ARCH_AUTOGENS_H := $(addsuffix .h,$(basename $(ARCH_AUTOGENS_AG)))
     53ARCH_AUTOGENS_PROBE_C := $(addsuffix .ag.probe.c,$(basename $(ARCH_AUTOGENS_AG)))
     54ARCH_AUTOGENS_PROBE_S := $(addsuffix .ag.probe.s,$(basename $(ARCH_AUTOGENS_AG)))
     55
     56PRE_DEPEND += $(ARCH_AUTOGENS_H)
     57EXTRA_CLEAN += $(ARCH_AUTOGENS_H) $(ARCH_AUTOGENS_PROBE_C) $(ARCH_AUTOGENS_PROBE_S)
    5158
    5259GENERIC_SOURCES = \
     
    160167include $(USPACE_PREFIX)/Makefile.common
    161168
     169%.h: %.ag
     170        $(AUTOGEN) probe $< >$<.probe.c
     171        $(CC) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c
     172        $(AUTOGEN) generate $< <$<.probe.s >$@   
     173
    162174$(LIBC_PREFIX)/arch/$(UARCH)/_link.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
    163175        $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@
Note: See TracChangeset for help on using the changeset viewer.