Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7435615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:06:14+00:00 2026-05-29T10:06:14+00:00

If I try make all , I get: make: ***No rule to make target

  • 0

If I try make all, I get:

make: ***No rule to make target 'src\SOURCES', needed by 'all'. Stop.

If I try make qwark, I get:

make: ***No rule to make target 'obj\src\SOURCES' needed by 'qwark'. Stop.

If I try make qwark.o, I get

Fatal error: can't create obj\qwark.o: No such file or directory
make: *** [qwark.o] Error 1

Here’s my source code, for your viewing pleasure…

COMPILER := g++
CFLAGS := 
LDFLAGS := 
SOURCES := quark.cc
SOURCES := $(addprefix src\,SOURCES)
OBJECTS := $(addprefix obj\,$($(notdir SOURCES):.cc=.o))
EXECUTABLE := qwark.exe
DEBUG := bin\debug\$(EXECUTABLE)
NORMAL := bin\release\$(EXECUTABLE)

all: $(SOURCES) $(EXECUTABLE)

release: qwark
normal: qwark

qwark: $(OBJECTS)
    $(CC) $(LDFLAGS) $(OBJECTS) -o $@

qwark.o: src\qwark.cc
    $(CC) $(CFLAGS) -c src\qwark.cc -o obj\qwark.o

%.o: src\%.cc
    $(CC) $(CFLAGS) -c $(input) -o obj\$(output)

Please, someone, tell me what it is I’m doing wrong……….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:06:15+00:00Added an answer on May 29, 2026 at 10:06 am

    You’re modifying a literal SOURCES word, instead of the corresponding variable value. Try the following:

    SOURCES := quark.cc
    
    SOURCES := $(addprefix src\,$(SOURCES))
    OBJECTS := $(addprefix obj\,$(patsubst %.cc,%.o,$(notdir $(SOURCES))))
    

    Or, much simpler:

    SOURCES := quark.cc
    
    OBJECTS := $(SOURCES:%.cc=obj\%.o)
    SOURCES := $(SOURCES:%=src\%)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I will try to make this as clear as I can, but if you
I am starting this question to try and make a central point developers can
An user can post multiple comments in a thread, and I try to get
I'll try make this short. I want to get a list of browsers installed
I want to make autocomlplete for remote data source, I get all data from
I try to make a registration form. When user post the fields, i check
I try to make an animation with an image in my view but it
I try to make Ext.Data.Store working... With a normal proxy it works great: var
I try to make an Android application which communicates with a non-standard ISO15693 (NFC-V)
I try to make have an EventListener in ItemRenderer but its not working. How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.