Changeset 6efb4d2 in mainline for uspace/app/msim/Makefile


Ignore:
Timestamp:
2012-05-04T09:45:34Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a23f6e
Parents:
7360332
Message:

Reorganize HelenOS specific files for MSIM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/msim/Makefile

    r7360332 r6efb4d2  
    3636
    3737MSIM_HELENOS_MAKEFILE = Makefile.msim.src
    38 MSIM_HELENOS_PLATFORM_FILES = helenos.c helenos_input.c
     38MSIM_HELENOS_PLATFORM_FILES = misc.c input.c
     39MSIM_HELENOS_ARCH_DIR = arch/helenos
    3940MSIM_PATCHED_FILES = \
    4041        $(MSIM_DIST)/config.h \
    4142        $(MSIM_DIST)/src/$(MSIM_HELENOS_MAKEFILE) \
    42         $(MSIM_DIST)/src/helenos.c \
    43         $(MSIM_DIST)/src/helenos_input.c
     43        $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/helenos.h \
     44        $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/misc.c \
     45        $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/input.c
     46
     47MSIM_EXTRA_SOURCES := $(addprefix $(MSIM_HELENOS_ARCH_DIR)/,$(MSIM_HELENOS_PLATFORM_FILES))
    4448
    4549CP = /bin/cp -f
     
    6367        $(CP) $< $@
    6468
    65 $(MSIM_DIST)/src/helenos.c: helenos.c | unpack-tarball
     69$(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/helenos.h: arch_helenos/helenos.h | unpack-tarball
    6670        $(CP) $< $@
    6771
    68 $(MSIM_DIST)/src/helenos_input.c: helenos_input.c | unpack-tarball
     72$(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/misc.c: arch_helenos/misc.c | unpack-tarball
     73        $(CP) $< $@
     74
     75$(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/input.c: arch_helenos/input.c | unpack-tarball
    6976        $(CP) $< $@
    7077
     
    7986        ) | make -f - | grep 'SOURCES' >Makefile.sources
    8087        sed \
    81                 -e 's:io/input.c:$(MSIM_HELENOS_PLATFORM_FILES):' \
     88                -e 's:io/input.c:$(MSIM_EXTRA_SOURCES):' \
    8289                -e 's:debug/gdb.c::' \
    8390                -e 's:arch/posix/stdin.c::' \
     
    9097unpack-tarball: $(MSIM_TARBALL)
    9198        tar xjf $(MSIM_TARBALL)
     99        mkdir -p $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)
Note: See TracChangeset for help on using the changeset viewer.