Questions relating to makefiles, (The file that contains the instructions for make)

learn more… | top users | synonyms

9
votes
1answer
297 views

Detect if its Ubuntu Linux OS in Makefile

I want to create a makefile that will compile my objects and name them according to the Linux OS (Suse\RedHat\Ubuntu). How can I detect if the OS is Ubuntu or not? can anyone please help me to write ...
7
votes
3answers
11k views

Cannot find install-sh, install.sh, or shtool in ac-aux

This is my first time trying to compile and install anything on a linux machine. I got the latest version of https://github.com/processone/exmpp via git and read the instructions which state: 2. ...
7
votes
1answer
460 views

What does “./configure; make; make install” do?

What does ./configure do? Why make then make install? How does it know where libs are? ( they are all there and loaded but it cant find them.) Why need libs if compiler is supposed to compile?
7
votes
1answer
1k views

How to have Debian packaging generate two packages given an upstream source archive?

I am packaging something for my PPA. The upstream source is a .tar.gz archive which is Makefile-based. Since this package has a significant amount of architecture-independent data, it would be wise ...
5
votes
4answers
4k views

Writing a “Hello World” Device Driver for kernel 2.6 using Eclipse

Goal I am trying to write a simple device driver on Ubuntu. I want to do this using Eclipse (or a better IDE that is suitable for driver programming). Here is the code: #include ...
5
votes
1answer
52 views

Checking which options were passed to ./configure

Is it possible to find out which options of the ./configure script were used to create the Makefile?
3
votes
2answers
736 views

Which file is changed after I do “make menuconfig”?

In linux, Which file is changed after I do "make menuconfig" ? I thought it's Makefile, but after I diff it. I didn't see difference? Thank you.
3
votes
1answer
176 views

Using makefile wildcard command for file names with spaces

I have a makefile that I use to compress pictures: src=$(wildcard Photos/*.jpg) $(wildcard Photos/*.JPG) out=$(subst Photos,Compressed,$(src)) all : $(out) clean: @rmdir -r Compressed ...
3
votes
1answer
80 views

unbuntu, how do I make 'make' command work?

I am trying " Linux Kernel Module Programming - Compiling the Module " as in this youtube video. First I created a hello.c program. As a second step need to type command #gedit Makefile. It opens a ...
3
votes
4answers
5k views

Cannot install glib-dev

I tried to build dasher, but I got it needs glib. So doing so this came up: Checking for GLIB... configure: error: Package requirements (glib-2.0>= 2.6) were not met: No package 'glib-2.0' ...
2
votes
4answers
54 views

Why do some commands execute properly only when the file being called is inside the working directory

I'm unable to successfully make a file when I do the following command make /home/me/Desktop/folderWithMakefile However an executable is created when I do the following cd ...
2
votes
1answer
167 views

Trouble compiling a kernel module in linux

I am using Ubuntu 12.04. I wrote a simple hello world kernel module (hello.c). I wrote the folllowing makefile for it: obj-m+=hello.o KDIR:= /usr/src/linux-headers-3.2.0-24-generic-pae all: ...
2
votes
1answer
98 views

Launchpad dailybuild source in subdirectory of branch

I have a repo branch that i have mirrored in Launchpad that I am trying to setup a daily build. The problem is that the source directory of the package is a subdirectory in the branch. When building ...
2
votes
0answers
42 views

Makefile question: how to make several analogous rules into one

I'm wondering if there's a way to make one rule out of the following several rules which are all similar in a Makefile that I have to edit: $(OBJECT_BUILD_DIR)/%.o : $(OBJECT_SRC_DIR)/%.cpp ...
2
votes
1answer
157 views

About the installation of Moses tool on ubuntu 11.04

we are working on project related to language translation with the help of moses tool...but we are not able to install moses...we face some installation problems. we make a directory on desktop named ...
2
votes
0answers
1k views

What are the differences between concurrency=shell and concurrency=makefile? [closed]

I feel that 11.10 boots very slow on my netbook. Many people said that changing concurrency method to shell in /etc/init.d/rc will speed up boot process, but the comment in the file said that the ...
1
vote
3answers
364 views

qmake error when trying to build qwbfs

I'm trying to install qwbfs application but when i enter the command : make i get this: tools.c:8:25: fatal error: openssl/md5.h: No such file or directory compilation terminated. make[1]: *** ...
1
vote
2answers
934 views

“$MAKEOPTS” ignored, why?

I have defined export MAKEOPTS="-j4" in my ~/.profile file. But when I do a compilation with make, this option is ignored. I've consulted the GNU Make manual but it says nothing about this ...
1
vote
1answer
222 views

Can't make RTL8188CE drivers

I just downloaded the RTL8188CE drivers striaght from Realtek website. I have both build-essentials and linux-generic-headers installed. I go to the top directory of the downloaded driver and run make ...
1
vote
2answers
82 views

Folder with images in makefile

I have been using anjuta to make some programs. I have made a folder in the src directory of the program to store all the images and icons. ( /src/images/icons ) However when i build the tarball the ...
1
vote
2answers
196 views

Cannot build deb package

I have followed this tutorial on how to make a .deb package from source(tar.gz) and at the final build command dpkg-buildpackage -rfakeroot However I get this error at the bottom: make[2]: Entering ...
1
vote
1answer
703 views

How to install Hercules Webcam Deluxe

I am trying to install a Hercules Webcam Deluxe on my Ubuntu 11.10 (64 bits). I followed this guide: https://help.ubuntu.com/community/Ov51x Step by step, only changing wget ...
1
vote
0answers
109 views

dh_auto_install not working in ppa [closed]

trying to build a package in the ppa that works in local it gives an error because it doesn't find usr/include/* it seems like dh_auto_install is doing nothing while in local it's executing the ...
1
vote
1answer
974 views

fakeroot debian/rules binary error

I have a package I'm maintaining. When I issue "fakeroot debian/rules binary" I get this error: dh_install --sourcedir=debian/tmp cp: cannot stat `debian/tmp/usr/share/prg/1.svg': No such file or ...
1
vote
0answers
160 views

Adding my own pattern rules to gmake's “catalog of implicit rules” [closed]

On maverick... $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.10 Release: 10.10 Codename: maverick ... using make 3.81 ... $ make -version GNU ...
0
votes
2answers
827 views

How to get missing dependency for make empathy: glib-compile-schemas?

I Downloaded empathy-3.0.1.tar.bz2 to install in Ubuntu 10.04 LTS. I ran the makefile and I got the error : configure: error: glib-compile-schemas not found. How can I fix this problem ? Please ...
0
votes
3answers
18k views

Error when installing Makefile: “make: *** No targets specified and no makefile found. Stop.”

In short while I run the make command it says: nir@nir:~/Downloads/xf86-video-intel-2.17.0$ make make: *** No targets specified and no makefile found. Stop. I looked inside the ...
0
votes
2answers
6k views

'Make' error - glib.h no such file or directory

I have never built a project in Ubuntu before and I am trying to come to grips with the GNU build tools and process. When I try to make I get the 'glib.h - no such file or directory'. This is the ...
0
votes
1answer
336 views

Need to use sudo -s for make command depending on Ubuntu version

We have a Makefile for compiling a network interface's driver. When calling the Makefile in an Ubuntu 9.04 installation, we need to call just 'make'. However, when calling the Makefile in an Ubuntu ...
0
votes
1answer
176 views

How do I follow these “makefile” instructions?

I am a beginner of Linux. I don't know to handle the following instructions, please teach me in details. The instructions are below: Go to the mmed-release-0.1/src/. Modify the makefile to set ...
0
votes
1answer
786 views

How to edit makefile?

I want to add -std=c99 flag to make command but I have no idea how to do it. Where is related file located? @Andrejs Cainikovs But I have not found related file or files yet.
0
votes
1answer
200 views

Bash is abnormal in Makefile!

all, I have found that the same Makefile works well in Mac OS X, but does not work in Ubuntu. The snippet is as following: start: @echo $(seperator) @if [[ "$(PROJECT)" == "" ]]; then \ ...
0
votes
0answers
5 views

Problem with `make` command for ttf in Splash2 : unrecognized option

I want to compile ttf from Splash2 and i have a makefile in ttf's directory. when i run make command , it says unrecognized option ‘-non_shared’. How can i fix this error ?
0
votes
1answer
73 views

Installing wifi driver error 127

I've got problem with installation wifi driver, terminal says error 127. make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-32-generic' ...
0
votes
0answers
11 views

/etc/init.d/rc concurrency shell, none or makefile [duplicate]

I feel that 12.10 boots somewhat slow. I've read that changing concurrency method to "shell" in /etc/init.d/rc will speed up boot process, but the comment in the file said that the valid options of ...
0
votes
0answers
74 views

clock skew detected hence complete source files get built

I have a problem building in eclipse. The scenario is : Eclipse environment is on Linux Virtual box: Ubuntu. Source files are on Windows 7. Whenever I start to build, even if there is a small space ...
0
votes
0answers
20 views

How to run a specific comment on error in makefile

I have a makefile, and i like to run "beep" or better "paplay xxxxx" when the lessc compiler has a error. Is this possible? DATE=$(shell date +%I:%M%p) CHECK=\033[32m✔\033[39m ...
0
votes
1answer
223 views

How to create a makefile with a shell script

I have a shell script, and would like to convert it to a makefile so that it can be executed with the command 'make all'. How would I go about this? Thanks
0
votes
1answer
91 views

Problems compiling Library

I am having some difficulties compiling some files that I downloaded (for academic purposes). I ran the following command : cd tmp/Detri_2.6.a/detri then make detri_new CC=gcc To build a ...
0
votes
0answers
37 views

How to add a c file to be compiled with a package

I want to add a file hstest.c which comes with bluez package but not by default added to the makefile to the sources that are compiled with the buid system. I read about makefiles and autotools but ...
0
votes
0answers
171 views

Linux gcc-4.4.6 install make error

I am trying to install gcc-4.4.6 except I keep getting an error while trying to make after I configured... This is the error can anyone help? make[5]: [_muldi3.o] Error 1 make[5]: Leaving directory ...
0
votes
2answers
139 views

Space escape character in Debian Makefiles

I'm currently trying to upload a package onto Launchpad's PPA service but I'm having problems with a path name which includes a space character. I'm trying to make a file install into a directory with ...
0
votes
0answers
74 views

x11 directory specified in makefile doesn't exist, but project compiles and runs perfectly

So the x11 directory defined in the makefile is: usr/X11R6/lib64, which does not exist. however, the project compiles perfectly in Kdevelop and runs with no problems. If I take out all inclusions of ...
0
votes
1answer
307 views

Assign standard exit status to a makefile variable

I'm trying to save the standard exit status of a command in a variable of my makefile, but I don't know how to do it. I've tried this: pruebas: @A= $(ls) ...but it doesn't work.
0
votes
1answer
241 views

How to build modules by using different kernel headers instead of existing one [closed]

I am using 2.6.38 version of kernel in my machine. I have downloaded 2.6.27 version also. I compiled that by running make. Now while I tried to build modules, it is showing error: -1 invalid module ...
-1
votes
3answers
1k views

how do i install with makefile? i get erorr while typing ./configure [closed]

The error is BASH: ./configure: no such file or directory. thanks for helping, i'm trying to install intel driver from here: http://intellinuxgraphics.org/2011Q4.html the proces till the make ...
-1
votes
1answer
57 views

what is use of gcc flag -Wall [closed]

can some one help me to understand the use of -Wall flag in gcc? I am working on make file and not able to understand this flag. Thanks, vivek
-2
votes
1answer
191 views

“No referenc to main” message while running the library [closed]

The error: farah@farah-VirtualBox:~$ gcc libmy_string.a /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld ...
-3
votes
1answer
945 views

make command not work - Assembler messages [duplicate]

Possible Duplicate: I can't install Thunderbird *whats this message? user1@ubuntu:~$ make KBUILD_NOPEDANTIC=1 make -C /lib/modules/uname -r/build M=pwd make[1]: Entering directory ...