home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
progs
/
pari
/
pari_137
/
src
/
makefile
< prev
next >
Wrap
Makefile
|
1992-09-17
|
3KB
|
142 lines
# General Makefile for C-version of gp
# Change these installation directories to suit your needs
LIBDIR = c:\emx\lib\
BINDIR = c:\emx\bin\
INCLUDEDIR = c:\emx\include\
CC = gcc
# You can set CC=gcc instead. You can also (if you want to debug gp yourself)
# add the -g option in CFLAGS. However, remember that, while gcc accepts -g
# and -O simultaneously, cc usually does not.
CFLAGS = -O2 -c
OBJS=mp.o anal.o alglin1.o alglin2.o base.o arith1.o arith2.o bibli1.o bibli2.o elliptic.o es.o gen1.o gen2.o gen3.o init.o errmessa.o helpmess.o polarit1.o polarit2.o trans1.o trans2.o trans3.o version.o
# Be sure to "make clean" before doing a
# make on a different architecture
all: genpari.h gp
gp: gp.o $(OBJS) plot.o buch.o genpari.h
$(CC) -O -o gp.exe @objects
# $(CC) -O -o gp.exe gp.o $(OBJS) buch.o plot.o
genpari.h: genpario.h
-del genpari.h
copy genpario.h genpari.h
mp.o: mp.c
$(CC) $(CFLAGS) mp.c
gp.o: gp.c
$(CC) $(CFLAGS) gp.c
alglin1.o: alglin1.c
$(CC) $(CFLAGS) alglin1.c
alglin2.o: alglin2.c
$(CC) $(CFLAGS) alglin2.c
anal.o: anal.c
$(CC) $(CFLAGS) anal.c
arith1.o: arith1.c
$(CC) $(CFLAGS) arith1.c
arith2.o: arith2.c
$(CC) $(CFLAGS) arith2.c
base.o: base.c
$(CC) $(CFLAGS) base.c
buch.o: buch.c
$(CC) $(CFLAGS) buch.c
bibli1.o: bibli1.c
$(CC) $(CFLAGS) bibli1.c
bibli2.o: bibli2.c
$(CC) $(CFLAGS) bibli2.c
elliptic.o: elliptic.c
$(CC) $(CFLAGS) elliptic.c
es.o: es.c
$(CC) $(CFLAGS) es.c
gen1.o: gen1.c
$(CC) $(CFLAGS) gen1.c
gen2.o: gen2.c
$(CC) $(CFLAGS) gen2.c
gen3.o: gen3.c
$(CC) $(CFLAGS) gen3.c
init.o: init.c
$(CC) $(CFLAGS) init.c
errmessa.o: errmessa.c
$(CC) $(CFLAGS) errmessa.c
helpmess.o: helpmess.c
$(CC) $(CFLAGS) helpmess.c
plot.c: plot.nul
plot.nul:
copy plot.c plot.ori
copy plot.nul plot.c
# rm -f plot.c;ln -s plot.null plot.c
# if you are using XWindows, replace plot.null by plot.X in the two lines above
plot.o: plot.c
$(CC) $(CFLAGS) plot.c
dummy.o: dummy.c
$(CC) $(CFLAGS) dummy.c
polarit1.o: polarit1.c
$(CC) $(CFLAGS) polarit1.c
polarit2.o: polarit2.c
$(CC) $(CFLAGS) polarit2.c
trans1.o: trans1.c
$(CC) $(CFLAGS) trans1.c
trans2.o: trans2.c
$(CC) $(CFLAGS) trans2.c
trans3.o: trans3.c
$(CC) $(CFLAGS) trans3.c
version.o: versionp.c
$(CC) $(CFLAGS) -o version.o versionp.c
manual:
(cd tex;make manual)
install: dummy.o
copy /p genpari.h $(INCLUDEDIR)
copy /p gencom.h $(INCLUDEDIR)
copy /p genport.h $(INCLUDEDIR)
copy /p erreurs.h $(INCLUDEDIR)
ar r libpari.a $(OBJS) dummy.o
copy libpari.a $(LIBDIR)
ar s $(LIBDIR)/libpari.a
copy /p -s gp $(BINDIR)
# strip $(BINDIR)/gp
clean:
del *.o libpari.a gp genpari.h *.log *.dvi *.std *.idx *.toc;