<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; makefile</title>
	<atom:link href="https://www.emblogic.com/blog/tag/makefile/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>scripting problem</title>
		<link>https://www.emblogic.com/blog/03/scripting-problem/</link>
		<comments>https://www.emblogic.com/blog/03/scripting-problem/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 15:02:20 +0000</pubDate>
		<dc:creator><![CDATA[saurabh.aggarwal]]></dc:creator>
				<category><![CDATA[Shell Scripts]]></category>
		<category><![CDATA[makefile]]></category>
		<category><![CDATA[shell scripting]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=2302</guid>
		<description><![CDATA[I am trying to make a Makefile which can accept an a c file name as an argument to be used as a variable in my script so that i can use it with any of my c files for &#8230; <a href="https://www.emblogic.com/blog/03/scripting-problem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I am trying to make a Makefile which can accept an a c file name as an argument to be used as a variable in my script so that i can use it with any of my c files for compilation .<br />
the content of Makefile as follows..</p>
<p>#!/bin/bash</p>
<p>x=$1<br />
exec: ${x}.o<br />
gcc -o exec ${x}.o<br />
${x}.o: ${x}.c<br />
gcc -c ${x}.o ${x}.c</p>
<p>it is not executing properly as the final executable file is not exec but the with the same name as that of the c file name..i think its using the default makefile to create the executable file .<br />
am i doing it right ?????what is the right make command (to be given) to execute this script&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/scripting-problem/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
