Indentation fix, cleanup.
[AROS.git] / tools / cxref / query / Makefile.in
blob7f065bff07596c6a2f8cf9dbcc33808c95f59d42
1 # $Header$
3 # C Cross Referencing & Documentation tool. Version 1.5d.
5 # Query Program Makefile.
7 # Written by Andrew M. Bishop
9 # This file Copyright 1995,96,99,2000,01,02 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.
15 # autoconf things
17 srcdir=@srcdir@
18 VPATH=@srcdir@
20 # The installation locations
22 prefix=@prefix@
23 exec_prefix=@exec_prefix@
24 bindir=$(DESTDIR)@bindir@
25 mandir=$(DESTDIR)@mandir@
27 # The installation program.
29 INSTALL=@INSTALL@
31 # The C compiler and linker
33 CC=@CC@
34 LD=@CC@
36 CFLAGS=@CFLAGS@
37 LDFLAGS=@LDFLAGS@
39 ########
41 INCLUDE=
42 LIBRARY=@LIBS@
44 ########
46 programs : cxref-query
48 ########
50 OBJ_FILES=query.o \
51 input.o output.o \
52 ../memory.o ../slist.o
54 ####
56 cxref-query : $(OBJ_FILES)
57 $(LD) $(LDFLAGS) $(OBJ_FILES) -o $@ $(LIBRARY)
59 ########
61 install : cxref-query
62 $(INSTALL) -m 755 cxref-query $(bindir)
63 $(INSTALL) -m 644 $(srcdir)/README.man $(mandir)/man1/cxref-query.1
65 install-win32 : cxref-query
66 $(INSTALL) -m 755 cxref-query.exe $(bindir)
68 ########
70 clean :
71 -rm -f cxref-query core *.o *~
73 ####
75 distclean : clean
76 -rm -f Makefile
78 ########
80 .SUFFIXES:
81 .SUFFIXES: .c .o
83 .c.o:
84 $(CC) -c $(CFLAGS) $< -o $@ $(INCLUDE)
86 query.o : query.c query.h ../cxref.h ../datatype.h ../memory.h
87 input.o : input.c query.h ../cxref.h ../datatype.h ../memory.h
88 output.o : output.c query.h ../cxref.h ../datatype.h ../memory.h
90 ../memory.o: ../memory.c ../memory.h
91 cd .. && $(MAKE) memory.o
93 ../slist.o : ../slist.c ../cxref.h ../datatype.h ../memory.h
94 cd .. && $(MAKE) slist.o
96 ########