CONFIGMAKE = ../../Config.make
-include $(CONFIGMAKE)

LD	= $(LINK)
AR	= $(LIBRARIAN)

UCC = "$(CC)"
CFLAGS='-O2 -Wall -fno-strict-aliasing $(DEBUG_OPT) -I$(TARGET_IDIR) -DIPT_LIBDIR=$(TARGET_LDIR) -DLIBDIR=$(TARGET_LDIR)'

.PHONY: all install
all: Makefile
	$(MAKE) -f Makefile
	$(MAKE) -f Makefile install prefix=$(MAKETOP)/

Makefile:
	./configure  CC=$(CC) LD=$(LD) RANLIB=$(RANLIB) AR=$(AR) AS=$(AS) STRIP=$(STRIP) --host=arm-none-linux-gnueabi --prefix=/

install: all

.PHONY: clean cleanall uninstall
clean:
	$(MAKE) -f Makefile $@

cleanall: clean
	$(RM) -f Makefile

uninstall: cleanall

