Initial revision
[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
20 ir:
21         $(MAKE) -C ir
22
23 all:    TAGS ir testprograms
24
25 testprograms:
26         $(MAKE) -C testprograms
27
28 clean:
29         for i in $(SUBDIRS); do  $(MAKE) -C $$i clean; done
30
31 realclean:
32         for i in $(SUBDIRS); do  $(MAKE) -C $$i realclean; done
33         rm -f libfirm.a core
34
35 TAGFILES = $(shell find . -name '*.c' -o -name '*.h')
36
37 TAGS:   $(TAGFILES)
38         etags -C $(TAGFILES)