1# $Header: /home/amb/CVS/cxref/query/Makefile.in,v 1.10 2010-10-19 18:18:28 amb Exp $ 2# 3# C Cross Referencing & Documentation tool. Version 1.6d. 4# 5# Query Program Makefile. 6# 7# Written by Andrew M. Bishop 8# 9# This file Copyright 1995-2012 Andrew M. Bishop 10# It may be distributed under the GNU Public License, version 2, or 11# any higher version. See section COPYING of the GNU Public license 12# for conditions under which this file may be redistributed. 13# 14 15# autoconf things 16 17srcdir=@srcdir@ 18VPATH=@srcdir@ 19 20# The installation locations 21 22prefix=@prefix@ 23exec_prefix=@exec_prefix@ 24datarootdir=@datarootdir@ 25bindir=$(DESTDIR)@bindir@ 26mandir=$(DESTDIR)@mandir@ 27 28# The installation program. 29 30INSTALL=@INSTALL@ 31INSTALL_PROGRAM=@INSTALL_PROGRAM@ 32INSTALL_SCRIPT=@INSTALL_SCRIPT@ 33INSTALL_DATA=@INSTALL_DATA@ 34 35# The C compiler and linker 36 37CC=@CC@ 38LD=@CC@ 39 40CFLAGS=@CFLAGS@ 41CPPFLAGS=@CPPFLAGS@ 42LDFLAGS=@LDFLAGS@ 43 44######## 45 46INCLUDE=-I@srcdir@/../src 47LIBRARY=@LIBS@ 48 49######## 50 51programs : cxref-query 52 53######## 54 55install : cxref-query 56 [ -d $(bindir) ] || $(INSTALL) -d $(bindir) 57 $(INSTALL_PROGRAM) cxref-query $(bindir) 58 [ -d $(mandir)/man1 ] || $(INSTALL) -d $(mandir)/man1 59 $(INSTALL_DATA) $(srcdir)/README.man $(mandir)/man1/cxref-query.1 60 61install-win32 : cxref-query 62 [ -d $(bindir) ] || $(INSTALL) -d $(bindir) 63 $(INSTALL) -m 755 cxref-query.exe $(bindir) 64 65######## 66 67clean : 68 -rm -f cxref-query core *.o *~ 69 70#### 71 72distclean : clean 73 -rm -f Makefile 74 75######## 76 77OBJ_FILES=query.o \ 78 input.o output.o \ 79 ../src/memory.o ../src/slist.o 80 81#### 82 83cxref-query : $(OBJ_FILES) 84 $(LD) $(LDFLAGS) $(OBJ_FILES) -o $@ $(LIBRARY) 85 86######## 87 88.SUFFIXES: 89.SUFFIXES: .c .o 90 91.c.o: 92 $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@ $(INCLUDE) 93 94query.o : query.c query.h ../src/cxref.h ../src/datatype.h ../src/memory.h 95input.o : input.c query.h ../src/cxref.h ../src/datatype.h ../src/memory.h 96output.o : output.c query.h ../src/cxref.h ../src/datatype.h ../src/memory.h 97 98../src/memory.o: ../src/memory.c ../src/memory.h 99 cd ../src && $(MAKE) memory.o 100 101../src/slist.o : ../src/slist.c ../src/cxref.h ../src/datatype.h ../src/memory.h 102 cd ../src && $(MAKE) slist.o 103 104######## 105