Questions tagged [GNU Make] (73)

2
answers

How to use make file?

Faced with a utility such as make file in the book Bruce Accela, but understand I did not understand. How to use it? We need to create another file and to write the commands? Okay. What extension should the file be? .h/.cpp? What do you mean this line: g++ work pointer.cpp Source1.cpp Source2.cpp work pointer, Source1, Sou...
natasha.Sporer asked April 9th 20 at 10:24
2
answers

How to create a directory in the make?

Initially, the makefile looked like this:install: mkdir "/usr/local/bin/myprogram/" cp ./src/myprogram /usr/local/bin/myprogram/ ... All is well, but if I podredaktiruyte code and re-do make install, it complains that the directory exists and stops.sudo make install mkdir "/usr/local/bin/myprogram/" mkdir: cannot create...
Florencio.Toy asked April 3rd 20 at 16:53
1
answer

Can't find the mistake of trying to sbility on Windows — *** missing separator. Stop.?

# options OPT_OPENSSL = false # enable the openssl engine OPT_RSAREF = true # enable RSAREF engine OPT_PKCS11 = false # enable eToken PKCS11 engine OPT_PKCS11_RUTOKEN = false # enable RuToken PKCS11 engine OPT_WINCRYPT = false # enable the WinCrypt API engine OPT_SENSELOCK = false # enable SenseLock engine OPT_MT = true # /...
Yolanda.Fay asked March 31st 20 at 16:16
4
answers

How to build PHP extension on Windows x64, from Linux?

I tried to configure./configure --host=x86_64-w64-mingw32 But after make, the output is .a file and not .dll. What am I doing wrong?
buster3 asked March 31st 20 at 14:12
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