*** empty log message ***
[libfirm] / ir / debug / Makefile
1 # Hey, emacs, this is a -*- makefile -*-
2 ## Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
3 # All rights reserved.
4 # Author: Goetz Lindenmaier
5 #
6 # Makefile for debug -- debugging of compiler or compiled program??
7
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
19 X_INCLUDES  =
20
21 AR          = ar rcs
22
23 SHELL       = /bin/sh
24 MAKE        = /usr/bin/make
25
26 MEMBERS  = debug.m
27
28 CFILES = $(MEMBERS:.m=.c)
29
30 HFILES = $(MEMBERS:.m=.h)
31 HFILES +=  misc.h host.h
32
33 OFILES = $(MEMBERS:%.m=../objects/%.o)
34
35 DFILES = $(MEMBERS:.m=.d)
36
37 TARGET = all
38
39 .PHONY: default all clean realclean install depend
40 .SUFFIXES: .d .h .c .o
41 .DEFAULT: $(TARGET)
42 .SILENT: $(DFILES) clean  # hides output
43
44 %.d:    %.c
45         $(SHELL) -ec '$(CXX) $(DEPENDFLAGS) $(INCLUDES) $(X_INCLUDES) $< | sed '\''s/\($*\)\.o[ :]*/\.\.\/objects\/\1.o $@ : /g'\'' > $@'
46
47
48 ../objects/%.o:    %.c
49         $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
50
51
52 $(TARGET):      $(DFILES) $(OFILES)
53
54 clean:
55         rm -f $(OFILES) $(DFILES)
56
57 realclean:      clean
58         rm -f $(TARGET) *.flc TAGS
59
60 -include $(DFILES)