minor fix for use of $(INSTALL_HEADERS) instead of INSTALL_HEADERS
[libfirm] / ir / ident / Makefile
1 # Hey, emacs, this is a -*- makefile -*-
2 #
3 # Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
4 # All rights reserved.
5 # Author: Goetz Lindenmaier
6 #
7 # Makefile for ident -- ??
8
9 CXX         = gcc
10 CFLAGS      = -pipe -Wall # -ansi -pedantic
11 CXXFLAGS    = # -g
12 COPTFLAGS   = -O3
13 LDFLAGS     =
14 DEPENDFLAGS = -M
15 LIBPATH     =
16 LIBS        =
17 X_LIBS      =
18 INCLUDES    = -I../adt -I../common -I../debug -I../ident
19 X_INCLUDES  =
20
21 SHELL       = /bin/sh
22 MAKE        = /usr/bin/make
23
24 DISTRIBMEMBERS = ident.m
25 MEMBERS  = $(DISTRIBMEMBERS)
26
27 CFILES = $(MEMBERS:.m=.c)
28
29 HFILES = $(MEMBERS:.m=.h)
30 HFILES += ident_t.h
31 HFILES += array.h cookies.h debug.h host.h misc.h set.h tune.h xprintf.h \
32           xp_help.h
33
34 DISTRIB = $(DISTRIBMEMBERS:.m=.h)
35
36 OFILES = $(MEMBERS:%.m=../objects/%.o)
37
38 DFILES = $(MEMBERS:.m=.d)
39
40 TARGET = all
41
42 .PHONY: default all clean realclean install depend
43 .SUFFIXES: .d .h .c .o
44 .DEFAULT: $(TARGET)
45 .SILENT: $(DFILES) clean  # hides output
46
47 $(TARGET):      $(DFILES) $(OFILES)
48
49 %.d:    %.c
50         $(SHELL) -ec '$(CXX) $(DEPENDFLAGS) $(INCLUDES) $(X_INCLUDES) $< | sed '\''s/\($*\)\.o[ :]*/\.\.\/objects\/\1.o $@ : /g'\'' > $@'
51
52
53 ../objects/%.o:    %.c
54         $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
55
56 lib:
57         cp $(DISTRIB) ../../include
58
59 clean:
60         rm -f $(OFILES) $(DFILES)
61
62 realclean:      clean
63         rm -f $(TARGET) *.flc TAGS \#*
64         rm -rf auto/
65
66 -include $(DFILES)