Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ##===- projects/Makefile ------------------------------*- Makefile -*-===## |
| 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
Chris Lattner | 3876aa7 | 2007-12-29 20:11:13 +0000 | [diff] [blame] | 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 7 | # |
| 8 | ##===----------------------------------------------------------------------===## |
| 9 | LEVEL=.. |
| 10 | |
| 11 | include $(LEVEL)/Makefile.config |
| 12 | |
Matthijs Kooijman | 0b8be86 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 13 | # Compile all subdirs, except for the test suite, which lives in test-suite. |
| 14 | # Before 2008.06.24 it lived in llvm-test, so exclude that as well for now. |
| 15 | DIRS:= $(filter-out llvm-test test-suite,$(patsubst $(PROJ_SRC_DIR)/%/Makefile,%,$(wildcard $(PROJ_SRC_DIR)/*/Makefile))) |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 16 | |
| 17 | # Sparc cannot link shared libraries (libtool problem?) |
| 18 | ifeq ($(ARCH), Sparc) |
| 19 | DIRS := $(filter-out sample, $(DIRS)) |
| 20 | endif |
| 21 | |
| 22 | include $(PROJ_SRC_ROOT)/Makefile.rules |