Mail Archives: djgpp/1998/10/26/15:04:19
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
- Raw text -