# # build using configure as best we can, should work for most targets # David McCullough # .PHONY: all all: build $(MAKE) -C build build: Makefile rm -rf build mkdir build chmod u+x configure ( \ cd build; \ export CC="$(CC) $(CFLAGS)"; \ export LDFLAGS="$(LDFLAGS)"; \ export LIBS="$(LDLIBS)"; \ ../configure --host=$(CROSS_COMPILE:-=) --prefix= ; \ ) .PHONY: romfs romfs: $(ROMFSINST) build/rtpproxy /bin/rtpproxy .PHONY: clean clean: rm -rf build