human 编写一个Linux中的makefile脚本同时编译四个文件; AI PHONY allall programprogram file1o file2o file3o file4o gcc -o program file1o file2o file3o file4ofile1o file1c gcc -c file1cfile2o file2c gcc -c file2cfile3o
'
This makefile will compile four files (file1.c, file2.c, file3.c, file4.c) and create a program from them. The "all" target is set as the default target and it depends on the "program" target. The "program" target depends on the four object files and will be compiled with the gcc command. The four object files will be created using the gcc -c command. The "clean" target will remove all object files and the program.
原文地址: https://www.cveoy.top/t/topic/cwAY 著作权归作者所有。请勿转载和采集!