11 lines · plain
1CXX_SOURCES := main.cpp other.cpp other-2.cpp2C_SOURCES := somefunc.c3 4include Makefile.rules5 6other-2.o: other-2.cpp7 $(CXX) $(CFLAGS_NO_DEBUG) -c $(SRCDIR)/other-2.cpp8 9somefunc.o: somefunc.c10 $(CC) $(CFLAGS) -std=c99 -c $(SRCDIR)/somefunc.c11