Changeset 9ce911d in mainline for uspace/app/vlaunch/Makefile


Ignore:
Timestamp:
2017-06-02T20:06:13Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f98434b8
Parents:
7367c31
Message:

improve binary data packer

  • optional deflate compression
  • performance improvements
  • generate an assembly source, a header file and a C source with metadata (all there files are stored in an uncompressed ZIP archive first to workaround the inability of GNU Make to express a dependency rule with multiple targets)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/vlaunch/Makefile

    r7367c31 r9ce911d  
    4343MATH = y
    4444
     45IMG = image
     46IMGS = $(IMG)s
     47
    4548SOURCES = \
    4649        vlaunch.c \
    47         images.s
     50        $(IMGS).s \
     51        $(IMGS)_desc.c
    4852
    4953IMAGES = \
    5054        gfx/helenos.tga
    5155
    52 PRE_DEPEND = images.s images.h
    53 EXTRA_CLEAN = images.s images.h
     56PRE_DEPEND = $(IMGS).s $(IMGS).h $(IMGS)_desc.c
     57EXTRA_CLEAN = $(IMGS).s $(IMGS).h $(IMGS)_desc.c $(IMGS).zip
    5458
    5559include $(USPACE_PREFIX)/Makefile.common
    5660
    57 images.s images.h: $(IMAGES)
    58         $(ROOT_PATH)/tools/mkarray.py images COMPOSITOR_IMAGES "$(AS_PROLOG)" $^
     61$(IMGS).s: $(IMGS).zip
     62        unzip -p $< $@ > $@
     63
     64$(IMGS).h: $(IMGS).zip
     65        unzip -p $< $@ > $@
     66
     67$(IMGS)_desc.c: $(IMGS).zip
     68        unzip -p $< $@ > $@
     69
     70$(IMGS).zip: $(IMAGES)
     71        $(ROOT_PATH)/tools/mkarray.py $(IMGS) $(IMG) "$(AS_PROLOG)" $^
Note: See TracChangeset for help on using the changeset viewer.