# ---------------------------------------------------------------------
# InterBase Installation Directory
#
# CHANGE this definition to point to your InterBase installation directory
# ---------------------------------------------------------------------


# ---------------------------------------------------------------------
# General Compiler and linker Defines for Linux
# ---------------------------------------------------------------------
CC=					gcc
LINK=				gcc
CFLAGS=			-c -w -I/opt/cprocsp/include/pki -I/opt/cprocsp/include/cpcsp
LIB_CFLAGS=	-fPIC $(CFLAGS)
LINK_FLAGS=	-lc -lm -lpthread -lcrypt -lcurses -lxades -lcades -lades-core -L/opt/cprocsp/lib/amd64
RM=					rm -f


# ---------------------------------------------------------------------
# Generic Compilation Rules 
#
# Do NOT change anything below this point.
# ---------------------------------------------------------------------
.SUFFIXES: .c .o .e .x

.c.o:
	$(CC) $< $(LIB_CFLAGS)

.o.x:
	$(LINK) -o cm2xmlv.x cm2xmlv.o $(LINK_FLAGS)
	rm -f *.o
	mv cm2xmlv.x cm2xmlv
	chmod a+x cm2xmlv

cm2xmlv.x: cm2xmlv.o
