Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Keep getting Error: make: *** No rule to make target 'craps.o', needed by 'craps'. Stop. C = g++ PROG = craps LIBSRCS = craps.cpp craps_game.cpp

Keep getting

Error:

make: *** No rule to make target 'craps.o', needed by 'craps'. Stop.

C = g++
PROG = craps
LIBSRCS = craps.cpp craps_game.cpp craps_helper.cppcraps_io.cpp
LIBOBJS = $(patsubst %.cpp, %.o, $(LIBSRCS))
LIBCRAPS = craps
CXXFLAGS = -I./ -fpic
LDFLAGS = -L./

all: $(PROG)

$(PROG): $(PROG).o lib$(LIBCRAPS).so
$(C) $(LDFLAGS) -l$(LIBCRAPS) -o$(PROG) $(PROG).o

lib$(LIBCRAPS).so: $(LIBOBJS)
$(C) -shared -o lib$(LIBCRAPS).so$(LIBOBJS)

.PHONY: clean

clean:
rm -f $(LIBOBJS) $(PROG)

.PHONY: depend

depend:
$(C) -MM $(PROG).cpp $(LIBSRCS) >depends.mak

include depends.mak

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Design Operation And Evaluation Of Mobile Communications

Authors: Gavriel Salvendy ,June Wei

1st Edition

3030770249, 978-3030770242

More Books

Students also viewed these Programming questions

Question

What does the Excel argument Nper refer to ?

Answered: 1 week ago

Question

Explain the reasons why the insurance industry is regulated.

Answered: 1 week ago