This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Rules of creating Makefile

Hello!

I have to write programm to capture from CMOS-matrix for DM355.

Where can I find documentation with sample that describe how can I create Makefile for my application?

Thank you and excuse me for my bad english.

  • mmm, this is a pretty broad question as makefiles can range from being very simple one-liners, to very complex forming parts of larger hierarchies.

    If you just want to gtet familiar with makefiles in general, I would recommend looking at the gmake manual.

    If you want a starting point example for writting a video capture application, I would see the DMAI examples under our DM355 DVSDK software tree.

  • I undestand your humor, Juan.

    $ ls -RF encodedecode/
    encodedecode/:
    capture.c  codecs.c   display.h      encodedecode.cfg      main.c    video.c
    capture.h  codecs.o   display.o      encodedecode_config/  main.o    video.h
    capture.o  display.c  encodedecode*  encodedecode.txt      Makefile  video.o

    encodedecode/encodedecode_config:
    compiler.opt  custom.mak  package/     package.mak  package.xs
    config.bld    linker.cmd  package.bld  package.xdc

    encodedecode/encodedecode_config/package:
    build.cfg                external/  package.bld.xml                package.xdc.dep
    cfg/                     info/      package.defs.h                 package.xdc.inc
    encodedecode_config.ccs  internal/  package.doc.xml                rel/
    encodedecode_config.sch  lib/       package_encodedecode_config.c

    encodedecode/encodedecode_config/package/cfg:
    encodedecode_x470MV.c        encodedecode_x470MV.h           encodedecode_x470MV.rta.xml
    encodedecode_x470MV.cfg      encodedecode_x470MV.mak         encodedecode_x470MV.xdc.inc
    encodedecode_x470MV.cfg.dot  encodedecode_x470MV.o470MV      encodedecode_x470MV.xdl
    encodedecode_x470MV.cfg.xml  encodedecode_x470MV.o470MV.dep
    encodedecode_x470MV.dep      encodedecode_x470MV.rov.xs

    encodedecode/encodedecode_config/package/external:

    encodedecode/encodedecode_config/package/info:
    encodedecode.x470MV.info.js

    encodedecode/encodedecode_config/package/internal:

    encodedecode/encodedecode_config/package/lib:

    encodedecode/encodedecode_config/package/rel:
    encodedecode_config.xdc.inc

    I have interest  in TI-special files, e.g. encodedecode_x470MV.c or package.mak.

     

  • Kirill said:

    I have interest  in TI-special files, e.g. encodedecode_x470MV.c or package.mak.

    Both of the files above are automatically generated by the build system (you should see comments at the top of each file indicating this).

    please note that if you want to do a simple capture application (involves linux application using linux capture driver), you are better off starting with the simpler DMAI examples.  The encodedecode demo not only captures video but also encodes and decodes, which means it involves DSP software codecs, codec engine framework for ARM-DSP integration, and more complex build system.   If you do need all that, then by all means... but this is a steeper curve to learn if you just want video capture.