Quantcast
Channel: Makefile to build and test a C program - Code Review Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by J_H for Makefile to build and test a C program

specificationmake shalt build ...Writing down requirements in English can be very helpful, keep doing it.But please spell it "shall".In KJVit appears fifteen hundred times, in fourteen hundredof them...

View Article


Makefile to build and test a C program

Requirements:make shalt build read_file program in the root directory of the project from all the files in the src directory, and take care of all the dependencies, and place all .o and .d files in an...

View Article


Answer by Harith for Makefile to build and test a C program

Perhaps rename to GNUmakefile:OBJS = $(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(SRCS))The BSDs do not recognize this pattern rule. So the Makefile is specific to GNU make, and would not be understood...

View Article
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>