General :: Make Rules In A Makefile - Debug

Nov 17, 2009

Does anyone know if it is possible to make rules in a Makefile that would work like this:

> make debug module
> make module debug

where module can be any module that has a specific rule in the Makefile.

The thing I have is a Makefile with different rules that I compile like this:

> make module

What I would like is to add an option so I can compile whichever module with debug-information just by adding a debug to the make command. The debug-information I know how to do, the problem is how to make the Makefile work...

View 2 Replies


Networking :: Error - Man/ `%'-style Pattern Rules Are A GNU Make Extension

Jun 24, 2011

I am facing an error when I run the following command.

Command: autoreconf -i
Error: man/ `%'-style pattern rules are a GNU make extension


I'm using Fedora Core 11 on Dell Machine Precision 360

View 3 Replies View Related

Programming :: Tell Makefile Not To Compile Debug Code?

Mar 4, 2010

I've been trying to work out a way to stop chunks of code being compiled using a variable in my makefile but can't work it out. What I mean is for example in my code I might have.

/****output comms portdata********/
debug comms port %d",ReadPort("ttys1);

I only wish this code to be compiled when I'm debugging. What I've tried is using #ifdef with

debug comms port %d",ReadPort("ttys1);

Then in my make file I set COMM_PORT_DEBUG to 1 so


I then thought I could put it into my in my link line


but this gives a

gcc: COMM_PORT_DEBUG=1: No such file or directory

is there a way to do this sort of thing? Or am I barking up the wrong tree?

View 1 Replies View Related

General :: Use Make And Makefile To Compile And Link Some .cpp/.h

Sep 20, 2009

I've been trying to figure out how to use make and makefile to compile and link some .cpp/.h. All i seem to find on google says to read the README for the software. But this is my own created c++ project. Im just looking for a simple makefile for my own .cpp/.h files( about 20 total).

I have tried using 2 different makefile "examples" as a template, but neither worked. I am getting error saying "file1.cpp: no newline character at end of file". or something to that degree.

View 5 Replies View Related

General :: Make Install Error With Created Makefile

Jun 3, 2011

I am new to Linux and I am trying to install a C program from source using Makefile. So I 've created a "hello world" program and then a Makefile to install it. Then I logged in as root and used
make install

The following error occurs:
make: execvp: /usr/bin: Permission denied
make: *** [install] Error 127

Here is the Makefile:
CFLAGS=-c -Wall
PROGS = hello
INSTDIR = $(prefix)/usr/bin/

all: $(PROGS)
$(PROGS): main.o
$(CC) main.o
main.o: main.c
$(CC) $(CFLAGS) main.c
rm -rf $(PROGS) *o $(PROGS)
So, where are the errors

View 3 Replies View Related

Programming :: Makefile - Error When Run The Make Run - No Rule To Make Target - Shell.h

Sep 15, 2010

I want to gave much details as possible. working directory (~/a1/shell) in the shell directory i have Makefile. also in the shell directory i have subdirectory's (obj, src, include)

My current Makefile


#What needs to be built to make all files and dependencies


# End of Makefile

I wanted it so: all .o files are created in the obj subdirectory, and my application, sshell, is created in the shell directory.

I am getting this error when i run the make run: No rule to make target 'shell.h', needed by 'shutil.o'. stop

View 1 Replies View Related

Software :: How To Debug "udev Rules"

Aug 21, 2010

I have written a udev rule. The rule has calibration details for my tablet digitizer created using the xinput_calibrator utility from the associated PPA.Q1: How do I debug the rule now that I have it?Q2: Is there some way to activate logging for this rule only or is it all udev or nothing?I confess to asking this noob question in a noob way -- I have not spent much time reading udev docs (I barely understand what I have read.)

View 10 Replies View Related

Server :: Make: *** No Targets Specified And No Makefile Found?

Aug 4, 2011

im trying to install Squid clamav with squid(fedora11, 386MB, 2.6kernel)..i configured clamd and is working fine,(squid wrking fine) then i tried to install squidclamav via (yum -y install curl-devel).then i downloaded squidclamav-4.0.tar.gz and extracted.. then i run ./configure and then make.but make install command wont work; it shows an error.

View 4 Replies View Related

Software :: Makefile - Passing Argument To Make?

Mar 6, 2010

I have a number of projects, say test1, test2, test3,. I want to make and install all of them in exactly the same way; so I would like to say
make test2
make install test2
with the same Makefile.

In other words, I would like to pass the argument test2 (or just 2) to the Makefile, so this is taken as the target for make or make install. This must be a common wish; but I don't see any appropriate option with "man make" on my Fedora-12 system.

View 1 Replies View Related

Programming :: Make Recursive Makefile Work?

Jun 8, 2011

I'm trying to make recursive makefile work but it's giving me two problems. I have a top folder with the main Makefile and one Makefile for each sub folder 'one' and 'two'. Makefile in subfolder 'one' and 'two' are identical. The top Makefile (still a bit messy) looking like this:

# Directories
CC = gcc
CFLAGS = -Wall -Wextra
MAIN_FILE = one.c


View 4 Replies View Related

Debian Configuration :: Make MenuConfig Cannot Find Makefile

May 23, 2011

Trying to build a driver for a TV tuner card. When I enter 'make menuconfig', I get this error:

make[2]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'
/lib/modules/2.6.32-5-amd64/source/scripts/ /lib/modules/2.6.32-5-amd64/source/scripts/basic/Makefile: No such file or directory
make[3]: *** No rule to make target `/lib/modules/2.6.32-5-amd64/source/scripts/basic/Makefile'.  Stop.
make[2]: *** [scripts_basic] Error 2

Suspect I need another package in addition to linux-headers.
Running Squeeze, amd64, KDE.

View 7 Replies View Related

Fedora :: Eclipse Auto-Created Makefile Crashes Make

Dec 11, 2009

I'm just learning to use Eclipse (have previously been a vim+make developer). I created the standard Hello World project following the tutorial. The program compiles fine, but if I build it again without cleaning the project, make aborts with a glibc double free message (pasted below). The same thing happens if I run make in the Debug directory outside eclipse. I don't know make well enough to figure out what the problem is, and to my mind Eclipse shouldn't be generating a buggy makefile anyway.

I've attached a tarfile of the project directory. Download the file and the following sequence of commands should show you the problem:
tar xvzf HelloWorld.tar.gz && cd HelloWorld/Debug && make && make
Also, if you think it would be worthwhile submitting a bugreport to the Fedora Eclipse dev team, let me know where I can do that and I'll be happy to.

Error messages:
11:07:34 [michael@tablet Debug]$ make
*** glibc detected *** make: double free or corruption (fasttop): 0x0000000001fd5780 ***
= Backtrace: =
= Memory map: =
00400000-00428000 r-xp 00000000 fd:04 1517952 /usr/bin/make
00628000-0062a000 rw-p 00028000 fd:04 1517952 /usr/bin/make
01fc0000-01fe1000 rw-p 00000000 00:00 0 [heap]
3b03a00000-3b03a1f000 r-xp 00000000 fd:00 81929 /lib64/
3b03c1e000-3b03c1f000 r--p 0001e000 fd:00 81929 /lib64/
3b03c1f000-3b03c20000 rw-p 0001f000 fd:00 81929 /lib64/
3b03e00000-3b03f64000 r-xp 00000000 fd:00 81933 /lib64/
3b03f64000-3b04164000 ---p 00164000 fd:00 81933 /lib64/
3b04164000-3b04168000 r--p 00164000 fd:00 81933 /lib64/
3b04168000-3b04169000 rw-p 00168000 fd:00 81933 /lib64/
3b04169000-3b0416e000 rw-p 00000000 00:00 0
3b08e00000-3b08e19000 r-xp 00000000 fd:00 81991 /lib64/
3b08e19000-3b09019000 ---p 00019000 fd:00 81991 /lib64/
3b09019000-3b0901a000 rw-p 00019000 fd:00 81991 /lib64/
7f6032b9d000-7f6037c70000 r--p 00000000 fd:04 1155417 /usr/lib32/locale/locale-archive
7f6037c70000-7f6037c74000 rw-p 00000000 00:00 0
7fffa6c19000-7fffa6c2e000 rw-p 00000000 00:00 0 [stack]
7fffa6c44000-7fffa6c45000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

View 1 Replies View Related

Programming :: Makefile Error - No Rule To Make Target Modules

Mar 30, 2010

anisha@linux-p0mg:~> uname -r && cat /etc/*release
openSUSE 11.0 (i586)
VERSION = 11.0
My small Makefile:

obj-m += serialPortISR.o
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
Errors I receive:

anisha@linux-p0mg:~/Desktop/serialPortISR_31_10_09> make
make -C /lib/modules/ M=/home/anisha/Desktop/serialPortISR_31_10_09 modules
make[1]: Entering directory '/usr/src/linux-'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory '/usr/src/linux-'
make: *** [all] Error 2

View 12 Replies View Related

Fedora :: Undefined Reference To `pthread_create' When Install Bochs And Make The Makefile

Oct 26, 2009

when i install bochs and make the makefile why undefined reference to `pthread_create'

View 1 Replies View Related

Ubuntu Installation :: Cannot 'make' Jahshaka - No Targets Specified And No Makefile Found - Stop

Dec 5, 2010

I needed an open source alternative to after effects so i went for jahshaka but after following the instructions, i type in 'make' and hit return and it says "make: *** No targets specified and no makefile found. Stop." am i missing something obvious? i have looked around the web, but no-one has this problem that i can find i am using ubuntu 10.04.

View 2 Replies View Related

Slackware :: Makefile:535: /usr/src/linux- 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 and i'm getting this error:


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

looks like the folder i486 doesn't exist

View 2 Replies View Related

Ubuntu :: Mousetrap Doesnot Work \ Error:make: *** No Targets Specified And No Makefile Found?

Dec 17, 2010

i have installed mouse trap by the Ubuntu "easy peasy" software center ,but for some reason it didn't work so i uninstalled it and start to install the mouse trap from here when did the "make" step it gave me that error:make: *** No targets specified and no makefile found. how i fix thatand another problem that i have is when i go to a live radio on the net to listen it dose not work how do i change it to work like i changed to the "vlc player" to be the first program that opens

View 2 Replies View Related

OpenSUSE Network :: Make The Iptables Rules Permanent?

Apr 23, 2010

I set up a squid transparent proxy and I have a problem with an iptable rules. I have a rule to redirect all request to port 80 to go on port 3128. To do so, I'm using this iptables command :


iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

This command is working like a charm. The only problem is, for some unknown reasons, this rule will be dropped at some point. I did not manage to identify what is causing this to happen. It occurs during night, but I have nothing about that in my log files. messages / firewall / ...) The only way I managed to reproduce this 'dropping' is this one: I type the command like as root. The command is effective and working fine. I open yast, I go to the firewall module, the I do a simple "save changes and restart firewall" (without changing anything). As soon as this process is finished, the iptables rule is gone.

-How can I make this rule permanent ?

-Is there a place where I can launch a script executing this rule, after the yast firewall module is 'touched' or something ?

View 3 Replies View Related

Networking :: Using Ip Tables And Rules, Will Be Able To Make All Three Of These Able To Handle Traffic?

Mar 22, 2011

I have a machine with 3 internet facing nics, all of which have static IP's. The IP's are all in the same subnet, and use the same default gateway.Using ip tables and rules, will I be able to make all three of these able to handle traffic?I have the following configured, but it doesn't appear to work:

# ip rule
0:from all lookup local
500:from lookup 1


View 5 Replies View Related

Fedora :: Make Rules To Move Each E-mail To The Inbox But Still All Incoming Messages Go Straight To Trash?

Apr 1, 2010

Recently did a fresh install of F12, previously used F11 without any problems. Now Evolution move ALL received messages to trash automatically. I have had to make rules to move each e-mail to the inbox but still all incoming messages go straight to Trash.

View 3 Replies View Related

Ubuntu :: Can't Create File /etc/udev/rules.d/70-android.rules?

Jun 19, 2011

I need to create filename 70-android.rules in the directory /etc/udev/rules.d/I have Adm privileges in my user account properties, but when I use sudo to create this file the Ubuntu OS does not allow me the privilege... I am running Ubuntu 10.04 LTS and here's the Terminal output below:daddy@gatomon-laptop:/etc/udev/rules.d$ sudo cat > 70-android.rulesbash: 70-android.rules: Permission denieddaddy@gatomon-laptop:/etc/udev$ ls -ltotal 8drwxr-xr-x 2 root root 4096 2011-03-16 18:03 rules.d-rw-r--r-- 1 root root 218 2010-04-19 04:30 udev.conf

View 2 Replies View Related

Fedora :: Emacs - Error "make: *** No Targets Specified And No Makefile Found. Stop"

Aug 5, 2010

I recently switched over to Fedora 13 but I'm having a bit of trouble. I've tried writing simple programs in Emacs and Eclipse but neither will compile. It always gives the error, "make: *** No targets specified and no makefile found. Stop."

I've looked around at a couple of forums, but people with the same issue can't install software, but I can. I got Fedora from the Fedora website so I know its complete, but I have the sneaking suspicion that I'm just missing a file or something.

View 2 Replies View Related

Programming :: Apache Rewrite Rules - How To Make "not Some String" Rule

Jan 26, 2011

I am trying to create apache rule which will redirect each request not ending with .php prefix to php prefix. I am trying to make such a rule for hours, but none of my works.

Example: I don't know syntax of rewrite rules, but I'd like to make something like this:

RewriteRule ^(.*)(NOT .php) $1.php

(so everything not ending with .php will end in everything with .php extension.

EDIT: Maybe better question would be "how to negate string group" or "is not equal to string"...

View 4 Replies View Related

General :: Debugging A Makefile ?

Feb 24, 2011

Is it possible to debug a makefile? In a bash script I can use "set -x" so that all variables are shown with their values. I am looking for such feature in makefile to see the variables and their values.

View 2 Replies View Related

General :: How To Enable Debug Message

Dec 29, 2009

I am compiling gstreamer for my ARM board. When i compile that i am not getting "debug" messages. so i want "debug messages" while make my gstreamer. i added "./configure --enable-debug" but still i not getting debug message while i "make".

View 1 Replies View Related

General :: Reduce LVM Messages In /var/log/debug?

Feb 21, 2011

/var/log/debug gets lots of messages any time an LVM snapshot is setup (lvcreate --size ${size}k --snapshot --name "$LVM_snapshot_device" "$LVM_device"). Here is a recent sample.

Feb 19 22:40:10 CW8 lvm[2163]: Loading config file: /etc/lvm/lvm.conf
Feb 19 22:40:10 CW8 lvm[2163]: Opened /etc/lvm/lvm.conf RO


View 5 Replies View Related

General :: Debug Symbols Of GNU Packages

Jul 21, 2011

Where can I find debug symbols of GNU packages, for example for coreutils etc.?

View 3 Replies View Related

General :: Debug Ssh Permissions And Keys?

Nov 15, 2010

I am trying to debug ssh permissions and keys. I am able to connect as root. However, I am unable to login as a new user (e.g., newuser). I have been trying to ssh as localhost to debug the issue. For example:

>ssh -vvvv newuser@localhost

will yield a lot of information. I think this is the relevant section, however, I am unable to resolve:

debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:2
debug2: bits set: 533/1024


View 1 Replies View Related

General :: What Is Purpose Of Makefile In Nis Server

Aug 17, 2010

can anybody tell the use of make file in Nis server.

View 1 Replies View Related

General :: Why Some Makefile Is Missing After ./configure

Sep 1, 2010

I have encountered some cases that the ./configure log says:

config.status: creating xxx/Makefile

but when make fails on:

make[2]: Entering directory xxx
make[2]: *** No rule to make target `all', Stop

and xxx/Makefile is absent in the disk. Why does it happened?

View 1 Replies View Related

Copyrights 2005-15, All rights reserved