Makefile cannot able to target dependecies -
# # makefile # # compiler use cxx = clang++ # flags pass compiler cxxflags = -ggdb3 -o0 -std=c++11 -wall -werror -pedantic-errors # flags c preprocessor cppflags = -mmd # maintainer's variant of cxxflags am_cxxflags = # command used compile c++ source file. # file name appended form complete command line. cxxcompile = # command used link c++ program cxxlink = # space-separated list of header files hdrs = # space-separated list of libraries, if any, # each of should prefixed -l libs = -lm -lpthread # default target # require argument provided @ command line # target name target = $(target) > problem line > targeting single .cpp > when want make project folder # # makefile # # compiler use cxx = clang++ # flags pass compiler cxxflags = -ggdb3 -o0 -std=c++11 -wall -werror -pedantic-errors # flags c preprocessor cppflags = -mmd # maintainer's variant of cxxflags am_cxxflags = # command used compile c++ source file. # file name appended form complete command line. cxxcompile = # command used link c++ program cxxlink = # space-separated list of header files hdrs = # space-separated list of libraries, if any, # each of should prefixed -l libs = -lm -lpthread # default target # require argument provided @ command line # target name target = $(target)
i cannot able target header file , corresponding .cpp dependencies all: $(target) $(target): $(target).cpp ; $(cxx) $(cxxflags) $(cppflags) $(am_cxxflags) $(cxxcompile) $(cxxlink) $(hdrs) -o $(target) $(target).cpp $(libs)
# housekeeping clean: rm -f core
Comments
Post a Comment