source: trunk/src/Makefile @ 235

Last change on this file since 235 was 143, checked in by tim, 16 years ago

fixed a null pointer exception

removed some dependencies on less portable items

altered Makefiles to allow for MinGW cross compiling

  • Property svn:keywords set to Id
File size: 757 bytes
Line 
1# $Id: Makefile 143 2009-02-13 03:24:27Z tim $
2
3################################################################################
4
5REGLOOKUP=$(BUILD_BIN)/reglookup$(BIN_EXT)
6REGLOOKUP_RECOVER=$(BUILD_BIN)/reglookup-recover$(BIN_EXT)
7OBJ=$(wildcard ../lib/*.o)
8FILES=$(REGLOOKUP) $(REGLOOKUP_RECOVER)
9
10all: $(FILES)
11
12$(REGLOOKUP): reglookup.o $(OBJ)
13        $(CC) $(CFLAGS) $(OPTS) $(LIB) -o $@ reglookup.o $(OBJ) $(EXTRA_OBJ)
14
15$(REGLOOKUP_RECOVER): reglookup-recover.o $(OBJ)
16        $(CC) $(CFLAGS) $(OPTS) $(LIB) -o $@ reglookup-recover.o $(OBJ) $(EXTRA_OBJ)
17
18reglookup.o: reglookup.c
19        $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ reglookup.c
20
21reglookup-recover.o: reglookup-recover.c
22        $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ reglookup-recover.c
23
24install:
25        install -m 0755 $(FILES) $(BIN_PREFIX)
26
27clean:
28        rm -f *.o
Note: See TracBrowser for help on using the repository browser.