Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/Makefile

    r3c081d0e r1b1164e8  
    2828#
    2929
    30 -include ../../../Makefile.config
     30USPACE_PREFIX = ../..
     31ROOT_PATH = $(USPACE_PREFIX)/..
     32
     33COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
     34CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
     35
     36-include $(COMMON_MAKEFILE)
     37-include $(CONFIG_MAKEFILE)
    3138-include arch/$(UARCH)/Makefile.inc
    3239
    33 USPACE_PREFIX = ../..
    34 LIBS = $(LIBC_PREFIX)/libc.a
    35 EXTRA_CFLAGS += -Iinclude
    36 LINK_SCRIPT = arch/$(UARCH)/_link.ld
     40LINKER_SCRIPT = arch/$(UARCH)/_link.ld
     41EXTRA_CLEAN = $(LINKER_SCRIPT)
    3742
    38 OUTPUT = loader
    39 EXTRA_OUTPUT = $(LINK_SCRIPT)
     43EXTRA_CFLAGS = -Iinclude
     44
     45BINARY = loader
    4046
    4147GENERIC_SOURCES = \
     
    4450        interp.s
    4551
    46 SOURCES := $(GENERIC_SOURCES) $(ARCH_SOURCES)
    47 OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     52SOURCES = \
     53        $(GENERIC_SOURCES) \
     54        $(ARCH_SOURCES)
    4855
    49 include ../Makefile.common
     56include $(USPACE_PREFIX)/Makefile.common
    5057
    51 $(LINK_SCRIPT): $(LINK_SCRIPT).in
     58$(LINKER_SCRIPT): $(LINKER_SCRIPT).in
    5259        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@
Note: See TracChangeset for help on using the changeset viewer.