Last change
on this file since 8 was
5,
checked in by tim, 20 years ago
|
Added top-level make file, with most of src/Makefile's functionality.
Improved overall build system.
|
File size:
610 bytes
|
Line | |
---|
1 | # $Id: Makefile 3 2005-02-18 03:59:23Z tim $ |
---|
2 | |
---|
3 | # Installation prefix. Change to install elsewhere |
---|
4 | # XXX: installation not yet implemented |
---|
5 | |
---|
6 | PREFIX=/usr/local |
---|
7 | |
---|
8 | ################################################################################ |
---|
9 | |
---|
10 | CC=gcc |
---|
11 | OPTS=-ggdb -std=gnu89 -pedantic -Wall |
---|
12 | #OPTS=-std=gnu89 -pedantic -Wall |
---|
13 | |
---|
14 | BUILD=$(CURDIR)/build |
---|
15 | BUILD_BIN=$(BUILD)/bin |
---|
16 | BUILD_ETC=$(BUILD)/etc |
---|
17 | |
---|
18 | BUILD_TREE=$(BUILD_BIN) $(BUILD_ETC) |
---|
19 | SUB_DIRS=src |
---|
20 | |
---|
21 | FILES=$(REGLOOKUP) |
---|
22 | .PHONY: $(SUB_DIRS) clean |
---|
23 | export |
---|
24 | |
---|
25 | |
---|
26 | all: $(BUILD_TREE) $(SUB_DIRS) |
---|
27 | |
---|
28 | $(SUB_DIRS): |
---|
29 | $(MAKE) -C $@ |
---|
30 | |
---|
31 | $(BUILD_TREE): |
---|
32 | mkdir -p $@ |
---|
33 | |
---|
34 | clean: |
---|
35 | rm -rf $(BUILD)/* |
---|
Note: See
TracBrowser
for help on using the repository browser.