Questions tagged [GNU Make] (73)

1
answer

How to do to make fight, if files are missing?

Made this makefile, prescribed a goal, "clean":# .PHONY: all clean all: hello.o main.o gcc -o hello main.o hello.o hello.o: hello.c gcc -o hello.o-c hello.c main.o: main.c gcc -o main.o-c main.c clean: -rm ./*.o 2>/dev/null But he swears, if there is no file to delete:$ make all gcc -o hello.o-c hello.c gcc -o main.o...
shannon41 asked March 24th 20 at 14:05
2
answers

Why you need a dependency to make?

hello: main.c hello.c gcc -o hello main.c hello.c Why "hello:" we need the "main.c" and "hello.c" ? they're specified in the command. It turns out, the duplication of information
stacey.Lueilwi asked March 24th 20 at 14:05
2
answers

How to configure make install for a project?

There is a project, created a make file using autotools utilities. everything turned out except the configure make install. when you enter this command it ustanovim=Yvette only executable file in the desired directory. but still have to go the extra folder with the configs and pictures. how to make he got them too and insta...
cora_Rolfson23 asked March 16th 20 at 12:20
1
answer

How with make to the building of an executable file from 2 sources?

In General, two source code file main_0.c main_1.c and the third file is the header zagolovok.h boorom all prototypes and global variables. Here is the text of the makefile: /home/tr/tr: /home/tr/main_0.o /home/tr/main_1.o cc-o /home/tr/main_0.o /home/tr/main_1.o /home/tr/main_0.o: /home/tr/main_0.c /home/tr/header.h cc-...
Chesley.Kessler96 asked March 15th 20 at 23:58
1
answer

How to teach Mingw32 understand unix commands on the similarity of the rm?

There's a project I need to collect, attempt to collect on Windows, but there are plenty of teams rm. To change everything manually is problematic, so you need to learn to understand mingw32 these commands, you can do this? P. S. I would Like to do without switching to linux
osbaldo67 asked March 15th 20 at 23:22
1
answer

How to write makefile?

Damn dumb to admit it but all the contents of this file to me as Chinese characters! Please explain! I understand that the executable is assembled from several object files(or one) and these object files are compiled from source code with include files! How would You have written in the makefile if You had 0.c 1.c 2.c 3.h? ...
maverick.Pollich asked March 13th 20 at 11:19
1
answer

Hello! Problem with make?

Recently I started to notice the benefits of this tool) That's just what I do not fully realize!, unless the "makefile" is in the same directory as the source files and other plugin files, then the commands do not need to specify the full path location of the file, specify the path relative to the makefile? Next, when follo...
na asked March 13th 20 at 11:16
1
answer

How to fold the values of the variables in Make?

How to put variable values in Make.
Alvena58 asked March 12th 20 at 15:27
1
answer

The target in the Makefile that matches the name of the file

The project has a Makefile, which is the goal of static. Lying next to the file name static.sh. When you call make static the purpose of safely performed, but also added the file static (content is identical static.sh). In General, clear about what it is or where, but how to deal with it? In addition to renaming static.sh ...
genevieve_Upton asked October 8th 19 at 00:03
3
answers

To build the package from source on OpenWRT?

Available: Router TL-WR1043ND OpenWRT build from Pilot6 under bilaynovsky l2tp OpenWrt | Attitude Adjustment (r28713) #uname-a Linux OpenWrt 2.6.39.4 #1 Tue Nov 15 In the repository the author build no packages: kmod-usbip and kmod-usbip-server Upgrade OpenWRT to the core 3.7.7.1 (this core is now in the trunk) and re-confi...
Jacynthe.Spor asked October 3rd 19 at 17:54