# +----------------------------------------------------------------------+ # | Aubit 4gl Language Compiler Version $.0 lib/libtui 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.8 2009/12/14 20:52:32 mikeaubury Exp $ # ROOT=../../.. #All stuff common to more then one Aubit compiler make file is there: include ${ROOT}/incl/Makefile-common ## ================================================================== ## Options ## ================================================================== CFLAGS +=-I.. #ifdef COMSPEC # ALL +=dlllibUI_CONSOLE #else ALL +=${PLUGINDIR}/libUI_CONSOLE${SO_EXT} #endif ifeq "${NON_PEDANTIC_OK}" "1" CFLAGS_NO_PEDANTIC =$(CFLAGS:%-pedantic=%) else CFLAGS_NO_PEDANTIC =${CFLAGS} endif ifneq "${COMSPEC}" "" LINKLIBS =-L${LIBROOT} -l${AUBITLIBFULL} endif ## ================================================================== ## Source files ## ================================================================== ALLOBJ_CONSOLE=console.o ## ================================================================== ## Targets ## ================================================================== all : ${ALL} @echo "Default targets (${ALL}) successfully compiled." ${PLUGINDIR}/libUI_CONSOLE${SO_EXT}: ${ALLOBJ_CONSOLE} ${LD} ${SO_LDFLAGS} -o $@ ${ALLOBJ_CONSOLE} ${LINKLIBS} ifeq "${SO_EXT}" ".dll" ${MV} TMP${SOEXP_EXT} $@.a endif ## ================================================================== ## Windows Targets ## ================================================================== #.PHONY : dlllibUI_CONSOLE #dlllibUI_CONSOLE: ${ALLOBJ_CONSOLE} # ${MAKE} libUI_CONSOLE.dll DLLOBJS="$^" DLL_LDLIBS="${RPCLIB_NAME} ${AUBIT_LIB}" DLL_LDFLAGS="-L${LIBROOT} " # -lPDF_NOPDF # ${CP} libUI_CONSOLE.dll ${LIBROOT} # ${CP} libUI_CONSOLE${DLL_EXPORTLIB_EXT} ${LIBROOT} ## ================================================================== ## Dependencies ## ================================================================== console.o: #${ROOT}/compilers/fcompile/form_x.h ## ================================================================== ## Sub Targets ## ================================================================== #${ROOT}/compilers/fcompile/form_x.h: #${MAKE} -C ${ROOT}/compilers/fcompile rpc #invalid lvalue in assignment console.o: console.c ${CC} ${CFLAGS_NO_PEDANTIC} -c -o $@ $*.c ## ================================================================== ## Clean Targets ## ================================================================== clean: ${RM} *.o ${PLUGINDIR}/libUI_CONSOLE${SO_EXT} *.bak *.ao *.err *.glb *.dll *.a *.def *.glb *.ao \ debug.out *.err core gmon.out #------------------------------- EOF --------------------------------