Parallel makefile requires dependency ordering

后端 未结 5 655
青春惊慌失措
青春惊慌失措 2021-02-03 23:21

I have the following piece of makefile:

CXXFLAGS = -std=c++0x -Wall
SRCS     = test1.cpp test2.cpp
OBJDIR   = object
OBJS     = $(SRCS:%.cpp=$(OBJDIR)/%.o)

all:         


        
5条回答
  •  情话喂你
    2021-02-03 23:41

    For a solution without a recursive invocation of make, you could try this.

    ifneq ($(filter release,$(MAKECMDGOALS)),)
    test1: clean
    endif
    

提交回复
热议问题