Is this the right forum for a make question?
And if not could anyone suggest a better one?

Just in case I'll post my question.
Thanks,
Chris


When I type make at the command line in a directory with a Makefile I get:


gcc -O3 -W -Wall -arch ppc -pedantic-errors -Wno-long-double utilities.c
utilities.c: In function `strtoupper':
utilities.c:3302: warning: suggest parentheses around assignment used as truth value
utilities.c: In function `strtolower':
utilities.c:3319: warning: suggest parentheses around assignment used as truth value
ld: Undefined symbols:
_main
make: *** [beamisutilitieslib.a(utilities.o)] Error 1



According to fink list I have make version 3.79.1-3, and when I type which make I get /sw/bin/make

The makefile, which used to work fine but I don't remember much about the state of my system last time I used it, in that directory is:



BEAMISLIBDIR = /Users/beamis/Public/cprog/util

#CFLAGS = -g -O -I. -Xcpluscomm -w2 -n32 -LANG:bool=ON -c
#CFLAGS = -g -O -I. -I$(BEAMISLIBDIR) -Xcpluscomm -w2 -n32 -c
#CFLAGS = -O3 -W -Wall -pedantic-errors -m486 -I$(BEAMISLIBDIR)
CFLAGS = -O3 -W -Wall -arch ppc -pedantic-errors -Wno-long-double

COMPILE = gcc
# /usr/people/beamisc/etc/util/Makefile

#sinclude /usr/people/beamisc/etc/.localdefs

#CFLAGS = -g -O -I. -Xcpluscomm -w2 -n32 -LANG:bool=ON -c CFLAGS = -g -O -I. -Xcpluscomm -w2 -n32 -ansi -c

#COMPILE = cc

#LIBS = /usr/lib32/libm.so

LOCALLIB = beamisutilitieslib.a

all: $(LOCALLIB)

LOCALLIBOBJS = $(LOCALLIB)(utilities.o) \
               $(LOCALLIB)(odeint.o) \
               $(LOCALLIB)(optimisers.o) \
               $(LOCALLIB)(non_rect_struct.o) \
               $(LOCALLIB)(non_rect_lookup.o) \
               $(LOCALLIB)(SixDOF.o) \
               $(LOCALLIB)(ThreeDOF.o)

#include $(COMMONRULES)

$(LOCALLIB): $(LOCALLIBOBJS)

.c.a:
        $(COMPILE) $(CFLAGS) $<
        ar rvso $@ $%
        rm -f $%
#       ar rvu $@ $%

$(LOCALLIB)(utilities.o): ./utilities.h

$(LOCALLIB)(odeint.o): ./odeint.h ./utilities.h

$(LOCALLIB)(optimisers.o): ./optimisers.h  ./utilities.h

$(LOCALLIB)(non_rect_struct.o): ./non_rect_struct.h  \
                                ./non_rect_lookup.h  \
                                ./utilities.h

$(LOCALLIB)(non_rect_lookup.o): ./non_rect_lookup.h  \
                                ./utilities.h

$(LOCALLIB)(SixDOF.o): ./SixDOF.h  \
                       ./utilities.h

$(LOCALLIB)(ThreeDOF.o): ./ThreeDOF.h  \
                         ./utilities.h

clean:
        rm -f utilities.o
        rm -f odeint.o
        rm -f optimisers.o
        rm -f non_rect_struct.o
        rm -f non_rect_lookup.o
        rm -f SixDOF.o
        rm -f ThreeDOF.o

reallyclean: clean
        rm -f $(LOCALLIB)



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-beginners mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to