Fix makefile (dependecies)

This commit is contained in:
Stefan `Sec` Zehl 2012-06-03 11:35:44 +02:00
parent d02520f6b1
commit 1237f1a2ca
1 changed files with 3 additions and 2 deletions

View File

@ -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