Skip to content
Advertisement

Transform a Commande Line Linux to a makefile [closed]

Is there anyone who can help me to transform this command line to a makefile :

gcc -o hello_ps hello_ps.c -DMODELDIR=”pkg-config –variable=modeldir pocketsphinx” pkg-config –cflags –libs pocketsphinx sphinxbase

THANK YOU.

Advertisement

Answer

Creating a dependency between the source and the executable you can have :

JavaScript

warning there is a tab before gcc, not spaces

Example (I do not have the environment to compile with these options) :

JavaScript

Of course you can add more dependencies, with included header file(s), with libs etc.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement