Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Mac OS X makefile broken on Debian

So I got Eclipse and CDT installed on Mac OSX without issue, created a project, wrote some code and did a build. So far, so good.

I checked in the whole project directory on my Debian Etch box, then did a check out in Debian. Still OK.

Next I went to the Debug directory on the Deb box, and typed "make clean", which it duly did. And then I tried "make all" and I get the following message.

make: *** No rule to make target `Bond.o', needed by `WebBondPricer'. Stop.

Here is the contents of the makefile
----------------------------------------------
###############################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
endif
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
-------------------------------------------

I am guessing that it (the makefile) is supposed to include subdir.mk so it knows where the source files are, but it doesn't seem to be doing that.

Here is the contents of subdir.mk
-------------------------------------------
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

# Add inputs and outputs from these tool invocations to the build variables
CPP_SRCS += \
../Bond.cpp \
../Curve.cpp \
../Date.cpp \
../FixedInterest.cpp \
../Instrument.cpp \
../Market.cpp \
../Term.cpp \
../cgi.cpp \
../main.cpp

OBJS += \
./Bond.o \
./Curve.o \
./Date.o \
./FixedInterest.o \
./Instrument.o \
./Market.o \
./Term.o \
./cgi.o \
./main.o

CPP_DEPS += \
./Bond.d \
./Curve.d \
./Date.d \
./FixedInterest.d \
./Instrument.d \
./Market.d \
./Term.d \
./cgi.d \
./main.d


# Each subdirectory must supply rules for building sources it contributes
%.o: ../%.cpp
      @echo 'Building file: $<'
      @echo 'Invoking: GCC C++ Compiler'
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
      @echo 'Finished building: $<'
      @echo ' '
------------------------------------------

Am I crazy to think that a Mac OSX (bsd) makefile would build without issue on Debian Linux?

Do I need something other than 'make' on Debian to build Mac OSX (BSD) makefiles?

Any and all assistance appreciated.

Ian



Back to the top