开发者

GNU MakeFile question

开发者 https://www.devze.com 2023-01-27 17:16 出处:网络
I use the GCC compiler. When compiling a program one often needs to link in a huge number of library files like .so extension to get the program to work.

I use the GCC compiler.

When compiling a program one often needs to link in a huge number of library files like .so extension to get the program to work.

Now for the C program that I am writing all the library files I need to link a开发者_如何学编程re inside a folder.

What should I write in my GNU Makefile if I wish to link ALL the library files in that folder to my program/executable.


target.exe: target.o
     gcc -o target.exe target.o libdir/*.so
0

精彩评论

暂无评论...
验证码 换一张
取 消