Changeset 5 for src/Makefile


Ignore:
Timestamp:
02/20/05 20:53:02 (20 years ago)
Author:
tim
Message:

Added top-level make file, with most of src/Makefile's functionality.
Improved overall build system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile

    r3 r5  
    11# $Id$
    2 
    3 # Installation prefix.  Change to install elsewhere
    4 #  XXX: installation not yet implemented
    5 
    6 PREFIX=/usr/local
    72
    83################################################################################
    94
    10 CC=gcc
    11 OPTS=-ggdb -std=gnu89 -pedantic -Wall
    12 #OPTS=-std=gnu89 -pedantic -Wall
    13 
    14 BUILD=../build
    15 BUILD_BIN=$(BUILD)/bin
    16 BUILD_ETC=$(BUILD)/etc
    17 BUILD_DIRS=$(BUILD_BIN) $(BUILD_ETC)
    18 
    19 REGLOOKUP=$(BUILD)/bin/reglookup
     5REGLOOKUP=$(BUILD_BIN)/reglookup
    206FILES=$(REGLOOKUP)
    217
    22 all: $(BUILD_DIRS) $(FILES)
    23 
    24 $(BUILD_DIRS):
    25         mkdir -p $@
     8all: $(FILES)
    269
    2710$(REGLOOKUP): reglookup.c
    2811        $(CC) $(OPTS) -o $@ reglookup.c
    29 
    30 clean:
    31         rm -rf $(BUILD)/*
Note: See TracChangeset for help on using the changeset viewer.