11 CFLAGS = -O $(PIC) $(ANSI) -I$(INCDIR) -D$(DLDAPI) $(CFLAGSX)\
12 -DVERSION=\"$(VERSION)$(EXTVER)\"
14 # ODBC adminiatator is statically linked on BSDI 3.1
15 # On this one can comment the following line:
17 ODBCDM = $(ODBC_LIBPATH)/$(OUTFILE).$(DLSUFFIX)
19 OBJS = dlf.o dlproc.o herr.o henv.o hdbc.o hstmt.o connect.o prepare.o\
20 execute.o result.o fetch.o info.o catalog.o misc.o itrace.o $(OBJX)
22 all: $(OBJS) $(ODBCDM) $(ODBC_LIBPATH)/lib$(OUTFILE).a
23 @rm -f $(ODBC_INCLUDE)/isql.h
24 @rm -f $(ODBC_INCLUDE)/isqlext.h
25 @rm -f $(ODBC_INCLUDE)/odbc_types.h
26 @rm -f $(ODBC_INCLUDE)/odbc_funcs.h
27 cp isql.h $(ODBC_INCLUDE)/
28 cp isqlext.h $(ODBC_INCLUDE)/
29 cp odbc_types.h $(ODBC_INCLUDE)/
30 cp odbc_funcs.h $(ODBC_INCLUDE)/
32 @echo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
34 @echo Don\'t forget tu update $(ODBC_LIBPATH)/iodbc.ini with your conf
36 @echo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
47 $(CC) $(CFLAGS) -DFIX_INI_FILE -DDIR_INI_FILE=\"$(ODBC_LIBPATH)\" -c $<
49 $(ODBC_LIBPATH)/lib$(OUTFILE).a: $(OBJS)
50 $(AR) $(ODBC_LIBPATH)/lib$(OUTFILE).a $(OBJS)
51 $(RANLIB) $(ODBC_LIBPATH)/lib$(OUTFILE).a
54 @echo "Generating iODBC driver manager -->" $(ODBCDM)
56 $(LD) $(LDFLAGS) -L$(ODBC_LIBPATH) $(OBJS) -o $(ODBCDM) $(LIBS)
57 if [ ! -f $(ODBC_LIBPATH)/iodbc.ini ]; then cp iodbc.$(OS) $(ODBC_LIBPATH)/iodbc.ini; fi