07-05-2010
[Makefile] nothing to be done for 'all'
hello,
I have a firts makefile who call others makefile. for this i use:
Code :
$ make -f linux.mak
and output his:
Code :
$ make -f linux.mak all
make -C DerelictAL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictAL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictAL'
make -C DerelictFMOD all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFMOD'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFMOD'
make -C DerelictFT all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFT'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFT'
make -C DerelictGL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictGL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictGL'
make -C DerelictIL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictIL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictIL'
make -C DerelictODE all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictODE'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictODE'
make -C DerelictOgg all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictOgg'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictOgg'
make -C DerelictPA all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictPA'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictPA'
make -C DerelictSDL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSDL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSDL'
make -C DerelictSFML all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSFML'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSFML'
make -C DerelictUtil all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictUtil'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictUtil'
[builder@jonathan derelict2-20100407]$ make -f linux.mak all
make -C DerelictAL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictAL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictAL'
make -C DerelictFMOD all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFMOD'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFMOD'
make -C DerelictFT all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFT'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFT'
make -C DerelictGL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictGL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictGL'
make -C DerelictIL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictIL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictIL'
make -C DerelictODE all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictODE'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictODE'
make -C DerelictOgg all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictOgg'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictOgg'
make -C DerelictPA all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictPA'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictPA'
make -C DerelictSDL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSDL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSDL'
make -C DerelictSFML all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSFML'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSFML'
make -C DerelictUtil all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictUtil'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictUtil'
linux.mak file:
Code :
include inc/linux_inc.mak
all : DerelictAL_ALL DerelictFMODEX_ALL DerelictFT_ALL DerelictGL_ALL DerelictIL_ALL DerelictODE_ALL DerelictOgg_ALL DerelictPA_ALL DerelictSDL_ALL DerelictSFML_ALL DerelictUtil_ALL
# Targets for all libs in each package
DerelictAL_ALL :
$(DMAKE) -C DerelictAL all PLATFORM=linux
DerelictFMODEX_ALL :
$(DMAKE) -C DerelictFMOD all PLATFORM=linux
DerelictFT_ALL :
$(DMAKE) -C DerelictFT all PLATFORM=linux
DerelictGL_ALL :
$(DMAKE) -C DerelictGL all PLATFORM=linux
DerelictIL_ALL :
$(DMAKE) -C DerelictIL all PLATFORM=linux
DerelictODE_ALL :
$(DMAKE) -C DerelictODE all PLATFORM=linux
DerelictOgg_ALL :
$(DMAKE) -C DerelictOgg all PLATFORM=linux
DerelictPA_ALL:
$(DMAKE) -C DerelictPA all PLATFORM=linux
DerelictSDL_ALL :
$(DMAKE) -C DerelictSDL all PLATFORM=linux
DerelictSFML_ALL :
$(DMAKE) -C DerelictSFML all PLATFORM=linux
DerelictUtil_ALL :
$(DMAKE) -C DerelictUtil all PLATFORM=linux
# There's only one DerelictAL target
DerelictAL : DerelictAL_ALL
# There's only one DerelictFMODEX target
DerelictFMODEX : DerelictFMODEX_ALL
# There's only one DerelictFT target
DerelictFT : DerelictFT_ALL
# Individual DerelictGL targets
DerelictGL :
$(DMAKE) -C DerelictGL DerelictGL PLATFORM=linux
DerelictGLU :
$(DMAKE) -C DerelictGL DerelictGLU PLATFORM=linux
# Individual DerelictIL targets
DerelictIL :
$(DMAKE) -C DerelictIL DerelictIL PLATFORM=linux
DerelictILU :
$(DMAKE) -C DerelictIL DerelictILU PLATFORM=linux
DerelictILUT :
$(DMAKE) -C DerelictIL DerelictILUT PLATFORM=linux
# There's only one target for DerelictODE
DerelictODE : DerelictODE_ALL
# Individual DerelictOgg targets
DerelictOgg :
$(DMAKE) -C DerelictOgg DerelictOgg PLATFORM=linux
# There's only one target for DerelictPA
DerelictPA : DerelictPA_ALL
DerelictVorbis :
$(DMAKE) -C DerelictOgg DerelictVorbis PLATFORM=linux
DerelictVorbisEnc :
$(DMAKE) -C DerelictOgg DerelictVorbisEnc PLATFORM=linux
DerelictVorbisFile :
$(DMAKE) -C DerelictOgg DerelictVorbisFile PLATFORM=linux
# Individual DerelictSDL targets
DerelictSDL :
$(DMAKE) -C DerelictSDL DerelictSDL PLATFORM=linux
DerelictSDLImage :
$(DMAKE) -C DerelictSDL DerelictSDLImage PLATFORM=linux
DerelictSDLMixer :
$(DMAKE) -C DerelictSDL DerelictSDLMixer PLATFORM=linux
DerelictSDLNet :
$(DMAKE) -C DerelictSDL DerelictSDLNet PLATFORM=linux
DerelictSDLttf :
$(DMAKE) -C DerelictSDL DerelictSDLttf PLATFORM=linux
# Individual DerelictSFML targets
DerelictSFMLWindow :
$(DMAKE) -C DerelictSFML DerelictSFMLWindow PLATFORM=linux
DerelictSFMLSystem :
$(DMAKE) -C DerelictSFML DerelictSFMLSystem PLATFORM=linux
DerelictSFMLGraphics :
$(DMAKE) -C DerelictSFML DerelictSFMLGraphics PLATFORM=linux
DerelictSFMLAudio :
$(DMAKE) -C DerelictSFML DerelictSFMLAudio PLATFORM=linux
DerelictSFMLNetwork :
$(DMAKE) -C DerelictSFML DerelictSFMLNetwork PLATFORM=linux
# There's only one DerelictUtil target
DerelictUtil : DerelictUtil_All
cleanall : cleanlib cleandi
clean : cleanlib
cleanlib:
cd DerelictUtil && $(RM) $(LIB_DEST)/*.a
cleandi:
cd DerelictUtil && $(RMR) $(IMPORT_DEST)/derelict
DerelictAL makefile:
Code :
include ../inc/$(PLATFORM)_inc.mak
all : DerelictAL
SOURCES= $(shell find . -name '*.d' )
OBJECTS= $(shell echo $(SOURCES) | sed -e 's/\.d/\.o/g')
DerelictAL : $(LIBNAME)
$(LIBNAME) : IMPORTS=-Iderelict
$(LIBNAME) : $(OBJECTS)
$(make-lib)
%.o : %.d
$(DC) $(DFLAGS) $(IMPORTS) -c $< $(output)
install: all
install -d $(IMPORT_DEST)/openal
(cd src; echo $(SOURCES) | sed -e s,src/,,g | xargs tar c) | (cd $(SOURCES); tar xv)
install -d $(LIB_DEST)
install -m 644 $(LIBNAME) $(LIB_DEST)
uninstall:
$(foreach dir,$(shell ls derelict) , rm -rf $($(IMPORT_DEST)/$(dir))
clean:
-rm -f $(LIBNAME) $(OBJECTS)
Thanks for any help
10 More Discussions You Might Find Interesting
1. Programming
can anyone well explain how to create a makefile? especially those commands in the makefile?
BTW, what is CFLAG? (2 Replies)
Discussion started by: ligerdave
2 Replies
2. High Performance Computing
I am new to creating makefiles.
I have several fortran programs in a folder called as "test" and also have several subroutines in another folder (which is inside this test folder) called as libry
My makefile is in the folder "test"
I want to create a makefile which can access the files in... (2 Replies)
Discussion started by: explorer
2 Replies
3. UNIX for Advanced & Expert Users
Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error:
make: module: command not found
Why is this? Is there any way to run this command in a Makefile?
NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Discussion started by: hernandinho
2 Replies
4. UNIX for Advanced & Expert Users
I have 2 libraries in 2 different directories that I build with Makefiles.
library B depends on library A. If I modify a .cpp file in library A and run lib B's Makefile can I have B's makefile to automatically rebuild library A?
I am now rebuilding A, followed by B... but I'd like B to... (0 Replies)
Discussion started by: wwuster
0 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have been trying to make the program swap but i have been getting errors with the makefile such as
driver.o:... (1 Reply)
Discussion started by: mgyeah
1 Replies
7. UNIX for Dummies Questions & Answers
I'm really confused how to use a makefile.
Are you supposed to be make a file from emacs called MakeFile and put code in there to compile?
I am trying to create a makefile to compile two .cpp files in my current directory to produce two .o files and then link them...
What I did was make a... (1 Reply)
Discussion started by: jzhang172
1 Replies
8. Shell Programming and Scripting
Dear all,
I have a quite simple question about how to manipulate "makefile.am". I intend to:
1. "CFLAGS" and "CXXFLAGS" have no value at all. I know that these values get "-g -O2" by default. On the other hand, when I try to set them as "CFLAGS = " in "makefile.am", I get warning messages... (4 Replies)
Discussion started by: Dandan
4 Replies
9. UNIX for Dummies Questions & Answers
Hey everybody,
This may be stup*d question for you, but i am new in unix and i wonder how can i make the rules for translating and linking my .c "primjer1.c", "primjer2.c" and "primjer3.c" in makefile.
Thank you. (7 Replies)
Discussion started by: jskako
7 Replies
10. Programming
Hi All,
We have moved our OS from Sun Solaris to Linux and also some of the compilers.
Our old makefile used to be as below:
CC=cc
FLAGS=-G -KPIC -DLG_SOLARIS_OS
DEFINES=-DSunOS
SYSLIBS=-lc
.SUFFIXES : .c
.c.o : ;$(CC) -c $(FLAGS) $(DEFINES) $*.c -o $*.o
... (3 Replies)
Discussion started by: shash
3 Replies