# +----------------------------------------------------------------------+ # | Aubit 4gl Language Compiler Version $.0 | # +----------------------------------------------------------------------+ # | 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.1 2007/12/05 15:39:41 mikeaubury Exp $ # ROOT =../.. #All stuff common to more then one Aubit compiler make file is there: include ${ROOT}/incl/Makefile-common ## ================================================================== ## Settings ## ================================================================== .SUFFIXES : .SUFFIXES : .4ge .a .o .4gl .ec .c .frm .per .arc .ace .exe .msg .SUFFIXES: .4go .src .hlp .SUFFIXES: .4ae .ao #if not .IGNORE then test can't be used #.IGNORE : INFORMIXBIN =$(INFORMIXDIR)/bin C4GL = $(INFORMIXBIN)/c4gl CFORM = form4gl CFLAGS = -O LIBS = MAKEFLAGS ="" AMAKE =${SH} ${ROOT}/bin/amake ## ================================================================== ## Source and object files ## ================================================================== FILES.4gl =coxxc04.4gl coxxq01.4gl coxxx03.4gl misql.4gl FILES.per =misql.per coxxq01a.per coxxq01b.per coxxq01c.per \ coxxq01d.per coxxq01e.per coxxq01f.per coxxq01g.per \ coxxq01h.per coxxq01i.per coxxq01j.per FILES.ao =${FILES.4gl:.4gl=.ao} FILES.afr =${FILES.per:.per=.afr} BINS4GE =${FILES.4gl:.4gl=.o} BINS4GI =${FILES.4gl:.4gl=.4go} FORMS.frm =${FILES.per:.per=.frm} ## ================================================================== ## Targets ## ================================================================== all: @echo "specify target: misql.4ge misql.4gi misql.4ae or use.amake" #Informix-4gl C-code misql.4ge: $(BINS4GE) ${FORMS.frm} $(C4GL) $(CFLAGS) -o $@ $(BINS4GE) #Informix-4gl P-code misql.4gi: $(BINS4GI) ${FORMS.frm} cat $(BINS4GI) > $@ #Informix-4gl forms: forms: ${FORMS.frm} misql.4ae: ${FILES.ao} ${FILES.afr} aubit ${FGLPCEXEC} ${FILES.ao} -o $@ use.amake: ${AMAKE} misql.mk misql.4ae.run: misql.4ae install: ${CP} misql.4ae $(INSTALL_DIR)/${BIN_PATH}/adbaccess chmod a+x $(INSTALL_DIR)/${BIN_PATH}/adbaccess chmod a+r ${FILES.per:.per=.afr.dat} ${CP} ${FILES.per:.per=.afr.dat} $(INSTALL_DIR)/${INCL_PATH} @echo "Installed to ${INCL_PATH}" ## ================================================================== ## Clean ## ================================================================== clean: rm -f *.ao *.h *.c *.glb *.4ae *.frm *.4go *.4ge *.4gi *.o *.bak *.err \ *.afr *.afr.xml *.frm.xml *.ec *.warn ## ================================================================== ## Aubit ## ================================================================== .4gl.ao: aubit ${FGLPCEXEC} $< -c -o $@ .per.afr: fcompile $< %.afr: fcompile $*.per ## ================================================================== ## Informix targets Rules ## ================================================================== .4gl.o: cd $(