Modified the rlm_sql driver Makefiles to use the new autoconf values. Removed rlm_sql...
[freeradius.git] / src / modules / rlm_sql / drivers / rlm_sql_iodbc / Makefile
index db7c762..92f1909 100644 (file)
@@ -1,23 +1,18 @@
-# must be first
-include config.mak
+include ../../../../../Make.inc
 
 TARGET         = rlm_sql_iodbc
 SRCS           = sql_iodbc.c
 HEADERS                = sql_iodbc.h
-RLM_SQL_CFLAGS =
-RLM_SQL_LIBS   =
+RLM_SQL_CFLAGS = $(SQL_ODBC_INCLUDE)
+RLM_SQL_LIBS   = $(SQL_ODBC_LIBS)
 
 $(DYNAMIC_OBJS): $(HEADERS) 
 
 ###
 # over-ride the previous assignment if we're not building anything
-ifeq ($(LIBIODBC),)
+ifeq ($(SQL_ODBC_LIBS),)
 TARGET        =
 endif
 
 include ../rules.mak
 
-# must be last
-config.mak:
-       @../checkconfig -l IODBC odbc_init -liodbc -L/usr/local/iodbc/lib
-