Все вопросы: [makefile]

388 вопросов

похожие теги: multiple-makefilesmakefile-project
-2
голосов
1ответов
2882 просмотров

cannot get makefile to work with Qt library

I have 3 files in my program: App_interface.h, App_interface.cpp, main.cpp. Im trying to compile my program which requires the Qt library. I just installed the Qt library in the default location. This is my makefile: if your wondering why i don't use moc in this makefile is because 1) i dont kno...

2
голосов
1ответов
315 просмотров

Hudson cancel do not cancel all processes

I'm working with hudson v 1.323 installed as a Windows service on Windows XP. I'm building with a shell script that looks like this: #!c:/cygwin/bin/sh export PATH=/cygdrive/c/cygwin/bin:$PATH make -j 4 $MAKE_TARGET When I cancel this build using the red X everything seems to have stopped on...

13
голосов
4ответов
8582 просмотров

How to write a Makefile rule to download a file only if it is missing?

I'm trying to write a Makefile which should download some sources if and only if they are missing. Something like: hello: hello.c gcc -o hello hello.c hello.c: wget -O hello.c http://example.org/hello.c But of course this causes hello.c to be downloaded every time make command is run...

2
голосов
4ответов
475 просмотров

Run make with Makefile in memory

Suppose I have an encrypted Makefile on hand, I want to write a Perl program to decrypt it and run make -f with it. Is this possible without writing the decrypted Makefile back to harddisk?

4
голосов
4ответов
815 просмотров

How can I get the "full" makefile if a Makefile contains "include"?

Is it possible to get the "full" makefile if makefile contains "include"? For example: #here is the contents of Makefile include inc1.i include inc2.i clean: rm -rf * #here is the contents of inc1.i abc: touch abc #here is the contents of inc2.i def: ...

0
голосов
2ответов
153 просмотров

Organizing School Workspace/Writing Makefile

I am doing some C programming for school and I have found myself reusing libraries that I have created, over and over again (stacks, user input, error handling, etc). Right now, my personal SVN directory structure looks like this: trunk/ |-- 2520 | `-- assignments | |-- A2 | ...

1
голосов
3ответов
2309 просмотров

Error When Using Make

I'm learning Objective-C using GNUStep in my Windows(Cygwin) and i have two files, one source and one make file: include $(GNUSTEP_MAKEFILES)/common.make APP_NAME = HelloWorld HelloWorld_HEADERS = HelloWorld_OBJC_FILES = main.m HelloWorld_RESOURCE_FILES = include $(GNUSTEP_MAKEFILES)/applicat...

3
голосов
2ответов
8394 просмотров

In a makefile, how do I execute a command on each file name in variable?

I know I am doing it wrong, but I can't figure out how to organize this makefile. I define my util source files, and use some functions to define the .o files from them here: UTIL_SRC = utils/src/foo.cpp utils/src/bar.cpp utils/src/baz.cpp UTIL_OBJS = $(patsubst utils/src/%.cpp,utils/obj/%.o,$(...

3
голосов
1ответов
1179 просмотров

in m4's patsubst, how do I replace newlines with spaces?

How can I tell m4's patsubstr to replace all newlines in a string with a space? I've tried: patsubst(MULTI_LINE_STR_DEFINE,`\n',` ') and patsubst(MULTI_LINE_STR_DEFINE,`\n',` ')

0
голосов
1ответов
878 просмотров

OpenCV in Eclipse on Fedora Library issues

I'm trying to compile a small OpenCV program using Eclipse. I'm limited in library locations, as I'm running them on a University shared server. I have a fully working makefile, with which I can compile and run the program from the terminal as intended, however when using Eclipse, it compiles fin...

8
голосов
6ответов
23414 просмотров

How to handle setting up environment in makefile?

So, to compile my executable, I need to have the library locations set up correctly. The problem is, the setup comes from a bunch of scripts that do the env variable exporting, and what needs to be set up may change (beyond my control) so I need to use those scripts instead of copying their funct...

5
голосов
2ответов
846 просмотров

GNU make: inverting sub-process success?

I've a make file for a scripted system, with a lot of tests which should pass. Each test is a separate call to the scripting application: #---------------------------------------------------------------------------- # run test scripts in the module::test #----------------------------------------...

0
голосов
4ответов
522 просмотров

Distributed GNU Make for Win32

Is there a version of GNU Make, or GNU Make compatible application, which supports distributed builds on Win32? We currently have a large project using gnu makefiles. We use the Win32 version of GMake to build. Our build environment supports parallel builds without a problem, and we'd like to ...

24
голосов
3ответов
11582 просмотров

Joining elements of a list in GNU Make

In my makefile I have a variable with a list of directories, like this: DIRS = /usr /usr/share/ /lib Now, I need to create PATH variable from it, which is basically the same, but uses semicolon as a separator: PATH = /usr:/usr/share/:/lib How do I do that? I mean, how do I join elements of ...

1
голосов
1ответов
157 просмотров

autoconf / configure takes long time in cygwin

is there a way to speed up the configure script when compiling using the gnu toolchain on cygwin? reconfiguring with only minor changes takes equally long, is there a way to cache the configuration ?

7
голосов
5ответов
2596 просмотров

How can I build PDF LaTeX documents with ANT (or some other build system if you prefer)?

The team I work for manages a large collection of technical documentation which is written in LaTeX. Currently all the documentation we have is manually built by the editors and then checked into a version control system. Sometimes people forget to compile their documents so we have a situation...

18
голосов
5ответов
12439 просмотров

Make (Parallel Jobs) on Windows

What setup works for GNU make parallel jobs (-j) on Windows? I have tried setting the shell to cmd.exe using MinGW make 3.81, this works in creating the multiple processes but make fails with the "waiting for job" message. Can this work and what is the best setup? (MinGW / Cygwin / ???) Can som...

1
голосов
4ответов
6529 просмотров

Is there a way to exclude certain source files or folders from a makefile?

Is there a way to exclude some files from the compilation process? Or even whole directories? I believe the makefile is using find to find all the source files inside the src directory. Is there a way to specify the directories to ignore from find? Like some switch, or something?

2
голосов
2ответов
1377 просмотров

Updating crontab from a makefile

I'm trying to update the crontab from a GNU Make file. The idea is like this: I look through the existing cron table and filter out all entries marked as mine (via the comment) and save that to a temporary file. Then I add my jobs to that temporary file and make it a new cron table. That way the ...

1
голосов
2ответов
293 просмотров

Make dependency generation using shell and %?

I have a bunch of directories. I want to build an object for each directory. Suppose OBJS contains "build/dir1 build/dir2 build/dir3", and the pattern I'm matching is build/%: % <do something here> I'd like to add, for each object, dependencies for every file within that directory (r...

12
голосов
6ответов
9557 просмотров

What files did `make install` copy, and where?

Is there a way to get a list of filenames/paths that make install copies to the filesystem? Some packages come with a MANIFEST file, but not the ones that I am working with.

2
голосов
2ответов
1190 просмотров

What does the load-average used by parallel make represent?

Using GNU make on Windows, what exactly does the load-average value represent? For example: make -j --load-average=2.5 What does the 2.5 mean?

11
голосов
6ответов
14812 просмотров

How to install pycairo on osx?

I am trying to install the pycairo (Python bindings for the cairo graphics library) under OSX. I started with easy_install pycairo and got: Requested 'cairo >= 1.8.8' but version of cairo is 1.0.4 error: Setup script exited with Error: cairo >= 1.8.8 not found So I went to cairo's ...

12
голосов
12ответов
16626 просмотров

Gnu Makefile - Handling dependencies

What approach do C++ programmers on Unix platform use to create and manage Makefiles? I was using hand made Makefiles for my projects but they don't handle header file changes and other dependencies. I googled around and found a good solution here. But I ran into a problem here in the sed comma...

2
голосов
4ответов
4178 просмотров

make: hierarchical make file

(disclaimer: I am used to scons ... I am somewhat unexperienced with make) Context: I am using Eclipse CDT which generates makefiles. Let's say I have a project directory 'lib' and 2 build configurations 'Debug' and 'Release'. Eclipse CDT gracefully generates a makefile for each build configura...

11
голосов
3ответов
5478 просмотров

How to format/change qmake build output

how can I format the make output (!!by only changing the qmake project file!!). My compilation lines continue growing, and the one-line-warnings/errors almost disappear between them. I am thinking of something like $(CC) in.ext -o out.ext thanks in regard

220
голосов
12ответов
246356 просмотров

How to write loop in a Makefile?

I want to execute the following commands: ./a.out 1 ./a.out 2 ./a.out 3 ./a.out 4 . . . and so on How to write this thing as a loop in a Makefile?

1
голосов
1ответов
425 просмотров

How can I create directories using subversion version numbers in gnu make?

Thanks to 'Beta' my solution: RLS_DIRECTORY = $(shell svnversion -cn | sed 's/:/-/') SVN_VERSION = $(shell svnversion -cn | sed -r 's/.+://') RELEASE_NOTES = $(RLS_DIRECTORY:=/release-notes-$(SVN_VERSION:=.txt)) -include svn-version.mk SVN_OLD_VERSION ?= 0 .PHONY = all zip release release:...

7
голосов
2ответов
2286 просмотров

Third party libraries in CMake

I am using cmake for my project, but I have another library in a subdirectory ( say lib/ ) which uses a plain Makefile. How do I instruct CMake to run the Makefile in lib as part of the build process?

2
голосов
1ответов
4875 просмотров

makefile .o help... permission denied

I have the following makefile for my program. It creates program.o file, but when I try running it ./program.o I get the following error: ./statsh.o: Permission denied. Any ideas why this might be happening? HEADERS = statsh.h functions.h default: statsh statsh.o: statsh.c $(HEADERS) ...