8a26c206aee77d6400af1dbc1c3037ec815246e8
[libfirm] / 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 # Main Makefile
8
9 # This makefile makes firm and/or the testprograms.
10
11 SUBDIRS = ir testprograms
12
13 MAKE    = /usr/bin/make -k
14 SHELL   = /bin/sh
15
16 .PHONY: default all clean realclean install depend ir testprograms
17
18
19 ir:
20         $(MAKE) -C ir
21
22 all:    TAGS ir testprograms
23
24 testprograms:
25         $(MAKE) -C testprograms
26
27 lib:    ir
28         $(MAKE) -C ir lib
29
30 clean:
31         for i in $(SUBDIRS); do  $(MAKE) -C $$i clean; done
32
33 realclean:
34         for i in $(SUBDIRS); do  $(MAKE) -C $$i realclean; done
35         rm -f libfirm.a core include/*.h TAGS
36
37 TAGFILES = $(shell find . -name '*.c' -o -name '*.h')
38
39 TAGS:   $(TAGFILES)
40         etags -C $(TAGFILES)