gnu make - implicit rules - cplusplus

Oct 26, 2013 11:54



Haven't done any active c/c++ programming in a while. Forgot how to write gnu make makefiles, so reviewing.

http://www.gnu.org/software/make/manual/make.html

Glad I re-read the gnu manual, learned something new! 'Implicit rules' rocks.

#
# _834v5010generator makefile
#
PROGRAM_NAME = _834v5010generator

#
# CXXFLAGS
# used by gnu make's implicit rules
# I choose to show all warnings (-Wall), and include debugging information (-g)
#
CXXFLAGS := -Wall -g

#
# Compile using gnu make implicit rules
#
$(PROGRAM_NAME) : _834v5010model.o _834v5010segment.o _834v5010dataElement.o \
_834v5010configReader.o

_834v5010model.o :

_834v5010segment.o :

_834v5010dataElement.o :

_834v5010configReader.o :

.PHONY : clean
clean:
rm *.o



make, gnu, 834v5010generator, 2013, cplusplus

Previous post Next post
Up