Ta da! Thanks everyone. Here is the final makefile:
# Makefile for Linux 32-bit mprime
#
# NOTES: libcurl built by downloading latest sources and:
# ./configure --without-ssl --without-libssh2 --without-libidn
--disable-ldap --disable-ldaps --without-gssapi --enable-ipv6
--without-krb4
# make
# make install
# After linking, check to see if too many dynamic libraries are
required by doing:
# ldd mprime
CC = gcc
CFLAGS = -I.. -I../gwnum -O2 -march=i486 -malign-double
CPP = g++
CPPFLAGS = -I.. -I../gwnum -O2 -march=i486 -malign-double
LFLAGS = -Wl,-M
LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic
$(shell pkg-config --static --libs libcurl) -lstdc++ -Wl,-Bdynamic
-ldl
FACTOROBJ = factor32.o
LINUXOBJS = prime.o menu.o
EXE = mprime
#########################################################################
$(EXE): security $(LINUXOBJS) $(FACTOROBJ)
$(CC) $(LFLAGS) -o $(EXE) $(LINUXOBJS) $(FACTOROBJ) $(LIBS)
security:
[ ! -e ../security.h ] && touch ../security.h || true
[ ! -e ../security.c ] && touch ../security.c || true
[ ! -e ../secure5.c ] && touch ../secure5.c || true
clean:
rm -f $(EXE) $(EXE2) $(LINUXOBJS)
.c.o:
$(CC) $(CFLAGS) -c $<
.cpp.o:
$(CPP) $(CPPFLAGS) -c $<
_______________________________________________
Prime mailing list
[email protected]
http://hogranch.com/mailman/listinfo/prime