Changeset 9ce911d in mainline for uspace/app/barber/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/barber/Makefile

    r7367c31 r9ce911d  
    4444MATH = y
    4545
     46IMG = image
     47IMGS = $(IMG)s
     48
    4649SOURCES = \
    4750        barber.c \
    48         images.s
     51        $(IMGS).s \
     52        $(IMGS)_desc.c
    4953
    5054IMAGES = \
     
    8084        gfx/frame30.tga.gz
    8185
    82 PRE_DEPEND = images.s images.h
    83 EXTRA_CLEAN = images.s images.h
     86PRE_DEPEND = $(IMGS).s $(IMGS).h $(IMGS)_desc.c
     87EXTRA_CLEAN = $(IMGS).s $(IMGS).h $(IMGS)_desc.c $(IMGS).zip
    8488
    8589include $(USPACE_PREFIX)/Makefile.common
    8690
    87 images.s images.h: $(IMAGES)
    88         $(ROOT_PATH)/tools/mkarray.py images COMPOSITOR_IMAGES "$(AS_PROLOG)" $^
     91$(IMGS).s: $(IMGS).zip
     92        unzip -p $< $@ > $@
     93
     94$(IMGS).h: $(IMGS).zip
     95        unzip -p $< $@ > $@
     96
     97$(IMGS)_desc.c: $(IMGS).zip
     98        unzip -p $< $@ > $@
     99
     100$(IMGS).zip: $(IMAGES)
     101        $(ROOT_PATH)/tools/mkarray.py $(IMGS) $(IMG) "$(AS_PROLOG)" $^
Note: See TracChangeset for help on using the changeset viewer.