Last change
on this file since 123 was
111,
checked in by tim, 17 years ago
|
Switched license to GPLv3
Added early version of new tool, reglookup-recover
Many library changes made to support this new tool
|
-
Property svn:keywords set to
Id
|
File size:
979 bytes
|
Rev | Line | |
---|
[13] | 1 | # $Id: Makefile 111 2008-05-01 04:06:22Z tim $ |
---|
[5] | 2 | |
---|
[13] | 3 | # Installation prefixes. Change to install elsewhere. |
---|
[5] | 4 | |
---|
| 5 | PREFIX=/usr/local |
---|
[13] | 6 | BIN_PREFIX=$(PREFIX)/bin |
---|
| 7 | DOC_PREFIX=$(PREFIX)/share/doc/reglookup |
---|
| 8 | MAN_PREFIX=$(PREFIX)/man |
---|
[5] | 9 | |
---|
| 10 | ################################################################################ |
---|
| 11 | |
---|
| 12 | CC=gcc |
---|
[111] | 13 | OPTS=-std=gnu89 -pedantic -Wall -ggdb |
---|
[73] | 14 | INC=-I/usr/local/include |
---|
[98] | 15 | LIB=-L/usr/local/lib -lm |
---|
[5] | 16 | |
---|
[73] | 17 | UNAME := $(shell uname) |
---|
[88] | 18 | ifneq ($(UNAME),Linux) |
---|
[74] | 19 | LIB:=$(LIB) -liconv |
---|
[73] | 20 | endif |
---|
| 21 | |
---|
[5] | 22 | BUILD=$(CURDIR)/build |
---|
| 23 | BUILD_BIN=$(BUILD)/bin |
---|
[9] | 24 | BUILD_DOC=$(BUILD)/doc |
---|
[5] | 25 | |
---|
[21] | 26 | BUILD_TREE=$(BUILD_BIN) $(BUILD_DOC) |
---|
[65] | 27 | SUB_DIRS=lib src doc bin |
---|
[5] | 28 | |
---|
| 29 | FILES=$(REGLOOKUP) |
---|
| 30 | .PHONY: $(SUB_DIRS) clean |
---|
| 31 | export |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | all: $(BUILD_TREE) $(SUB_DIRS) |
---|
| 35 | |
---|
[20] | 36 | #XXX: This should be more generalized. |
---|
[11] | 37 | install: all |
---|
[13] | 38 | mkdir -p $(BIN_PREFIX) |
---|
| 39 | mkdir -p $(DOC_PREFIX) |
---|
[20] | 40 | mkdir -p $(MAN_PREFIX)/man1 |
---|
[67] | 41 | $(MAKE) -C bin install |
---|
[26] | 42 | $(MAKE) -C src install |
---|
[25] | 43 | $(MAKE) -C doc install |
---|
[11] | 44 | |
---|
[13] | 45 | |
---|
[5] | 46 | $(SUB_DIRS): |
---|
| 47 | $(MAKE) -C $@ |
---|
| 48 | |
---|
| 49 | $(BUILD_TREE): |
---|
| 50 | mkdir -p $@ |
---|
| 51 | |
---|
| 52 | clean: |
---|
[39] | 53 | $(MAKE) -C src clean |
---|
| 54 | $(MAKE) -C lib clean |
---|
[5] | 55 | rm -rf $(BUILD)/* |
---|
Note: See
TracBrowser
for help on using the repository browser.