makefile

WebKit makefile problem

Hi I'm trying to build WebKit and I get following error: make: *** No rule to make target `ArrayPrototype.lut.h', needed by `all'. Stop. To me, it looks like makefile has a rule for ArrayPrototype.lut.h (I'm probably wrong). Here's an extract from the makefile: .PHONY : all all : \ ArrayPrototype.lut.h \ chartables.c \ D...

Recursive dependency found in a makefile for creating a static library

I have 4 .c files hello.c,here.c,bye.c and main.c. One header file mylib.h The contents are as follows hello.c #include<stdio.h> void hello() { printf("Hello!\n"); } here.c #include<stdio.h> void here() { printf("I am here \n"); } bye.c #include<stdio.h> void bye() { printf("Bye,Bye"); } main.c #include<std...

Undefined reference error in a makefile while creating static library

I have 4 .c files hello.c,here.c,bye.c and main.c. One header file mylib.h The contents are as follows hello.c #include<stdio.h> void hello() { printf("Hello!\n"); } here.c #include<stdio.h> void here() { printf("I am here \n"); } bye.c #include<stdio.h> void bye() { printf("Bye,Bye"); } main.c #include<std...

Makefile Error : Command Not Found- while creating a shared library

I have 4 .c files hello.c,here.c,bye.c and main.c. One header file mylib.h The contents are as follows hello.c #include<stdio.h> void hello() { printf("Hello!\n"); } here.c #include<stdio.h> void here() { printf("I am here \n"); } bye.c #include<stdio.h> void bye() { printf("Bye,Bye"); } main.c #include<std...

install command in makefile

Iam getting some error while installing executable in /usr/local/bin thru makefile install -m 755 my_execble /usr/local/bin install: cannot create regular file `/usr/local/bin/my_execble': Permission denied If use sudo before 'install' command .. then it will work .. but is there other way of installing without using sudo. ...

Compiling with different flags in Makefile?

I have a single program used to interact with a joystick. It uses conditional compilation to specify a specific joystick. We do this right now by just hard coding the correct flag into the Makefile. I'd like to make it so it uses a different flag based on the command given to the Makefile. So for example, I currently have this: .PHONY:...

how to build a android system.

I have the android resource. . build/envsetup.sh make above two steps I have finish the source build, and the out directory has some useful file. but I can't understand how to make a zip file like update.zip. I want to flash my phone. ...

Including a file in define directive in a makfile

Hi everyone, I have a makefile, definitions.mk, containing the following: ifneq ($(MY_VARIABLE),true) define my-function < some code defining the function) endef else define my-function < different code defining the function> endef endif Now, if MY_VARIABLE is set to false I want to include another file containing the definition o...

Problem with Makefile

Hi, Using the command "make apps", I wanna generate two executables: main_test.exe and main_app2.exe. For some reason, the command to generate main_test.exe is more is less completley ignored when I run the makefile. Finally, I end up with a main_app.exe and main_app2.exe file but there is no main_test.exe file produced. Anyone an idea ...

How can Makefile print itself?

It does not print itself. $ cat Makefile files := $(foreach dir,.,$(wildcard $(dir)/*)) all: cat $(files) $ make cat a a b b ^C% $ ls -lsa . total 20 4 drwxr-xr-x 3 tester tester 512 Oct 20 15:01 . 4 drwxr-xr-x 3 tester tester 512 Oct 20 14:19 .. 4 -rw-r--r-- 1 tester tester 69 Oct 20 15:01 Makefile $ cat ./* file...

How can I call a specific target from my makefile?

a: @echo 1 b: @echo 2 c: @if [ ! -d somefolder ]; \ then \ # how do I invoke target b here? fi; How can I invoke target b inside target c, based on my condition? Sort of like an antcall, if you're familiar with ant. ...

How to create a makefile from a C program?

Hiya, as part of an assessment I have to hand in a code which requires a few non-standard libraries. In order to save submitting the header files and the code I would like to form a 'makefile' with the code and required add-ons sort of 'bundled' together. I have absolutely no idea idea how to go about doing this though and any suggesti...

how to create makefile cuda so it executed in CPU to test CPU flops

hi...i'm trying to count the GPU and CPU FLOPS and i've got the source from http://norma.mbg.duth.gr/index.php?id=about:benchmarks:cuda_flops i renamed it to cudaflops.cu and compile it with this makefile ################################################################################ # # Build script for project # ####################...

Clean up my makefile fragment?

I'm using GNU Make to run scientific data analysis, where we have a bunch of Matlab scripts that ponder some input data and then spit out several files. It does this in a fairly complex way, so I've had to do some nasty Makefile tricks when trying to describe its function to Make. Here's an example: seg_cams_nozero := cam1 cam2 cam3 s...

make doesn't see changes?

Scenario 1: I checked out a project, and made some changes to a source file, and did make, and make sees the changes. Scenario 2: I checked out the project again to different directory (some reasons), copied the modified source file here, and did make and nothing happens, if I run the program, I don't see my changes, make doesn't see...

Getting Eclipse CDT to use relative include paths in generated Makefiles

Hello, I am using the Eclipse CDT. I have configured the "external Builder" and I am generating the Makefiles automatically. Unfortunately, the generated Makefiles contain the absolute include path. I would like to use the generated Makefiles on other systems (where Eclipse is not installed) - is there a way to make Eclipse use relative...

make not working as expected

Hey guys I wrote a makefile which work perfectly fine on my 27" iMac at home running Snow Leopard, however when I uploaded it to my uni's computer, a 24" running Snow Leopard as well, it gets the following: gcc -std=c99 -Wall -pedantic -Werror -c print.c gcc -std=c99 -Wall -pedantic -Werror -c process.c gcc -std=c99 -Wall -pedantic -Wer...

How do I convert this OpenGL makefile from Linux to Mac OS X?

I'm trying to compile a OpenGL program on my MacBook and can't figure out how to convert this makefile. CFLAGS= -I/usr/X11R6/include -I/usr/local/include LDFLAGS= -L/usr/X11R6/lib -L/usr/local/lib -lGL -lGLU -lm -lglut BINARIES=q2 all: $(BINARIES) clean: -rm *.o $(BINARIES) q2 : q2.o g++ $(LDFLAGS) $^ -o q2 q2.o: q2.cpp g+...

(Error in makefile)RTNETLINK answers: File exists

This is my makefile: delay: tc qdisc add dev eth0 root netem delay 0ms test4_s_delay:delay ./a.out 10 10 1 2 3 1 1 20 | tee server_delay.txt but,I am getting the following error on executing the makefile: root@superwii-laptop:/home/superwii/Desktop/Amogh# make test4_s_delay tc qdisc add dev eth0 root netem delay 0ms RTNETLINK...

How to specify multiple sourcefiles in automake at once

Is there any way around having to specify every sourcefile I create manually in my automake scripts? I've tried several ways of specifying sourcefiles using find -name *.cc or the like. I've also tried finding the list in autoconf and substituting it into the Makefile.am, but automake protested that this is not allowed. If I have to ma...