*** 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 # CS-hac
26 # label.m
27
28 CFILES = $(MEMBERS:.m=.c)
29
30 HFILES = $(MEMBERS:.m=.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 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 %.d:    %.c
48         $(SHELL) -ec '$(CXX) $(DEPENDFLAGS) $(INCLUDES) $(X_INCLUDES) $< | sed '\''s/$*\\.o[ :]*/& $@/g'\'' > $@'
49
50
51 ../objects/%.o:    %.c
52         $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
53
54
55 $(TARGET):      $(DFILES) $(OFILES)
56
57 clean:
58         rm -f $(OFILES) $(DFILES)
59
60 realclean:      clean
61         rm -f $(TARGET) *.flc TAGS
62
63 -include $(DFILES)