# +----------------------------------------------------------------------+ # | 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.9 2009/12/14 20:52:14 mikeaubury Exp $ # ROOT =../../.. #All stuff common to more then one Aubit compiler make file is there: include ${ROOT}/incl/Makefile-common ## ================================================================== ## Source files ## ================================================================== #CMODS_PROJECT =project.c #require XDR frunctions, part of Sun RPClib: #CMODS_FORM_XDR =${ROOT}/compilers/fcompile/form_x_xdr.c readforms.c formwrite2.c CMODS_FORM_NOFORM =form_noform.c CMODS =${CMODSNOSQL} ${CMODS_DLSQL} OBJS =${CMODS:.c=.o} ${CMODS_PROJECT:.c=.o} OBJS_FORM_NOFORM =${CMODS_FORM_NOFORM:.c=.o} 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_NOFORM${SO_EXT} # endif #endif ifneq "${COMSPEC}" "" LINKLIBS =-L${LIBROOT} -l${AUBITLIBFULL} 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}/compilers/fcompile ${CFLAGS} ## 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: ## ================================================================== ## Targets ## ================================================================== ${PLUGINDIR}/libFORM_NOFORM${SO_EXT} : ${OBJS_FORM_NOFORM} ${LD} ${SO_LDFLAGS} -o $@ $^ ${LINKLIBS} ifeq "${SO_EXT}" ".dll" ${MV} TMP${SOEXP_EXT} $@.a endif ## ================================================================== ## Windows 32 DLL Targets ## ================================================================== #.PHONY : dllFORM_NOFORM #dllFORM_NOFORM : ${CMODS_FORM_NOFORM} # ${MAKE} libFORM_NOFORM.dll DLLOBJS="$^" # ${CP} libFORM_NOFORM.dll ${LIBROOT} ## ================================================================== ## 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 ## ================================================================== ## Dependencies ## ================================================================== error.c : generated/tmperrs.h #array.o: array.c ../compilers/fcompile/form_x_xdr.c #builtin.c: ../compilers/fcompile/form_x.h ## ================================================================== ## Clean Targets ## ================================================================== clean : ${RM} $(OBJS) $(OBJS_DEBUG) menu_x.h menu_x_xdr.c form_x_xdr.c form_x.h \ project.c aubit-config core \ *.out *.glb *${SO_EXT} *.a *.o *.bak *.exe *.dll *.stackdump *.err \ *.base *.exp *.def ## ================================================================== ## Other Targets ## ================================================================== lclint: $(CMODS) -lclint -weak $(CFLAGS) $(CMODS) > lclint.log 2>&1 @echo "see lclint.log for results" #----------------------------------- EOF -------------------------------