make file problem
Hi,
I'm getting following error when I try to compile my code on solaris platform, when i type
//------------------------------------------------------
[solar log]# make INTEL=1
make: Fatal error in reader: ../make.binpath, line 12: Unexpected end of line seen
//------------------------------------------------------
contents of Makefile are ...
include ../make.binpath
INC_PATH= ../../include
TARGETS= $(ARCH)/libdump_log.a
#INCLUDES= $(INC_PATH)/dump_log.h
SQL_INC_PATH= $(SQL_PATH)/include
DUMP_LOG_INC_PATH= $(DUMP_LOG_PATH)
OBJECTS = $(ARCH)/dump_log.o
DEPENDENCIES= $(INCLUDES) Makefile
OPT_FLAGS= -I$(INC_PATH)
CFLAGS= -D$(ARCH) $(OPT_FLAGS)
all:$(TARGETS)
$(TARGETS):$(OBJECTS)
$(AR) rcs $(TARGETS) $(OBJECTS)
$(ARCH)/dump_log.o:dump_log.c $(DEPENDENCIES)
$(CPP) $(CFLAGS) -c dump_log.c -o $@
clean:
rm -f $(OBJECTS) $(TARGETS) *~
//------------------------------------------------------
make.binpath is ...
SQL_PATH=/usr/local/pgsql
DUMP_LOG_PATH=../log
ifdef SPARC
ARCH=sparc
CC=/opt/SUNWspro/bin/cc
CPP=/opt/SUNWspro/bin/CC
endif
ifdef INTEL
ARCH=intel
CC=/opt/SUNWspro/bin/cc
CPP=/opt/SUNWspro/bin/CC
endif
ifdef LINUX
ARCH=linux
CC=gcc
CPP=g++
endif
.EXPORT_ALL_VARIABLES:
//------------------------------------------------------
when i use these files to compile my code on linux platform, there's no problem, but why is it creating problem for INTEL?
Thanks,
Regards,
Kranti
|