Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » make
make [message #921541] Mon, 24 September 2012 07:53
Michael Mising name is currently offline Michael Mising name
Messages: 97
Registered: July 2009
Member
Hi
after importing the makefile below I get:

make NewProject all
make: *** No rule to make target `NewProject'. Stop.

What could I be doing wrong?
Many thanks



# I release this sample under the MIT license: free for any use, provided
# you hold me harmless from any such use you make, and you retain my
# copyright on the actual sources.
# Copyright 2005 Jon Watte.

# AppShared Template

APPNAME := ../../game/NewProject
SOURCES := ../../../../Engine/source/main/main.cpp \

LDFLAGS := -g -m32
LDLIBS := -lstdc++
CFLAGS := -MMD -I. -Wfatal-errors -m32


CFLAGS += -DUNICODE

CFLAGS += -DTORQUE_SHARED

CFLAGS_DEBUG := $(CFLAGS) -ggdb
CFLAGS_DEBUG += -DTORQUE_DEBUG
CFLAGS_DEBUG += -DTORQUE_NET_STATS
CFLAGS_DEBUG += -DTORQUE_DEBUG_GUARD

CFLAGS += -O3

#CC := gcc
LD := gcc

APP_TARGETS += $(APPNAME)
APP_TARGETS_DEBUG += $(APPNAME)_DEBUG

OBJS_NewProject := $(patsubst ../../../../Engine/source/%,Release/NewProject/%.o,$(SOURCES))
OBJS_NewProject += $(patsubst ../../source/%, Release/NewProject/%.o,$(SOURCES))
OBJS_NewProject := $(filter %.o, $(OBJS_NewProject))
OBJS_NewProject_DEBUG := $(patsubst ../../../../Engine/source/%,Debug/NewProject/%.o,$(SOURCES))
OBJS_NewProject_DEBUG += $(patsubst ../../source/%, Debug/NewProject/%.o,$(SOURCES))
OBJS_NewProject_DEBUG := $(filter %.o, $(OBJS_NewProject_DEBUG))

# Deriving the actual prerequisite list name to use from the target
# name in the shell command is the "secret sauce" that makes this all
# work.
#
$(APPNAME): $(OBJS_NewProject) $(SHARED_LIB_TARGETS)
$(LD) $(LDFLAGS) -o $@ $(OBJS_NewProject) $(SHARED_LIB_TARGETS) $(LDLIBS)

$(APPNAME)_DEBUG: $(OBJS_NewProject_DEBUG) $(SHARED_LIB_TARGETS_DEBUG)
$(LD) $(LDFLAGS) -o $@ $(OBJS_NewProject_DEBUG) $(SHARED_LIB_TARGETS_DEBUG) $(LDLIBS)

Release/NewProject/%.asm.o: ../../../../Engine/source/%.asm
@mkdir -p $(dir $@)
nasm -f elf $< -o $@

Release/NewProject/%.o: ../../../../Engine/source/%
@mkdir -p $(dir $@)
$(CC) -c $(CFLAGS) $< -o $@

Debug/NewProject/%.asm.o: ../../../../Engine/source/%.asm
@mkdir -p $(dir $@)
nasm -f elf $< -o $@

Debug/NewProject/%.o: ../../../../Engine/source/%
@mkdir -p $(dir $@)
$(CC) -c $(CFLAGS_DEBUG) $< -o $@

release_NewProject: $(APPNAME)
debug_NewProject: $(APPNAME)_DEBUG

.PHONY: debug_NewProject release_NewProject

DEPS += $(patsubst %.o,%.d,$(OBJS_NewProject))
DEPS += $(patsubst %.o,%.d,$(OBJS_NewProject_DEBUG))

APPNAME :=
SOURCES :=
Previous Topic:Unresolved inclusion problem,
Next Topic:preprocess only
Goto Forum:
  


Current Time: Fri Sep 19 02:02:36 GMT 2014

Powered by FUDForum. Page generated in 0.01927 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software