LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2004, 08:31 PM   #1
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
makefile question


crypt: crypt.c
$(CC) $(CFLAGS) $(LDFLAGS) -lcrypt -o $@ $<


what does "$@" and $< mean ?
 
Old 12-16-2004, 08:49 PM   #2
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 43
They're automatic makefile variables. The $@ is the target being built, i.e. crypt , and the $< is the first dependency, i.e. crypt.c.
 
Old 12-20-2004, 07:03 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
try 'info make'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
makefile question ashwin.tanugula Programming 2 10-26-2005 03:08 PM
Question about makefile taureanyang Programming 1 03-25-2005 11:57 PM
A strange question of Makefile frankli Programming 2 03-01-2005 09:50 PM
kernel Makefile question feetyouwell Linux - Software 0 11-16-2004 11:36 AM
stupid makefile question drumlix18 Linux - Newbie 5 10-19-2004 10:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration