nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Make file script, need help understanding

This is a discussion on Make file script, need help understanding within the Shell scripting forums, part of the Development/Scripting category; Hi i am new in shell scripting and cant seem to understand this script can any one please help me ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-09-2007, 03:30 AM
Junior Member
User
 
Join Date: Sep 2007
OS: Debian
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
shaziluk is on a distinguished road
Default Make file script, need help understanding

Hi i am new in shell scripting and cant seem to understand this script can any one please help me understand this simple script line by line i will be very greatful

# $Source: /home/student/project/Makefile,v $
CC= gcc
STD= _GNU_SOURCE
OBJS= object1.o object2.o
.c.o:
$(CC) -c -Wall $(CFLAGS) -D$(STD) $<
all: name1 name2
test: all
name1 input1 >testfile
name1: $(OBJS)
$(CC) $(OBJS) -o name2
name2: name1
rm -f
ln name1 name2
name1.h: header1.h header2.h
touch $@

clean:
rm -f *.o core
clobber: clean
rm -f name1 name2
# End Makefile
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
[Solved] Shell script for ftp the file vishal_titre Shell scripting 4 21-08-2009 03:50 PM
understanding vsftpd's builddefs.h config file Predatorian Web servers 0 06-03-2008 05:16 PM
Script file to be run when linux boot adhikari.rohit Shell scripting 7 22-05-2007 07:59 PM
script finding file and sorting dementeddude Shell scripting 14 25-07-2006 05:30 PM
How to make a file/folder invisible in NFS exported fs? warren Linux software 5 10-04-2006 04:50 PM


All times are GMT +5.5. The time now is 06:56 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38