Files in this directory are obsolete; libLEX_C is now created from files in lib/liblex/lex_ec This directory and all files should be removed from CVS # +----------------------------------------------------------------------+ # | Aubit 4gl Language Compiler Version $.0 lib/liblex/lex_c 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.18 2004/09/28 09:49:18 afalout Exp $ # ROOT =../../.. LIBROOT =../.. #All stuff common to more then one Aubit compiler make file is there: include ${ROOT}/incl/Makefile-common ## ================================================================== ## Source files ## ================================================================== #FIXME: does compile_c_gtk.o belong here, or in 4GLCAOBJ ? 4GLCOBJ_C =compile_c.o compile_c_gtk.o init.o bad_idents.o ## ================================================================== ## Options ## ================================================================== ifeq "${YACC}" "no" CFLAGS +=-I${ROOT}/tools/no_yacc/cygwin/compilers/4glc KW_H =${ROOT}/tools/no_yacc/cygwin/compilers/4glc/rules/generated/kw.h Y_TAB_H =${ROOT}/tools/no_yacc/cygwin/compilers/4glc/rules/generated/y.tab.h else KW_H =${ROOT}/compilers/4glc/rules/generated/kw.h Y_TAB_H =${ROOT}/compilers/4glc/rules/generated/y.tab.h endif ifeq "${GCC_MINGW}" "yes" CFLAGS +=-I${ROOT}/tools/getopt endif CFLAGS +=-I.. -I. -I${LIBROOT}/libincl -I${ROOT}/compilers/fcompile -I${ROOT}/compilers/4glc/rules -I${ROOT}/compilers/4glc ifneq "${COMSPEC}" "" #LINKLIBS +=-L${ROOT}/compilers/4glc -lexportlib4glcomp #LINKDEPS =${ROOT}/compilers/4glc/libexportlib4glcomp.dll.a #LINKLIBS +=${ROOT}/compilers/4glc/libexportlib4glcomp.def LINKDEPS =${LIBROOT}/lib4glc${SO_EXT} LINKLIBS +=-L${LIBROOT} -laubit4gl -l4glc endif ALL +=${LIBROOT}/libLEX_C${SO_EXT} ## ================================================================== ## Targets ## ================================================================== ALL: ${ALL} ${LIBROOT}/libLEX_C${SO_EXT} : ${4GLCOBJ_C} ${LINKDEPS} ${LD} ${SO_LDFLAGS} -o $@ ${4GLCOBJ_C} ${LINKLIBS} ifeq "${SO_EXT}" ".dll" ${MV} TMP${SOEXP_EXT} $@.a endif ## ================================================================== ## Sub Targets ## ================================================================== #../fcompile/form_x.h: # make -C ../fcompile rpc #${LINKDEPS}: # ${MAKE} -C ${ROOT}/compilers/4glc libexportlib4glcomp.dll.a ${LIBROOT}/lib4glc${SO_EXT}: ${MAKE} -C ${ROOT}/compilers/4glc lib4glc${SO_EXT} ## ================================================================== ## Dependencies ## ================================================================== #rules/generated/kw.c: rules.t #rules/generated/single_words.rule: rules.t #rules/generated/y.tab.c: rules.t #rules/generated/states.c: rules.t #mod.o: mod.c ${Y_TAB_C} #rules/generated/y.tab.o: ../fcompile/form_x.h compile_c.o: ${KW_H} ${Y_TAB_H} ${KW_H} ${Y_TAB_H}: ${MAKE} -C ${ROOT}/compilers/4glc rules/generated/y.tab.c ## ================================================================== ## Clean Targets ## ================================================================== clean: ${RM} *${SO_EXT} *.o *.err 4glc 4glc-noodbc *.a *.exe *.bak .\#* 4glp \ *.log *.dll *.dll.a #--------------------------------- EOF -----------------------------