1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
# makefile for CirclePack on Linux
# Compile on a Linux system
# choices:
# compiler to use? cc or gcc
# debug level -g -ggdb (for following into library routines)
# May need -DSUNOS41 flag for debugging info
# include files for cp_remote.c need
# sys/filio.h for FIONREAD definition.
# set LINUX compiler flag for cp_remote.c
#
CC=egcc
DEBUG= -g
#DEBUG= -ggdb
INCLUDES = -I/usr/openwin/include -I/usr/X11R6/include
LIBPATH = -L/usr/openwin/lib -L/usr/X11R6/lib -L/usr/lib
XOPTIONS= ${LIBPATH} -lxview -lolgx -lX11 -lm
CFLAGS = ${INCLUDES} ${DEBUG}
CirclePackOBJS = cp_main.o cp_action.o cp_cmd.o cp_comb.o cp_comps.o \
cp_format.o cp_geom.o cp_io.o cp_remote.o cp_repack.o cp_screen.o \
cp_special.o cp_string.o cp_util.o
MathOBJS = hyp_math.o eucl_math.o sph_math.o complex_math.o
remake:
/bin/rm ${MathOBJS} ${CirclePackOBJS}
circlepack: ${CirclePackOBJS} ${MathOBJS}
$(CC) -o circlepack -DLINUX ${CirclePackOBJS} ${MathOBJS} $(XOPTIONS)
TestPack: ${CirclePackOBJS} ${MathOBJS}
$(CC) -o TestPack $(DEBUG) -DSUNOS41 -DLINUX ${CirclePackOBJS} \
${MathOBJS} $(XOPTIONS)
cp_main.o cp_action.o cp_cmd.o cp_comb.o cp_comps.o \
cp_format.o cp_geom.o cp_io.o cp_remote.o cp_repack.o cp_screen.o \
cp_special.o cp_string.o: cp_head.h
Repack.o: cp_remote_library.o
Repack: cp_remote_library.o Repack.o ${MathOBJS}
$(CC) cp_remote_library.o Repack.o -o rp \
${LIBPATH} ${INCLUDES} ${MathOBJS} ${DEBUG} -lm
DP: cp_remote_library.o DesPack.o ${MathOBJS}
$(CC) cp_remote_library.o DesPack.o -o DP\
${LIBPATH} ${INCLUDES} ${MathOBJS} ${DEBUG} -lm
# ---------------- Static versions Linux ------------
# LINUX
CP-static-linux: ${CirclePackOBJS} ${MathOBJS}
$(CC) -o CP-static-linux -DSUNOS41 -DLINUX -static \
${CirclePackOBJS} ${MathOBJS} $(XOPTIONS)
|