Changeset ccb785b in mainline for uspace/srv/loader/Makefile


Ignore:
Timestamp:
2010-01-16T21:43:28Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8416d46, cec261e
Parents:
94790d01
Message:

Use common make rules with loader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/Makefile

    r94790d01 rccb785b  
    2828#
    2929
    30 include Makefile.common
     30-include ../../../Makefile.config
     31include arch/$(UARCH)/Makefile.inc
    3132
    32 .PHONY: all clean
     33USPACE_PREFIX = ../..
     34LIBS = $(LIBC_PREFIX)/libc.a
     35EXTRA_CFLAGS += -Iinclude
    3336
    34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    35         -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
     37OUTPUT = loader
    3738
    38 clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm arch/*/_link.ld
    40         find . -name '*.o' -follow -exec rm \{\} \;
     39GENERIC_SOURCES = \
     40        main.c \
     41        elf_load.c \
     42        interp.s
     43
     44SOURCES := $(GENERIC_SOURCES) $(ARCH_SOURCES)
     45OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     46
     47include ../Makefile.common
Note: See TracChangeset for help on using the changeset viewer.