help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Target files


From: Payal R Copling
Subject: Target files
Date: Wed, 14 May 2003 16:15:29 -0500

My TARGET (Target.o) is not being generated and TestCntr.o is not being generated...only Counter.o is generated? Is there any obvious reason?

##############################################################################
# TBD: How do we find PROJECT_DIR if we set the environment variables in Common.mk !
ifndef PROJECT_DIR
export PROJECT_DIR = $(shell cd ../..; pwd)
endif

include $(PROJECT_DIR)/Common.mk

# Current direcotory is SampleProject2/UTIL/logger


# Default Target
TARGET = $(PROJECT_DIR)/UTIL/logger/Target.o

# Simulation Target
# TARGET = logger.exe

SRCS = Counter.cc TestCntr.cc

OBJS := $(addprefix $(PROJECT_DIR)/UTIL/logger/,$(patsubst %.cc,%.o,$(notdir $(SRCS))))

# TBD: Temporary Hard Coded header file inclusion until we generate automatic dependencies

$(OBJS): Counter.h Test.h

$(TARGET): $(SRCS) $(OBJS) Makefile
$(CC) -shared -o $(TARGET) $(OBJS)

$(PROJECT_DIR)/UTIL/logger/%.o: %.cc
$(CXX) -c $(CPPFLAGS) -o $@ $<


#-------------------------------------------------------------------------------
# Clean-up
#-------------------------------------------------------------------------------
sim:
$(TARGET)
clean:
rm -f $(TARGET) $(OBJS) *.err

# TBD: rm -R $(PLATFORM)


Payal R Copling


reply via email to

[Prev in Thread] Current Thread [Next in Thread]