makefile-project

Multi directory makefile for project

狂风中的少年 提交于 2021-02-07 14:28:32
问题 This is how my directory looks like: /project makefile /ceda_lib makefile files.... /general makefile files.... /CLI makefile files.... /objects files.o Makefile(main): 1 #start other makefiles 2 3 4 o= ./objects 5 DEPS= Affine.hpp CEDA.hpp generalParameters.hpp generalFunctions.hpp 6 OBJ= $o/main.o $o/Affine.o $o/generalFunctions.o 7 CC=g++ 8 CFLAGS= -Wall -g -I. 9 export CC 10 export CFLAGS 11 export DEPS 12 13 all: 14 ▸---+$(MAKE) -C general 15 ▸---+$(MAKE) -C ceda_lib 16 ▸---+$(MAKE) -C

Multi directory makefile for project

左心房为你撑大大i 提交于 2021-02-07 14:26:22
问题 This is how my directory looks like: /project makefile /ceda_lib makefile files.... /general makefile files.... /CLI makefile files.... /objects files.o Makefile(main): 1 #start other makefiles 2 3 4 o= ./objects 5 DEPS= Affine.hpp CEDA.hpp generalParameters.hpp generalFunctions.hpp 6 OBJ= $o/main.o $o/Affine.o $o/generalFunctions.o 7 CC=g++ 8 CFLAGS= -Wall -g -I. 9 export CC 10 export CFLAGS 11 export DEPS 12 13 all: 14 ▸---+$(MAKE) -C general 15 ▸---+$(MAKE) -C ceda_lib 16 ▸---+$(MAKE) -C

What are the braces in this makefile rule for?

半城伤御伤魂 提交于 2019-12-11 06:08:34
问题 I am reading a makefile for a Qt-created project that has the following: {backend}.cpp{release\}.obj:: $(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease\ @<< $< << (above code is using \t for recipe and is as written in makefile) Both the rule and the recipe confuse me. I'll start with {backend} in the rule. Obviously the same confusion for {release} as well. I assume this is a reference to a particular sub-directory named backend . I guess that ..\backend\release\bar.obj would be found as a

Makefiles, “configure” files, and other compilation tools — How do they work? Why do they work the way they do?

断了今生、忘了曾经 提交于 2019-11-30 05:13:35
I'm still new to the UNIX/Linux world, and, in particular, to related tools, such as the GCC compiler. Namely, I'm still new to makefiles and things like that (I use MinGW on Windows), since so far, most of my development has been with IDEs like Visual Studio and Eclipse. When I open a typical project folder, I see files like these: configure make INSTALL install-sh (or a variant) There's quite a few things I don't understand here, and my main questions are these: What's the difference between these, and why do we need each one? (In the IDE world, all you have is a project file; that's it. So

Makefiles, “configure” files, and other compilation tools — How do they work? Why do they work the way they do?

时间秒杀一切 提交于 2019-11-29 03:03:14
问题 I'm still new to the UNIX/Linux world, and, in particular, to related tools, such as the GCC compiler. Namely, I'm still new to makefiles and things like that (I use MinGW on Windows), since so far, most of my development has been with IDEs like Visual Studio and Eclipse. When I open a typical project folder, I see files like these: configure make INSTALL install-sh (or a variant) There's quite a few things I don't understand here, and my main questions are these: What's the difference