Changes in uspace/lib/c/Makefile [0caa075e:21365c0] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    r0caa075e r21365c0  
    3131ROOT_PATH = $(USPACE_PREFIX)/..
    3232
    33 COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
    34 COMMON_HEADER = $(ROOT_PATH)/common.h
     33CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
    3534COMMON_HEADER_ARCH = arch/$(UARCH)/include/libarch/common.h
    36 
    37 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
    3835
    3936LINKER_SCRIPTS = \
     
    5047LSONAME = libc.so0
    5148
    52 
    53 -include $(COMMON_MAKEFILE)
    5449-include $(CONFIG_MAKEFILE)
    5550-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)
    5658
    5759GENERIC_SOURCES = \
     
    6971        generic/device/hw_res_parsed.c \
    7072        generic/device/pio_window.c \
    71         generic/device/char_dev.c \
    7273        generic/device/clock_dev.c \
    73         generic/device/battery_dev.c \
    74         generic/device/graph_dev.c \
    75         generic/device/nic.c \
    76         generic/device/pci.c \
    77         generic/device/ahci.c \
     74        generic/device/led_dev.c \
    7875        generic/dhcp.c \
    7976        generic/dnsr.c \
     
    10299        generic/io/input.c \
    103100        generic/io/io.c \
     101        generic/io/chardev.c \
     102        generic/io/chardev_srv.c \
    104103        generic/io/chargrid.c \
    105104        generic/io/output.c \
     
    119118        generic/iplink.c \
    120119        generic/iplink_srv.c \
     120        generic/irc.c \
     121        generic/irq.c \
    121122        generic/ieee_double.c \
    122123        generic/power_of_ten.c \
     
    137138        generic/time.c \
    138139        generic/stdlib.c \
    139         generic/mman.c \
    140140        generic/udebug.c \
    141141        generic/vfs/vfs.c \
     
    167167include $(USPACE_PREFIX)/Makefile.common
    168168
     169%.h: %.ag
     170        $(AUTOGEN) probe $< >$<.probe.c
     171        $(CC) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c
     172        $(AUTOGEN) generate $< <$<.probe.s >$@   
    169173
    170174$(LIBC_PREFIX)/arch/$(UARCH)/_link.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
Note: See TracChangeset for help on using the changeset viewer.