Subject makefile
Author Nick Upson
My install problems seem to be almost over, I just need to get my udf's
working. I had (fb 1.0) been using the interbase makefile but that doesn't
work anymore, I get:

gcc udflocal.c -fPIC -c -w -I/opt/firebird/include udflocal.so
gcc: udflocal.so: No such file or directory
make: *** [udflocal.so] Error 1

here is the makefile I'm using to compile the udf & esqlc programs (which are
ok)

IBASE= /opt/firebird

# ---------------------------------------------------------------------
# General InterBase Defines for Linux
# ---------------------------------------------------------------------
GPRE= $(IBASE)/bin/gpre -c -n
GPRE_M= $(IBASE)/bin/gpre -c -n -m
ISQL= $(IBASE)/bin/isql
#DB= employee.gdb
DB= /bripack/data/live.gdb

# ---------------------------------------------------------------------
# General Compiler and linker Defines for Linux
# ---------------------------------------------------------------------
CC= gcc
LINK= gcc
LIB_LINK= ld
CFLAGS= -c -w -I$(IBASE)/include
LIB_CFLAGS= -fPIC $(CFLAGS)
LINK_FLAGS= -lgds -ldl -lcrypt
LIB_LINK_FLAGS= -shared -lgds
RM= rm -f

SUFFIXES: .o .c .e

e.c:
$(GPRE) $< -d $(DB)

c.o:
$(CC) $< $(CFLAGS) $@

o:
$(LINK) -o $@ $< $(LINK_FLAGS)

all: udflocal

udflocal.so: udflocal.c example.h
$(CC) $< $(LIB_CFLAGS) $@

udflocal: udflocal.so
$(LIB_LINK) $@.o -o $@ $(LIB_LINK_FLAGS)

--
Nick
-----We Solve your Computer Problems---
Founder & Listowner of the Prolifics User Group
Panther, Ingres, UNIX, Interbase, Firebird - Available Shortly