*** 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 MEMBERS  = tv.m
25
26 CFILES = $(MEMBERS:.m=.c)
27
28 HFILES = $(MEMBERS:.m=.h)
29 HFILES += ieee754.h
30
31 HFILES += common.h debug.h entity.h gmp.h ident.h irmode.h obst.h \
32           pset.h tune.h type.h xprintf.h xp_help.h
33
34 OFILES = $(MEMBERS:%.m=../objects/%.o)
35
36 DFILES = $(MEMBERS:.m=.d)
37
38 TARGET = all
39
40 .PHONY: default all clean realclean install depend
41 .SUFFIXES: .d .h .c .o
42 .DEFAULT: $(TARGET)
43 .SILENT: $(DFILES) clean  # hides output
44
45 %.d:    %.c
46         $(SHELL) -ec '$(CXX) $(DEPENDFLAGS) $(INCLUDES) $(X_INCLUDES) $< | sed '\''s/$*\\.o[ :]*/& $@/g'\'' > $@'
47
48
49 ../objects/%.o:    %.c
50         $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
51
52
53 $(TARGET):      $(DFILES) $(OFILES)
54
55 clean:
56         rm -f $(OFILES) $(DFILES)
57
58 realclean:      clean
59         rm -f $(TARGET) *.flc TAGS
60
61 -include $(DFILES)