Last change
on this file since 155 was
147,
checked in by tim, 16 years ago
|
added talloc library
incorporated talloc into winsec and lru_cache modules
introduced talloc into SK caching system
|
-
Property svn:keywords set to
Id
|
File size:
1.5 KB
|
Rev | Line | |
---|
[13] | 1 | # $Id: Makefile 147 2009-02-22 19:31:52Z 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 |
---|
[145] | 13 | OPTS=-std=gnu89 -pedantic -Wall -ggdb |
---|
| 14 | #OPTS=-std=gnu89 -pedantic -Wall |
---|
[147] | 15 | INC:=-I$(PWD)/include -I/usr/local/include |
---|
[98] | 16 | LIB=-L/usr/local/lib -lm |
---|
[143] | 17 | BIN_EXT= |
---|
| 18 | EXTRA_OBJ= |
---|
[5] | 19 | |
---|
[73] | 20 | UNAME := $(shell uname) |
---|
[88] | 21 | ifneq ($(UNAME),Linux) |
---|
[74] | 22 | LIB:=$(LIB) -liconv |
---|
[73] | 23 | endif |
---|
| 24 | |
---|
[144] | 25 | |
---|
| 26 | ################################################################################ |
---|
| 27 | # MinGW cross-compiling build settings |
---|
[143] | 28 | ifdef BUILD_MINGW |
---|
[144] | 29 | |
---|
| 30 | ## These may need to be changed |
---|
[143] | 31 | CC=i586-mingw32msvc-cc |
---|
[144] | 32 | LIBICONV_PATH=/usr/local/src/libiconv-1.9.2-1-lib |
---|
| 33 | |
---|
| 34 | ## These probably do not need to be changed |
---|
[143] | 35 | BIN_EXT=.exe |
---|
| 36 | INC:=$(INC) -I$(LIBICONV_PATH)/include |
---|
| 37 | EXTRA_OBJ=$(LIBICONV_PATH)/lib/libiconv.dll.a |
---|
[144] | 38 | |
---|
[143] | 39 | endif |
---|
[144] | 40 | ################################################################################ |
---|
[143] | 41 | |
---|
[144] | 42 | |
---|
[5] | 43 | BUILD=$(CURDIR)/build |
---|
| 44 | BUILD_BIN=$(BUILD)/bin |
---|
[9] | 45 | BUILD_DOC=$(BUILD)/doc |
---|
[5] | 46 | |
---|
[21] | 47 | BUILD_TREE=$(BUILD_BIN) $(BUILD_DOC) |
---|
[65] | 48 | SUB_DIRS=lib src doc bin |
---|
[5] | 49 | |
---|
| 50 | FILES=$(REGLOOKUP) |
---|
| 51 | .PHONY: $(SUB_DIRS) clean |
---|
| 52 | export |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | all: $(BUILD_TREE) $(SUB_DIRS) |
---|
| 56 | |
---|
[20] | 57 | #XXX: This should be more generalized. |
---|
[11] | 58 | install: all |
---|
[13] | 59 | mkdir -p $(BIN_PREFIX) |
---|
| 60 | mkdir -p $(DOC_PREFIX) |
---|
[20] | 61 | mkdir -p $(MAN_PREFIX)/man1 |
---|
[67] | 62 | $(MAKE) -C bin install |
---|
[26] | 63 | $(MAKE) -C src install |
---|
[25] | 64 | $(MAKE) -C doc install |
---|
[11] | 65 | |
---|
[13] | 66 | |
---|
[5] | 67 | $(SUB_DIRS): |
---|
| 68 | $(MAKE) -C $@ |
---|
| 69 | |
---|
| 70 | $(BUILD_TREE): |
---|
| 71 | mkdir -p $@ |
---|
| 72 | |
---|
| 73 | clean: |
---|
[39] | 74 | $(MAKE) -C src clean |
---|
| 75 | $(MAKE) -C lib clean |
---|
[5] | 76 | rm -rf $(BUILD)/* |
---|
Note: See
TracBrowser
for help on using the repository browser.