X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2FMakefile;h=3bc24f8ea62f778ce4ae2bd080f330da7ebc76de;hb=9b918b912e6cb7b2f0267b6da9d700b4e94abfd3;hp=1112ffeae86bd42a71516e8ed80ab4140b26e9d1;hpb=be5123fe1f4aa66b76ce8ef589362ad21b6bbf72;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/Makefile b/Usermode/Applications/axwin3_src/WM/Makefile index 1112ffea..3bc24f8e 100644 --- a/Usermode/Applications/axwin3_src/WM/Makefile +++ b/Usermode/Applications/axwin3_src/WM/Makefile @@ -23,13 +23,36 @@ OBJ += renderers/widget/textinput.o OBJ += renderers/widget/spacer.o OBJ += renderers/widget/subwin.o +PNGIMAGES := toolbar_new.png toolbar_save.png toolbar_open.png + LDFLAGS += -limage_sif -luri -lnet -lunicode +IMG2SIF = ../../../../Tools/img2sif + -include ../../Makefile.tpl +.PHONY: install_resources + +install: install_resources + #all: resources/LogoSmall.sif.res.h %.res.h: % Makefile echo "#define RESOURCE_$(notdir $<) \\"| sed -e 's/\./_/g' > $@ base64 $< | sed -e 's/.*/"&"\\/' >> $@ echo "" >> $@ + +$(IMG2SIF): + $(MAKE) -C $(dir $(IMG2SIF)) img2sif + +all: $(addprefix resources/,$(PNGIMAGES:%.png=.%.sif)) + +resources/.%.sif: $(IMG2SIF) Makefile resources/%.png + @echo img2sif resources/$*.png + @$(IMG2SIF) --rle1x32 resources/$*.png resources/.$*.sif + +install_%.sif: resources/.%.sif ; + @echo [xCP] $(DISTROOT)/$(DIR)/$*.sif + @$(xCP) $< $(DISTROOT)/$(DIR)/$*.sif + +install_resources: $(IMG2SIF) $(addprefix install_,$(PNGIMAGES:%.png=%.sif))