# @configure_input@ # # CVSID $Id: Makefile.in,v 1.5 2002/08/30 20:03:21 rpalmeida Exp $ # # freediag - Vehicle Diagnostic Utility # # # Copyright (C) 2001 Richard Almeida & Ibex Ltd (rpa@ibex.co.uk) # # This program is free software; you can redistribute it and/or modify # it under the terms of 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. # # 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 the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # CFLAGS+=@CFLAGS@ CPPFLAGS+=-DLINUX -I. @CPPFLAGS@ LDFLAGS+=@LDFLAGS@ LIBOBJS= diag_l0_se.o diag_l0_me.o diag_l0_vw.o diag_l0_br.o diag_l0_elm.o \ diag_l1.o \ diag_l2.o diag_l2_raw.o diag_l2_iso9141.o diag_l2_iso14230.o \ diag_l2_saej1850.o diag_l2_vag.o diag_l2_mb1.o \ diag_l3.o diag_l3_saej1979.o diag_l3_iso14230.o diag_l3_vag.o \ diag_os.o diag_general.o diag_dtc.o LIBSRCS= diag_l0_se.c diag_l0_me.c diag_l0_vw.c diag_l0_br.c diag_l0_elm.c \ diag_l1.c \ diag_l2.c diag_l2_raw.c diag_l2_iso9141.c diag_l2_iso14230.c \ diag_l2_saej1850.c diag_l2_vag.c diag_l2_mb1.c \ diag_l3.c diag_l3_saej1979.c diag_l3_iso14230.c diag_l3_vag.c \ diag_os.c diag_general.c diag_dtc.c HDRS= diag_err.h diag_iso14230.h diag_l1.h diag_l2.h \ diag_l3.h diag_l2_mb1.h SCANTOOLSRCS= scantool.c scantool_cli.c scantool_debug.c scantool_set.c \ scantool_test.c scantool_diag.c scantool_vag.c SCANTOOLOBJS= scantool.o scantool_cli.o scantool_debug.o scantool_set.o \ scantool_test.o scantool_diag.o scantool_vag.o TESTSRCS=diag_test.c TESTOBJS=diag_test.o all: depend libdiag.a scantool diag_test scantool: libdiag.a $(SCANTOOLOBJS) cc -o $@ $(SCANTOOLOBJS) libdiag.a @LIBS@ diag_test: libdiag.a $(TESTOBJS) cc -o $@ $(TESTOBJS) libdiag.a libdiag.a: $(LIBOBJS) ar cr libdiag.a $(LIBOBJS) clean: rm -f $(LIBOBJS) $(TESTOBJS) $(SCANTOOLOBJS) libdiag.a scantool diag_test clobber: make clean rm -f tags .depend config.log config.cache mkdep tags: $(SCANTOOLSRCS) $(TESTSRCS) $(MAINS) $(LIBSRCS) ctags $(SCANTOOLSRCS) $(TESTSRCS) $(HDRS) $(MAINS) $(LIBSRCS) .depend: mkdep $(SCANTOOLSRCS) $(TESTSRCS) $(LIBSRCS) ./mkdep $(CPPFLAGS) $(SCANTOOLSRCS) $(TESTSRCS) $(LIBSRCS) depend: .depend configure: configure.ac autoconf $< Makefile: Makefile.in config.status ./config.status config.status: configure ./config.status --recheck # Dependencies - Do not remove this line include .depend