# +----------------------------------------------------------------------+ # | 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.10 2006/07/27 16:03:18 mikeaubury Exp $ # ROOT=../../.. #All stuff common to more then one Aubit compiler make file is there: include ${ROOT}/incl/Makefile-common ## ================================================================== ## Source files ## ================================================================== CMODS_MENU_NOMENU =menu_nomenu.c OBJS_MENU_NOMENU =${CMODS_MENU_NOMENU:.c=.o} ## ================================================================== ## Options ## ================================================================== CFLAGS+=-I${ROOT}/compilers/fcompile ifneq "${COMSPEC}" "" LINKLIBS =-L${LIBROOT} -l${AUBITLIBFULL} endif ALL=${PLUGINDIR}/libMENU_NOMENU${SO_EXT} CFLAGS :=-I.. -I${ROOT}/compilers/menus ${CFLAGS} -I${ROOT}/common/dataio ## ================================================================== ## Targets ## ================================================================== all: ${ALL} @echo "Default targets (${ALL}) built successfully." ${PLUGINDIR}/libMENU_NOMENU${SO_EXT} : ${OBJS_MENU_NOMENU} ${LD} ${SO_LDFLAGS} -o $@ $^ ${LINKLIBS} #ifeq "${SO_EXT}" ".dll" # ${MV} TMP${SOEXP_EXT} $@.a #endif ## ================================================================== ## Windows 32 DLL Targets ## ================================================================== #.PHONY : dllMENU_NOMENU #dllMENU_NOMENU : ${CMODS_MENU_NOMENU} # ${MAKE} libMENU_NOMENU.dll DLLOBJS="$^" # ${CP} libMENU_NOMENU.dll ${LIBROOT} ## ================================================================== ## Sub Targets ## ================================================================== ci: $(CMODS) ci -l $^ ## ================================================================== ## Dependencies ## ================================================================== #${ROOT}/compilers/menus/menu_x_xdr.o: ${ROOT}/compilers/menus/menu_x.h #error.c : generated/tmperrs.h #array.o: array.c ${ROOT}/compilers/fcompile/form_x_xdr.c #builtin.c: ${ROOT}/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 ${PLUGINDIR}/libMENU_NOMENU${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 -------------------------------