source: trunk/src/Makefile @ 151

Last change on this file since 151 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
RevLine 
[2]1# $Id: Makefile 143 2009-02-13 03:24:27Z tim $
2
[3]3################################################################################
4
[143]5REGLOOKUP=$(BUILD_BIN)/reglookup$(BIN_EXT)
6REGLOOKUP_RECOVER=$(BUILD_BIN)/reglookup-recover$(BIN_EXT)
[73]7OBJ=$(wildcard ../lib/*.o)
[110]8FILES=$(REGLOOKUP) $(REGLOOKUP_RECOVER)
[1]9
[5]10all: $(FILES)
[3]11
[73]12$(REGLOOKUP): reglookup.o $(OBJ)
[143]13        $(CC) $(CFLAGS) $(OPTS) $(LIB) -o $@ reglookup.o $(OBJ) $(EXTRA_OBJ)
[26]14
[110]15$(REGLOOKUP_RECOVER): reglookup-recover.o $(OBJ)
[143]16        $(CC) $(CFLAGS) $(OPTS) $(LIB) -o $@ reglookup-recover.o $(OBJ) $(EXTRA_OBJ)
[110]17
[37]18reglookup.o: reglookup.c
[73]19        $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ reglookup.c
[36]20
[110]21reglookup-recover.o: reglookup-recover.c
22        $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ reglookup-recover.c
23
[26]24install:
[90]25        install -m 0755 $(FILES) $(BIN_PREFIX)
[36]26
27clean:
28        rm -f *.o
Note: See TracBrowser for help on using the repository browser.