Fix makefile (dependecies)
This commit is contained in:
parent
d02520f6b1
commit
1237f1a2ca
|
@ -13,7 +13,7 @@ CFLAGS = -Wall -O2
|
||||||
EXE = obreader
|
EXE = obreader
|
||||||
FILES = obreader.c
|
FILES = obreader.c
|
||||||
|
|
||||||
$(ARCH)-$(EXE):
|
$(ARCH)-$(EXE): $(FILES)
|
||||||
$(CC) $(CFLAGS) -o $@ $(FILES)
|
$(CC) $(CFLAGS) -o $@ $(FILES)
|
||||||
$(STRIP) $@
|
$(STRIP) $@
|
||||||
|
|
||||||
|
@ -22,9 +22,10 @@ $(ARCH)-$(EXE):
|
||||||
# <URL:http://wiki.openwrt.org/doc/devel/crosscompile>
|
# <URL:http://wiki.openwrt.org/doc/devel/crosscompile>
|
||||||
# for setup instructions.
|
# for setup instructions.
|
||||||
WRT=~/r0ket/openwrt/trunk/staging_dir
|
WRT=~/r0ket/openwrt/trunk/staging_dir
|
||||||
|
STAGING_DIR=$(WRT)/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2
|
||||||
|
|
||||||
mips:
|
mips:
|
||||||
STAGING_DIR=$(WRT)/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2 \
|
STAGING_DIR=$(STAGING_DIR) \
|
||||||
PATH=${PATH}:$(STAGING_DIR)/bin \
|
PATH=${PATH}:$(STAGING_DIR)/bin \
|
||||||
$(MAKE) TUPLE=mips-openwrt-linux
|
$(MAKE) TUPLE=mips-openwrt-linux
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue