Message-ID: <3634D56D.B8834474@clover.c2d.fedex.com> Date: Mon, 26 Oct 1998 14:02:53 -0600 From: Walter Moore Organization: Federal Express X-Sender: "Walter Moore" (Unverified) X-Mailer: Mozilla 4.04 [en]C-FedExIntl (Win95; I) MIME-Version: 1.0 To: "djgpp AT delorie DOT com" Subject: makefile probs Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Question, This make file works with gmake on solaris, why do I get complaints on Win95? These are the errors I get, which I believe are due to the lines with '-@if': Syntax error Bad command or file name Bad command or file name Bad command or file name but then it goes ahead and makes what needs to be made, but make.client and make.server are not deleted. what is wrong with the lines that start with '-@if', that they will not work in djgpp environment? === #: CC = gcc UNIXLIB = -lnsl -lsocket LIBS = PC_CFLAGS = -Zwin32 PCLIB = -Ic:/djgpp/src/loadplan/LPserver.works -lwsock32 CFLAGS = -O COMMON = autogen.o env.o error.o initvars.o net.o options.o output.o readline.o writen.o debug: debugunix all: clean debugunix debugunix: @make "CFLAGS=${CFLAGS} -g -DDEBUG" "LIBS=${LIBS} ${UNIXLIB}" server @make "CFLAGS=${CFLAGS} -g -DDEBUG" "LIBS=${LIBS} ${UNIXLIB}" client debugserver: @make "CFLAGS=${CFLAGS} -g -DDEBUG" "LIBS=${LIBS} ${UNIXLIB}" server debugclient: @make "CFLAGS=${CFLAGS} -g -DDEBUG" "LIBS=${LIBS} ${UNIXLIB}" client debugpc: @make "CFLAGS=${PC_CFLAGS} ${CFLAGS} -g -DDEBUG" "LIBS=${PCLIB} ${LIBS}" client pc: @make "CFLAGS=${CFLAGS} ${PC_CFLAGS}" "LIBS=${PCLIB} ${LIBS}" client unix: @make "CFLAGS=${CFLAGS} " "LIBS=${LIBS} ${UNIXLIB}" server @make "CFLAGS=${CFLAGS} " "LIBS=${LIBS} ${UNIXLIB}" client server: -@if [ -r make.client ] ; \ then \ rm -f ${COMMON} make.client ; \ else \ true ; \ fi @touch make.server @make "CFLAGS=${CFLAGS} -DSERVER" "LIBS=${LIBS}" ${COMMON} lpserv client: -@if [ -r make.server ] ; \ then \ rm -f ${COMMON} make.server ; \ else \ true ; \ fi @touch make.client @make "CFLAGS=${CFLAGS} -DCLIENT" "LIBS=${LIBS}" ${COMMON} lpcli ${COMMON} strcli.o strecho.o lpcli.o lpserv.o: inet.h lpserv: lpserv.o strecho.o ${COMMON} ${CC} ${CFLAGS} -o $@ lpserv.o strecho.o ${COMMON} ${LIBS} lpcli: lpcli.o strcli.o ${COMMON} ${CC} ${CFLAGS} -o $@ lpcli.o strcli.o ${COMMON} ${LIBS} clean: -rm -f *.o core a.out temp*.* \ lpserv lpcli lpcli.exe options \ make.options lpcli.SYM \ make.client make.server === Any help would be appreciated. Walter -- Walter Moore Sr. Programmer Analyst Federal Express wbmoore AT fedex DOT com 2813 Business Park Memphis TN 38118 USA work: 901-369-2640 fax: 901-369-3634