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)