# +----------------------------------------------------------------------+ # | Aubit 4gl Language Compiler Version $.0 | # +----------------------------------------------------------------------+ # | Copyright (c) 2000-1 Aubit Development Team (See Credits file) | # +----------------------------------------------------------------------+ # | This program is free software; you can redistribute it and/or modify | # | it under the terms of one of the following licenses: | # | | # | A) the GNU General Public License as published by the Free Software | # | Foundation; either version 2 of the License, or (at your option) | # | any later version. | # | | # | B) the Aubit License as published by the Aubit Development Team and | # | included in the distribution in the file: LICENSE | # | | # | This program is distributed in the hope that it will be useful, | # | but WITHOUT ANY WARRANTY; without even the implied warranty of | # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # | GNU General Public License for more details. | # | | # | You should have received a copy of both licenses referred to here. | # | If you did not, or have any questions about Aubit licensing, please | # | contact afalout@ihug.co.nz | # +----------------------------------------------------------------------+ # # $Id: Makefile.in,v 1.18 2008/12/11 12:30:54 mikeaubury Exp $ # ROOT =../../.. #All stuff common to more then one Aubit compiler make file is there: include ../../../incl/Makefile-common ## ================================================================== ## Options ## ================================================================== ifneq "${COMSPEC}" "" PGSQL_INCLUDE=$(shell echo "@PGSQL_INCLUDE@" | tr '\\' '/') PGSQL_LFLAGS=$(shell echo "@PGSQL_LFLAGS@" | tr '\\' '/') LINKLIBS=-l${AUBITLIBFULL} -L${LIBROOT} else PGSQL_INCLUDE=@PGSQL_INCLUDE@ PGSQL_LFLAGS=@PGSQL_LFLAGS@ endif PGSQL_LIBS=@PGSQL_LIBS@ CPPSRC =ConnectionException.cpp PreparedStatement.cpp \ postgresql.cpp PgConnection.cpp PgDriver.cpp SRC =simple.c OBJS =${SRC:.c=.o} CPPOBJS =${CPPSRC:.cpp=.o} CFLAGS +=-I.. ${PGSQL_INCLUDE} -I${POSTGRESDIR}/include CXXFLAGS=$(CFLAGS) ALL =${PLUGINDIR}/libSQL_pg${SO_EXT} ${PLUGINDIR}/libSQL_pg8${SO_EXT} ## ================================================================== ## Targets ## ================================================================== ALL: ${ALL} #This "simple" PG plug-in with limited functionality was written by Mike libSQL_pg${SO_EXT}: ${PLUGINDIR}/libSQL_pg${SO_EXT} ${PLUGINDIR}/libSQL_pg${SO_EXT}: $(OBJS) ${LD} ${SO_LDFLAGS} $^ ${PGSQL_LFLAGS} ${PGSQL_LIBS} -o $@ ${LINKLIBS} libSQL_pg8${SO_EXT}: ${PLUGINDIR}/libSQL_pg8${SO_EXT} ${PLUGINDIR}/libSQL_pg8${SO_EXT}: pg8.o ${LD} ${SO_LDFLAGS} $^ ${PGSQL_LFLAGS} ${PGSQL_LIBS} -o $@ ${LINKLIBS} # localized version for MJA # libSQL_pg8l${SO_EXT}: ${PLUGINDIR}/libSQL_pg8l${SO_EXT} ${PLUGINDIR}/libSQL_pg8l${SO_EXT}: pg8.c LD_RUN_PATH=/home/postgres8/pg8/lib ${CC} ${PIC} ${SO_LDFLAGS} -I. -I.. -I/home/postgres8/pg8/include -I$(AUBITDIR)/incl $^ -o $@ -L/home/postgres8/pg8/lib -lpq libSQL_pg8ls${SO_EXT}: ${PLUGINDIR}/libSQL_pg8ls${SO_EXT} ${PLUGINDIR}/libSQL_pg8ls${SO_EXT}: pg8.c LD_RUN_PATH=/home/postgres8/pg8/lib ${CC} ${PIC} ${SO_LDFLAGS} -I. -I.. -I/home/postgres8/pg8/include -I$(AUBITDIR)/incl $^ -o $@ /home/postgres8/pg8/lib/libpq.a #This "real" fully functional driver written in C++ was never #finished by Sergio... :-( ${PLUGINDIR}/libSQL_pgDEVEL${SO_EXT}: $(CPPOBJS) ${LD} ${SO_LDFLAGS} $^ ${PGSQL_LFLAGS} ${PGSQL_LIBS} -o $@ show: @echo "LD=${LD}" @echo "SO_LDFLAGS=${SO_LDFLAGS}" @echo "PGSQL_LFLAGS=${PGSQL_LFLAGS}" @echo "PGSQL_LIBS=${PGSQL_LIBS}" @echo "CFLAGS=${CFLAGS}" ## ================================================================== ## Clean ## ================================================================== clean: ${RM} *.o ${PLUGINDIR}/libSQL_pgDEVEL${SO_EXT} ${PLUGINDIR}/libSQL_pg${SO_EXT} *.bak *.base *.dll *.def *.exp *.a ${ALL} fix_pgserial: fix_serial.4gl 4glpc -t C -o fix_pgserial fix_serial.4gl #-------------------------------- EOF -------------------------------