2012-02-08 00:15:56 +08:00
|
|
|
OUTPUT=./
|
|
|
|
ifeq ("$(origin O)", "command line")
|
|
|
|
OUTPUT := $(O)/
|
|
|
|
endif
|
|
|
|
|
2012-02-08 00:15:57 +08:00
|
|
|
DESTDIR =
|
|
|
|
bindir = /usr/bin
|
|
|
|
|
|
|
|
INSTALL = /usr/bin/install
|
|
|
|
|
2012-02-08 00:15:56 +08:00
|
|
|
|
2011-03-30 22:30:11 +08:00
|
|
|
default: all
|
|
|
|
|
2012-02-08 00:15:56 +08:00
|
|
|
$(OUTPUT)centrino-decode: ../i386/centrino-decode.c
|
2011-08-03 13:17:01 +08:00
|
|
|
$(CC) $(CFLAGS) -o $@ $<
|
2011-03-30 22:30:11 +08:00
|
|
|
|
2012-02-08 00:15:56 +08:00
|
|
|
$(OUTPUT)powernow-k8-decode: ../i386/powernow-k8-decode.c
|
2011-08-03 13:17:01 +08:00
|
|
|
$(CC) $(CFLAGS) -o $@ $<
|
2011-03-30 22:30:11 +08:00
|
|
|
|
2012-02-08 00:15:56 +08:00
|
|
|
all: $(OUTPUT)centrino-decode $(OUTPUT)powernow-k8-decode
|
2011-03-30 22:30:11 +08:00
|
|
|
|
|
|
|
clean:
|
2012-02-08 00:15:56 +08:00
|
|
|
rm -rf $(OUTPUT)centrino-decode $(OUTPUT)powernow-k8-decode
|
2011-03-30 22:30:11 +08:00
|
|
|
|
2012-02-08 00:15:57 +08:00
|
|
|
install:
|
|
|
|
$(INSTALL) -d $(DESTDIR)${bindir}
|
|
|
|
$(INSTALL) $(OUTPUT)centrino-decode $(DESTDIR)${bindir}
|
|
|
|
$(INSTALL) $(OUTPUT)powernow-k8-decode $(DESTDIR)${bindir}
|
|
|
|
|
|
|
|
.PHONY: all default clean install
|