Changeset 3
- Timestamp:
- 02/17/05 22:59:23 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Makefile
r2 r3 1 1 # $Id$ 2 2 3 # Installation prefix. Change to install elsewhere 4 # XXX: installation not yet implemented 5 6 PREFIX=/usr/local 7 8 ################################################################################ 9 10 CC=gcc 3 11 OPTS=-ggdb -std=gnu89 -pedantic -Wall 12 #OPTS=-std=gnu89 -pedantic -Wall 4 13 5 all: reglookup 14 BUILD=../build 15 BUILD_BIN=$(BUILD)/bin 16 BUILD_ETC=$(BUILD)/etc 17 BUILD_DIRS=$(BUILD_BIN) $(BUILD_ETC) 6 18 7 reglookup: reglookup.c 8 gcc $(OPTS) -o reglookup reglookup.c 19 REGLOOKUP=$(BUILD)/bin/reglookup 20 FILES=$(REGLOOKUP) 21 22 all: $(BUILD_DIRS) $(FILES) 23 24 $(BUILD_DIRS): 25 mkdir -p $@ 26 27 $(REGLOOKUP): reglookup.c 28 $(CC) $(OPTS) -o $@ reglookup.c 9 29 10 30 clean: 11 rm - f reglookup31 rm -rf $(BUILD)/*
Note: See TracChangeset
for help on using the changeset viewer.