General :: Makefile - Break Out The Compilation Into Individual Gcc Commands For Each C File

Apr 28, 2010

I have ~200 c files in my makefile[$(SRCS)], and it compiles all of the files using a single gcc command. So each time I make a change in one c file, it ends up re-compiling all the files, then linking to make the
binary. How can I break out the compilation into individual gcc commands for each c file, so that make checks the timestamp and accordingly compiles only the modified files.

My current Makefile looks like this.

clean:

View 5 Replies


ADVERTISEMENT

Programming :: Makefile: Change Compilation Flags By Changing Target Name

Nov 12, 2010

I'd like to create a target named "debug" or something similar which will use some special optimization flags useful when debugging (for example -ggdb). At the moment my makefile is neat (which I like) and looks like

Code:
SRC = $(wildcard *.cxx)
OBJ = $(SRC:.cxx=.o)
INCDIR = -I.
LIB = -lm

[Code]....

View 2 Replies View Related

Slackware :: Makefile:535: /usr/src/linux-2.6.33.4/arch/i486/Makefile: No Such File Or Directory

May 31, 2010

I just downloaded slackware 13.1(x86) and i'm trying to compile ndiswrapper-1.56 using the slackbuild from slackbuils.org and i'm getting this error:

Code:

Makefile:535: /usr/src/linux-2.6.33.4/arch/i486/Makefile: No such file or directory
make[2]: *** No rule to make target `/usr/src/linux-2.6.33.4/arch/i486/Makefile'. Stop.
make[1]: *** [modules] Error 2
make: *** [all] Error 2

looks like the folder i486 doesn't exist

View 2 Replies View Related

General :: How To Read Individual Logs From Server Into Another Log File?

Jun 1, 2011

I am new in perl, i have a question i.e 'How to read individual logs from linux server into another log file using perl script', I need to capture the individual logs from different paths and output the result of those log files and store to a file in another location.These Logs are generated in Linux Server..

View 2 Replies View Related

General :: Compile Multiple File Using Makefile ?

Jun 1, 2011

How to compile single file in Linux environment using gcc. Now i dont know how to use make file to compile multiple file.

View 5 Replies View Related

Programming :: Split / Break Up Large Text File

Feb 18, 2011

I have a large text file with three columns. I'm trying to write a PERL script that splits the file up based on the value of the 3rd column. So every time the third column reads 0, a new file is created and all the data up until the next 0 is found is written to that new file. This should happen over and over until the initial file has been entirely split up.

ex data:
000
2024
2243
2143
96962871
97972878
000
2034
3034
3352

So with the data above, the file would be split into two files:
data_1.txt would contain
000
2024
2243
2143
96962871
97972878

and data_2.txt would contain
230
2034
3034
3352

View 10 Replies View Related

CentOS 5 :: Php Source File Compilation?

May 25, 2011

Can anybody share a link or steps for Php 5.3.3 and Apache 2.2.19 source file compilation

View 3 Replies View Related

General :: Rename A File Say Old.txt To New.txt Using Commands?

May 19, 2010

How would I rename a file say old.txt to new.txt in Linux using commands?

would it be...?

rename old.txt new.txt

View 2 Replies View Related

General :: Execute Commands Over SSH In A Batch File?

Feb 17, 2011

I'm looking to, all in the course of one batch file:

ssh into a remote computer execute commands (per the batch file) on the remote host.

What options do I need to add to the ssh invocation so that the batch file executes the lines following the ssh invocation over the connection?

e.g., with sftp it's simply adding a -b /dev/stdin and then << EOF at the end; how do I do this with SSH?

View 1 Replies View Related

General :: Joining Two Commands In The .bashrc File?

Apr 15, 2011

attending class in the Redhat Academy Website. I was wondering how can you join the two commands of cd/usr & ls successfully in the .bashrc file?

View 10 Replies View Related

Programming :: Calling Gcc From Executable File / (makefile)

Oct 4, 2010

I am trying to use a software package written in ANSI C. It has a makefile which has to be executed first.

As soon as I execute it I get messages like: line i: command not found.

Commands for which I am getting errors :

CC = /usr/bin/gcc
GCCFLAGS = -c -Wall
ROOTDIR = .

My gcc compiler is located in the above directory only. In ROOTDIR also I tried giving the path in which all the required files & folders are present but still I get the command not found error in all the lines.

View 7 Replies View Related

General :: Debian Without Basic Commands: 'No Such File Or Directory'?

Nov 10, 2010

My new VPS is running Debian 5.0 (bash 3.2.29), and some commands seems to be missing. For example the ps command is not here, neither is ls (but dir works). Is there a package missing or what's the deal?

:~# type ps
ps is hashed (/bin/ps)
:~# ps

[code]....

View 1 Replies View Related

General :: Commands To Remove Particular Few Lines In History File?

Jun 16, 2010

Is there any commands or scripts to remove only selected line in the history file.

View 1 Replies View Related

Software :: Makefile - File Not Recognized - File Format Not Recognized Collect2 - Ld Returned 1 Exit

Mar 27, 2010

I was installing DYMOUM from [url]. "make" command is issuing this error:

Code:

Prior to this, ns-2.34 was working fine. Patches are applied very well.

I am in under fedora 9 and:

Code:

View 9 Replies View Related

Software :: Error: Agent.h: No Such File Or Directory Compilation Terminated

Feb 22, 2011

i try to compile my SD_APP.cc but i encountered a error, how do i resolve this?

In file included from SD_APP.cc:1: SD_APP_HDR.h:6: fatal error: agent.h: No such file or directory compilation terminated.

View 3 Replies View Related

General :: Make And Sh Commands - Make A File Called File Roller For Ubuntu 9.10

Apr 6, 2010

I want to make a file called file roller for Ubuntu 9.10. The folder has a file called install.sh and some others that are make.

I figure first I need to make a file and then run install.sh to install. But I don't know how to do this.

View 2 Replies View Related

General :: Delete Oldest Directory And File Using Ncftp Commands?

Aug 17, 2010

i use ncftp for some bash script action. how to delete oldest directory and oldest file using ncftp commands?

View 3 Replies View Related

General :: How To Check For Https In Commands Config File For Nagios

Jul 29, 2010

I have a few questions to ask, so please pardon me

1) How to check for https in commands config file for Nagios? I only know how to check for http, not sure for https.

2) The log file in Nagios, is it possible to extend Nagios's plugins (or are there already have plugins existed) so that we could actually make use of the log file to check for status of each and every services in different hosts, instead of looking through the log file manually which can be very time-consuming if the list is very long.

View 10 Replies View Related

General :: Ubuntu - Cannot Execute Basic Commands (ps, Ls, Ifconfig) - File Not Found

May 4, 2011

When I try execute a variety of basic commands (including ps, ls, ifconfig, locate), I receive the error 'no such file or directory'.

Here are some suggestions that I've found online, that I have tried without success: I did a 'whereis ps' and found the file in the /bin/, and have checked that '/bin' appears when I do 'echo $PATH' I did a filesystem check which showed my hard drive as being clean I tried doing a 'sudo chmod 777 ps' but was told that I dont have permission. I don't think permissions for these files would have changed though (and I can't check as I can't run the 'ls' command).

View 3 Replies View Related

General :: Commands To Save Md5sum Of Files In A Folder Into A Text File?

Sep 14, 2010

I've found these commands in [URL]:

Quote:

find -type f -print0 | sudo xargs -0 md5sum | grep -v isolinux/boot.cat | sudo tee md5sum.txt

But I don't understand these commands, even after reading their manuals.

View 4 Replies View Related

General :: Using The Expect And Send To Execute List Of Commands Inside A File?

Feb 2, 2011

i am working on some kind of PBX and i have list of telephone numbers inside a file, i have to insert these numbers into the correct command and then telnet to a remote server and execute these commands. i can read the telephone numbers and insert them into the command with no problem, but when i try to insert these commands into the send i face problem. here is the basic code

#!/bin/bash
read msisdn < input
string="ZZZZ:MSISDN=$msisdn;"

[code]....

i can make external loop inside the Bash which read the input file and issue the command and then telnet and execute, but this will make the script connects and disconnects again for each line which cause high load on that server and hardwar problem. i am wondering if there is an option inside the expect interperter which makes the send read directly from a file... somthing like this:

expect "<"
send "input-filename
"
expect "<"
expect eof

View 1 Replies View Related

General :: FTP Client As Like FTPS On Windows - Reading Series Of Ftp Commands From A Txt File

Apr 20, 2011

I am very new to Linux and trying to learn the shell scripting. Just to know is there any client in linux which does the same task as FTPS on windows. FTPS on windows can read series of FTP command from a txt file and execute them. Is there any way to do that same task, i mean reading series of ftp commands from a txt file, on linux suing shell or perl (any module)?

View 2 Replies View Related

General :: Commands To Find Type / MountPoint / File System Id For The Filesystems?

Jan 12, 2010

I need commands which five me the following details abt all the file systems mounted the linux box

type
mount pt
file system id

View 4 Replies View Related

Ubuntu :: Gopenvpn Compile Error - Cannot Find Input File: `po/Makefile.in.in'

Mar 6, 2010

Ubuntu 9.10 64-bit
Lenovo T400

I'm trying to install gopenvpn from source. [URL] I'm pretty sure I have all the necessary libraries installed.

./configure ends with:
.
.
.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pixmaps/Makefile
config.status: creating src/Makefile
config.status: error: cannot find input file: `po/Makefile.in.in'

View 4 Replies View Related

General :: Can't Execute Commands As Sudo Nor Access Sudoers File In Mandriva 2010.1

Aug 16, 2010

since a recent upgrade to Mandriva 2010.1 I am not able to 'sudo' as administrator or when I use the 'root' password. I am the only user on this machine (Dell Inspiron 530S multi-booted with Window's Vista Home Premium, Ubuntu 10.4, and Mandriva 2010.1). I can get into the 'Manage Users' section of the control center by authenticating as 'root' but I can't access 'sudoers file' from command line.

View 4 Replies View Related

Ubuntu :: Fatal Error: Iostream.h: No Such File Or Directory Compilation Terminated While Compiling C++ Code

Dec 9, 2010

whenever i am trying to compile a c++ program i am getting the following error sample.cpp:1: fatal error: iostream.h: No such file or directory compilation terminated

View 1 Replies View Related

General :: Break - UPS Compatible With Box?

Jun 7, 2010

I'm buying this unit from deal extreme: it's a bitorrent downloader, with NAS capability. I'm interested in sharing an external HD in it, with media and backup purposes. I'm afraid of energy problems (don't know if this is the correct term), corrupting my mounted drives (like after a storm), so I thought about buying an UPS that sends a "signal" to my Linux box, and a script in my Linux box would unmout everything to avoid problems.Do this "UPS signal" feature exists? Do you have model suggestions?

View 1 Replies View Related

General :: Computer Break Down Of All The GB Or MB?

Sep 30, 2010

Could someone give me the break down on 4GB/700MB or what?

View 6 Replies View Related

Ubuntu Networking :: Wireless Dongle Makefile Nightmare - Don't See The Driver File In The Folder Contents

Apr 1, 2010

I'm trying to get my new Wireless USB dongle to work with Xubuntu 9.10 Karmic Koala. I've extracted the .rar file that was on the drivers CD that came with the dongle. According to the ReadMe....

The Model Name is: RT2870 Wireless Lan Linux Driver Driver Name: rt2870.o/rt2870.ko Hardware: Ralink 802.1n Wireless LAN Card Description: This is a linux device driver for Ralink RT2870 USB ABGN WLAN Card. My issues:

1. I do not see the driver file anywhere in the folder contents... I suppose that I have to "build" it.
2. In the makefile the chipset is default set to "CHIPSET = 3070" & the folder that holds all the extracted files is named 2008_1128_RT3070_Linux_STA_v2.0.1.0 so I'm confused as to whether this dongle has a 2870 or 3070 chipset inside. Does it matter?
3. Sorry, I'm a bit of a n00bster when it comes to all this, but I'm having some problems with the build instructions. It reads:

[Code]...

View 9 Replies View Related

General :: Why Does Sudo Pause When Break

Dec 6, 2010

Sometimes I type 'sudo su - user' in linux and then realise I'm typing it from an application account rather than a user account. I want to ctrl+c to abort the password entry. When I do this, it always freezes for a couple of seconds before it aborts the process and returns me to the shell.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved