*** empty log message ***
[libfirm] / ir / tv / 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 tv -- constant table and machine arithmetic
8 CXX         = gcc
9 CFLAGS      = -pipe -Wall # -ansi -pedantic
10 CXXFLAGS    = # -g
11 COPTFLAGS   = -O3
12 LDFLAGS     =
13 DEPENDFLAGS = -M
14 LIBPATH     =
15 LIBS        =
16 X_LIBS      =
17 INCLUDES    = -I../adt -I../common -I../debug -I../ident -I../include \
18               -I../ir -I../tr -I../tv
19 X_INCLUDES  =
20
21 SHELL       = /bin/sh
22 MAKE        = /usr/bin/make
23
24 DISTRIBMEMBERS   = tv.m
25 MEMBERS  =  $(DISTRIBMEMBERS)
26
27 CFILES = $(MEMBERS:.m=.c)
28
29 HFILES = $(MEMBERS:.m=.h)
30 HFILES += tv_t.h
31 HFILES += ieee754.h
32
33 HFILES += common.h debug.h entity.h gmp.h ident.h irmode.h obst.h \
34           pset.h tune.h type.h xprintf.h xp_help.h
35
36 DISTRIB = $(DISTRIBMEMBERS:.m=.h)
37
38 OFILES = $(MEMBERS:%.m=../objects/%.o)
39
40 DFILES = $(MEMBERS:.m=.d)
41
42 TARGET = all
43
44 .PHONY: default all clean realclean install depend
45 .SUFFIXES: .d .h .c .o
46 .DEFAULT: $(TARGET)
47 .SILENT: $(DFILES) clean  # hides output
48
49 $(TARGET):      $(DFILES) $(OFILES)
50
51 %.d:    %.c
52         $(SHELL) -ec '$(CXX) $(DEPENDFLAGS) $(INCLUDES) $(X_INCLUDES) $< | sed '\''s/$*\\.o[ :]*/& $@/g'\'' > $@'
53
54
55 ../objects/%.o:    %.c
56         $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
57
58 lib:
59         cp $(DISTRIB) ../../include
60
61 clean:
62         rm -f $(OFILES) $(DFILES)
63
64 realclean:      clean
65         rm -f $(TARGET) *.flc TAGS
66
67 -include $(DFILES)