source: src/Makefile @ 3

Last change on this file since 3 was 3, checked in by tim, 20 years ago

expanded makefile to compile into build/ (more to come)

  • Property svn:keywords set to Id
File size: 578 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=../build
15BUILD_BIN=$(BUILD)/bin
16BUILD_ETC=$(BUILD)/etc
17BUILD_DIRS=$(BUILD_BIN) $(BUILD_ETC)
18
19REGLOOKUP=$(BUILD)/bin/reglookup
20FILES=$(REGLOOKUP)
21
22all: $(BUILD_DIRS) $(FILES)
23
24$(BUILD_DIRS):
25        mkdir -p $@
26
27$(REGLOOKUP): reglookup.c
28        $(CC) $(OPTS) -o $@ reglookup.c
29
30clean:
31        rm -rf $(BUILD)/*
Note: See TracBrowser for help on using the repository browser.