]> Chaos Git - corbenik/ctrulib.git/commitdiff
Fix gpu example Makefiles for latest picasso
authorLuke Street <luke.street@encounterpc.com>
Mon, 17 Aug 2015 16:00:28 +0000 (12:00 -0400)
committerLuke Street <luke.street@encounterpc.com>
Mon, 17 Aug 2015 16:01:34 +0000 (12:01 -0400)
examples/graphics/gpu/Makefile [new file with mode: 0644]
examples/graphics/gpu/geoshader/Makefile
examples/graphics/gpu/simple_tri/Makefile
examples/graphics/gpu/textured_cube/Makefile

diff --git a/examples/graphics/gpu/Makefile b/examples/graphics/gpu/Makefile
new file mode 100644 (file)
index 0000000..bce05ec
--- /dev/null
@@ -0,0 +1,7 @@
+SUBDIRS:= `ls | egrep -v '^(CVS)$$'`
+all:
+       @for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i || { exit 1;} fi; done;
+clean:
+       @for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE)  -C $$i clean || { exit 1;} fi; done;
+install:
+       @for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE)  -C $$i install || { exit 1;} fi; done;
index 1e4e9eff2163972751fb36add18bd29c34903016..3b728242d378eaa12a0fb7436e4b835298dc4525 100644 (file)
@@ -164,7 +164,7 @@ $(OUTPUT).elf       :       $(OFILES)
        @echo $(notdir $<)
        $(eval CURBIN := $(patsubst %.pica,%.shbin,$(notdir $<)))
        $(eval CURH := $(patsubst %.pica,%.psh.h,$(notdir $<)))
-       @picasso $(CURBIN) $< $(CURH)
+       @picasso -h $(CURH) -o $(CURBIN) $<
        @bin2s $(CURBIN) | $(AS) -o $@
        @echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo $(CURBIN) | tr . _)`.h
        @echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo $(CURBIN) | tr . _)`.h
index 1e4e9eff2163972751fb36add18bd29c34903016..3b728242d378eaa12a0fb7436e4b835298dc4525 100644 (file)
@@ -164,7 +164,7 @@ $(OUTPUT).elf       :       $(OFILES)
        @echo $(notdir $<)
        $(eval CURBIN := $(patsubst %.pica,%.shbin,$(notdir $<)))
        $(eval CURH := $(patsubst %.pica,%.psh.h,$(notdir $<)))
-       @picasso $(CURBIN) $< $(CURH)
+       @picasso -h $(CURH) -o $(CURBIN) $<
        @bin2s $(CURBIN) | $(AS) -o $@
        @echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo $(CURBIN) | tr . _)`.h
        @echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo $(CURBIN) | tr . _)`.h
index 1e4e9eff2163972751fb36add18bd29c34903016..3b728242d378eaa12a0fb7436e4b835298dc4525 100644 (file)
@@ -164,7 +164,7 @@ $(OUTPUT).elf       :       $(OFILES)
        @echo $(notdir $<)
        $(eval CURBIN := $(patsubst %.pica,%.shbin,$(notdir $<)))
        $(eval CURH := $(patsubst %.pica,%.psh.h,$(notdir $<)))
-       @picasso $(CURBIN) $< $(CURH)
+       @picasso -h $(CURH) -o $(CURBIN) $<
        @bin2s $(CURBIN) | $(AS) -o $@
        @echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo $(CURBIN) | tr . _)`.h
        @echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo $(CURBIN) | tr . _)`.h