source: trunk/Makefile @ 65

Last change on this file since 65 was 65, checked in by tim, 18 years ago

fixed a bug in types

added paranoid checks in smb_deps to prevent NULL pointer dereferences and corner-case memory leaks.

  • Property svn:keywords set to Id
File size: 821 bytes
RevLine 
[13]1# $Id: Makefile 65 2006-07-23 17:00:20Z tim $
[5]2
[13]3# Installation prefixes.  Change to install elsewhere.
[5]4
5PREFIX=/usr/local
[13]6BIN_PREFIX=$(PREFIX)/bin
7DOC_PREFIX=$(PREFIX)/share/doc/reglookup
8MAN_PREFIX=$(PREFIX)/man
[5]9
10################################################################################
11
12CC=gcc
[23]13OPTS=-std=gnu89 -pedantic -Wall
[5]14
15BUILD=$(CURDIR)/build
16BUILD_BIN=$(BUILD)/bin
[9]17BUILD_DOC=$(BUILD)/doc
[5]18
[21]19BUILD_TREE=$(BUILD_BIN) $(BUILD_DOC)
[65]20SUB_DIRS=lib src doc bin
[5]21
22FILES=$(REGLOOKUP)
23.PHONY: $(SUB_DIRS) clean
24export
25
26
27all: $(BUILD_TREE) $(SUB_DIRS)
28
[20]29#XXX: This should be more generalized.
[11]30install: all
[13]31        mkdir -p $(BIN_PREFIX)
32        mkdir -p $(DOC_PREFIX)
[20]33        mkdir -p $(MAN_PREFIX)/man1
[26]34        $(MAKE) -C src install
[25]35        $(MAKE) -C doc install
[11]36
[13]37
[5]38$(SUB_DIRS):
39        $(MAKE) -C $@
40
41$(BUILD_TREE):
42        mkdir -p $@
43
44clean:
[39]45        $(MAKE) -C src clean
46        $(MAKE) -C lib clean
[5]47        rm -rf $(BUILD)/*
Note: See TracBrowser for help on using the repository browser.