source: Makefile @ 10

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
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
6PREFIX=/usr/local
7
8################################################################################
9
10CC=gcc
11OPTS=-ggdb -std=gnu89 -pedantic -Wall
12#OPTS=-std=gnu89 -pedantic -Wall
13
14BUILD=$(CURDIR)/build
15BUILD_BIN=$(BUILD)/bin
16BUILD_ETC=$(BUILD)/etc
17BUILD_DOC=$(BUILD)/doc
18
19BUILD_TREE=$(BUILD_BIN) $(BUILD_ETC) $(BUILD_DOC)
20SUB_DIRS=src doc
21
22FILES=$(REGLOOKUP)
23.PHONY: $(SUB_DIRS) clean
24export
25
26
27all: $(BUILD_TREE) $(SUB_DIRS)
28
29$(SUB_DIRS):
30        $(MAKE) -C $@
31
32$(BUILD_TREE):
33        mkdir -p $@
34
35clean:
36        rm -rf $(BUILD)/*
Note: See TracBrowser for help on using the repository browser.