In gnu make, can the prerequisites in a static pattern rule have different suffixes

后端 未结 3 974
青春惊慌失措
青春惊慌失措 2021-01-18 04:45

Our make file compiles .c source files with a static pattern rule like this:

OBJECTS = foo.o bar.o baz.o

$(OBJECTS): %.o: %.c
    $(CC) $< $(C_OPTIONS) -         


        
3条回答
提交回复
热议问题