wut/tools/Makefile
James Benton 07fafab7b4 tools: Update implcheck to compare rpl exports with an exports.h file.
Will verify that you do not have any extra exports which should not exist.
Can optionally print unimplemented / implemented function & data exports.
2016-10-11 22:17:24 +01:00

51 lines
1.1 KiB
Makefile

.SUFFIXES:
TARGETS := elf2rpl readrpl implcheck
ifeq ($(OS),Windows_NT)
all:
ifeq (, $(shell which msbuild 2> /dev/null))
$(warning "msbuild not found, try building with make-tools.bat from a vcvars prompt.")
else
$(shell msbuild tools/tools.sln /p:Configuration=Release)
endif
clean:
ifeq (, $(shell which msbuild 2> /dev/null))
$(shell msbuild tools/tools.sln /p:Configuration=Release /target:Clean)
else
$(warning "msbuild not found, try building with make-tools.bat from a vcvars prompt.")
endif
install: all
@mkdir -p $(INSTALLDIR)/bin
@for dir in $(TARGETS); do \
echo Installing $$dir; \
cp bin/$$dir $(INSTALLDIR)/bin; \
done
else
all:
@for dir in $(TARGETS); do \
echo; \
echo Entering Directory $$dir; \
$(MAKE) --no-print-directory -C $$dir; \
echo Leaving Directory $$dir; \
done
clean:
@for dir in $(TARGETS); do \
echo Cleaning $$dir; \
$(MAKE) --no-print-directory -C $$dir clean; \
done
install: all
@mkdir -p $(INSTALLDIR)/bin
@for dir in $(TARGETS); do \
echo Installing $$dir; \
cp $$dir/$$dir $(INSTALLDIR)/bin; \
done
endif
.PHONY: all install clean