Last change
on this file since 10 was
9,
checked in by tim, 19 years ago
|
Added documentation. Using txt2tags right now to generate man pages,
but output is included in repository. A simple Makefile was added as
well for doc. Main Makefile updated.
|
File size:
650 bytes
|
Rev | Line | |
---|
[5] | 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 |
---|
[9] | 17 | BUILD_DOC=$(BUILD)/doc |
---|
[5] | 18 | |
---|
[9] | 19 | BUILD_TREE=$(BUILD_BIN) $(BUILD_ETC) $(BUILD_DOC) |
---|
| 20 | SUB_DIRS=src doc |
---|
[5] | 21 | |
---|
| 22 | FILES=$(REGLOOKUP) |
---|
| 23 | .PHONY: $(SUB_DIRS) clean |
---|
| 24 | export |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | all: $(BUILD_TREE) $(SUB_DIRS) |
---|
| 28 | |
---|
| 29 | $(SUB_DIRS): |
---|
| 30 | $(MAKE) -C $@ |
---|
| 31 | |
---|
| 32 | $(BUILD_TREE): |
---|
| 33 | mkdir -p $@ |
---|
| 34 | |
---|
| 35 | clean: |
---|
| 36 | rm -rf $(BUILD)/* |
---|
Note: See
TracBrowser
for help on using the repository browser.