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 |
How did you edit the file. Line 12 is blank. Did you edit it in windows? Could be some hidden whitespace. Also, check if there is a tab character at the beginning of the line.
Also, you might want to post the output of "cat -n <filename>" instead to make it easier for others to read. |
All times are GMT -5. The time now is 02:15 PM. |