< prev index next >

make/gensrc/GensrcBuffer.gmk

Print this page

        

@@ -228,12 +228,11 @@
     $(call genBinOps,$1_float,float,$$($1_BO),$$($1_RW),four,three)
     $(call genBinOps,$1_double,double,$$($1_BO),$$($1_RW),eight,seven)
   endif
 
   $$($1_DST): $$($1_DEP) $(GENSRC_BUFFER_DST)/_the.buffer.dir
-        $(RM) $$($1_OUT).tmp
-        $(TOOL_SPP) -i$$($1_SRC) -o$$($1_OUT).tmp \
+        $(TOOL_SPP) < $$($1_SRC) > $$($1_OUT).tmp \
             -K$$($1_type) \
             -K$$($1_category) \
             -K$$($1_streams) \
             -Dtype=$$($1_type) \
             -DType=$$($1_Type) \

@@ -259,16 +258,16 @@
         $(MV) $$($1_OUT).tmp $$($1_OUT)
         # Do the extra bin thing
         ifeq ($$($1_BIN), 1)
           $(SED) -e '/#BIN/,$$$$d' < $$($1_OUT) > $$($1_DST).tmp
           $(RM) $$($1_OUT)
-          $$($1_char_CMD) -i$$($1_SRC_BIN) -o$$($1_DST).tmp
-          $$($1_short_CMD) -i$$($1_SRC_BIN) -o$$($1_DST).tmp
-          $$($1_int_CMD) -i$$($1_SRC_BIN) -o$$($1_DST).tmp
-          $$($1_long_CMD) -i$$($1_SRC_BIN) -o$$($1_DST).tmp
-          $$($1_float_CMD) -i$$($1_SRC_BIN) -o$$($1_DST).tmp
-          $$($1_double_CMD) -i$$($1_SRC_BIN) -o$$($1_DST).tmp
+          $$($1_char_CMD) < $$($1_SRC_BIN) >> $$($1_DST).tmp
+          $$($1_short_CMD) < $$($1_SRC_BIN) >> $$($1_DST).tmp
+          $$($1_int_CMD) < $$($1_SRC_BIN) >> $$($1_DST).tmp
+          $$($1_long_CMD) < $$($1_SRC_BIN) >> $$($1_DST).tmp
+          $$($1_float_CMD) < $$($1_SRC_BIN) >> $$($1_DST).tmp
+          $$($1_double_CMD) < $$($1_SRC_BIN) >> $$($1_DST).tmp
           $(PRINTF) "}\n" >> $$($1_DST).tmp
           mv $$($1_DST).tmp $$($1_DST)
         endif
 
   GENSRC_BUFFER += $$($1_DST)
< prev index next >