posted 11-01- 04:50 PM
Patchy,Here is a crude Makefile to build the plugins under Linux, you need ac_plugin.h in the directory and a symbolic link "ofiles" which points to the ac3d object files directory
(ln -s /path/to/ac3d/ofiles ofiles).
Some of the plugins have DOS style paths in them where they call tcl routines, the backslashes need to be changed for forward slashes.
CC=gcc
all: ol_import.p ol_export.p lod_import.p lod_export.p switchin_2.p dof.p rot
ate.p swap.p add_model.p add_lod.p verts.p
ol_import.p: ol_import.o matrix.o EulerAngles.o
gcc -shared -o ol_import.p ol_import.o matrix.o EulerAngles.o ofiles/*.o
lod_import.p: lod_import.o matrix.o EulerAngles.o
gcc -shared -o lod_import.p lod_import.o matrix.o EulerAngles.o ofiles/*
.o
ol_export.p: ol_export.o matrix.o EulerAngles.o
gcc -shared -o ol_export.p ol_export.o matrix.o EulerAngles.o ofiles/*.o
lod_export.p: lod_export.o matrix.o EulerAngles.o
gcc -shared -o lod_export.p lod_export.o matrix.o EulerAngles.o ofiles/*
.o
switchin_2.p: switchin_2.o
gcc -shared -o switchin_2.p switchin_2.o ofiles/*.o
dof.p: dof.o matrix.o EulerAngles.o
gcc -shared -o dof.p dof.o matrix.o EulerAngles.o ofiles/*.o
rotate.p: rotate.o matrix.o EulerAngles.o
gcc -shared -o rotate.p rotate.o matrix.o EulerAngles.o ofiles/*.o
swap.p: swap.o
gcc -shared -o swap.p swap.o ofiles/*.o
add_lod.p: add_lod.o
gcc -shared -o add_lod.p add_lod.o ofiles/*.o
add_model.p: add_model.o
gcc -shared -o add_model.p add_model.o ofiles/*.o
verts.p: verts.o matrix.o EulerAngles.o
gcc -shared -o verts.p verts.o matrix.o EulerAngles.o ofiles/*.o
clean:
rm *.p
rm *.o
Hippie