Changes in / [1:3]


Ignore:
Location:
/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • /src/Makefile

    • Property svn:keywords set to Id
    r1 r3  
     1# $Id$
     2
     3# Installation prefix.  Change to install elsewhere
     4#  XXX: installation not yet implemented
     5
     6PREFIX=/usr/local
     7
     8################################################################################
     9
     10CC=gcc
    111OPTS=-ggdb -std=gnu89 -pedantic -Wall
     12#OPTS=-std=gnu89 -pedantic -Wall
    213
    3 all: reglookup
     14BUILD=../build
     15BUILD_BIN=$(BUILD)/bin
     16BUILD_ETC=$(BUILD)/etc
     17BUILD_DIRS=$(BUILD_BIN) $(BUILD_ETC)
    418
    5 reglookup: reglookup.c
    6         gcc $(OPTS) -o reglookup reglookup.c
     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
    729
    830clean:
    9         rm -f reglookup
     31        rm -rf $(BUILD)/*
  • /src/reglookup.c

    • Property svn:keywords set to Id
Note: See TracChangeset for help on using the changeset viewer.