# +----------------------------------------------------------------------+ # | Aubit 4gl Language Compiler Version $.0 lib makefile | # +----------------------------------------------------------------------+ # | 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.15 2009/12/14 20:31:24 mikeaubury Exp $ # ROOT =../../.. #All stuff common to more then one Aubit compiler make file is there: include ${ROOT}/incl/Makefile-common ## ================================================================== ## Source files ## ================================================================== #require XDR frunctions, part of Sun RPClib: CMODS_FORM_XDR =${ROOT}/common/dataio/form_x_xdr.c readforms.c formwrite2.c OBJS_FORM_XDR =${CMODS_FORM_XDR:.c=.o} ## ================================================================== ## Options ## ================================================================== #ifdef COMSPEC # ifneq "@HAVE_RPCLIB@" "0" # ALL +=dllFORM_XDR # endif #else ifneq "@HAVE_RPCLIB@" "0" ALL +=${PLUGINDIR}/libFORM_XDR${SO_EXT} endif #endif #This must NOT be += because it would place affitional parameters AFTER #existing parameters already in CFLAGS: we must not do this, because if #specific path is needed to RPClib, it MUST be BEFORE other potenitially #conflicting paths: CFLAGS :=-I.. @RPCLIB_INCLUDE@ @RPCLIB_LFLAGS@ -I${ROOT}/common/dataio ${CFLAGS} -I${ROOT}/common/dataio ## RPC type and XDR are not the same thing. RPC type represents Remote #Procedure Call in Aubit, that can be Sun RPC or XML-RPC (at the moment), #but regardless of that, XDR functions (also conatained in Sun RPC libraries) #are needed by forms and menus functionality, and without it user would not #ba able to compile or open forms and menus, since they compiled output #file format is outpudte in XDR format for portability: ifneq "${COMSPEC}" "" LINKLIBS =-L${LIBROOT} -l${AUBITLIBFULL} @RPCLIB_LFLAGS@ ${RPCLIB_NAME} endif ## ================================================================== ## Targets ## ================================================================== all: note ${ALL} @echo "Default targets (${ALL}) built successfully." note: @echo "Building: ${ALL}" ${PLUGINDIR}/libFORM_XDR${SO_EXT} : ${OBJS_FORM_XDR} ${LD} ${SO_LDFLAGS} ${RPCLIB_NAME} -o $@ $^ ${LINKLIBS} ## ================================================================== ## Windows 32 DLL Targets ## ================================================================== ## ================================================================== ## Sub Targets ## ================================================================== ci: $(CMODS) ci -l $^ ${ROOT}/common/dataio/form_x_xdr.c ${ROOT}/common/dataio/form_x.h: ${MAKE} -C ${ROOT}/common/dataio rpc ${ROOT}/common/dataio/form_x_xdr.o: ${MAKE} -C ${ROOT}/common/dataio form_x_xdr.o ## ================================================================== ## Dependencies ## ================================================================== ## ================================================================== ## Clean Targets ## ================================================================== clean : ${RM} $(OBJS_DEBUG) menu_x.h menu_x_xdr.c form_x_xdr.c form_x.h project.c \ aubit-config core *.out *.glb *.a \ *.o *.bak *.exe *.dll *.stackdump *.err *.base *.exp *.def \ ${PLUGINDIR}/libFORM_XDR${SO_EXT} ## ================================================================== ## Other Targets ## ================================================================== lclint: $(CMODS) -lclint -weak $(CFLAGS) $(CMODS) > lclint.log 2>&1 @echo "see lclint.log for results" #----------------------------------- EOF -------------------------------