wut/Makefile

51 lines
1.3 KiB
Makefile
Raw Normal View History

2016-08-19 01:34:39 +02:00
ifeq ($(findstring CYGWIN,$(shell uname -s)),CYGWIN)
2016-06-03 01:04:22 +02:00
WUT_ROOT := $(shell cygpath -w ${CURDIR})
RPL_ROOT := $(shell cygpath -w ${SYSTEM_RPL_ROOT})
2016-06-03 01:04:22 +02:00
else
2015-12-27 03:10:38 +01:00
WUT_ROOT := $(CURDIR)
RPL_ROOT := $(SYSTEM_RPL_ROOT)
2016-06-03 01:04:22 +02:00
endif
2016-08-19 01:34:39 +02:00
TARGETS := tools crt rpl
2015-12-27 03:10:38 +01:00
DESTDIR ?= $(CURDIR)
INSTALLDIR := $(DESTDIR)
2016-06-03 01:04:22 +02:00
export WUT_ROOT
export INSTALLDIR
2016-06-03 01:04:22 +02:00
2015-12-27 03:10:38 +01:00
all:
@for dir in $(TARGETS); do \
echo; \
2016-01-04 14:17:43 +01:00
echo "Entering Directory $$dir"; \
2015-12-27 03:10:38 +01:00
$(MAKE) --no-print-directory -C $$dir; \
2016-01-04 14:17:43 +01:00
echo "Leaving Directory $$dir"; \
2015-12-27 03:10:38 +01:00
done
clean:
@for dir in $(TARGETS); do \
2016-01-04 14:46:52 +01:00
echo; \
2015-12-27 03:10:38 +01:00
echo Cleaning $$dir; \
$(MAKE) --no-print-directory -C $$dir clean; \
done
install:
@mkdir -p $(INSTALLDIR)
@cp -r include $(INSTALLDIR) || :
2015-12-27 03:10:38 +01:00
@for dir in $(TARGETS); do \
2016-01-04 14:46:52 +01:00
echo; \
2015-12-27 03:10:38 +01:00
echo Installing $$dir; \
$(MAKE) --no-print-directory -C $$dir install; \
done
test: all
@tools/bin/implcheck $(RPL_ROOT)\coreinit.rpl rpl\libcoreinit\exports.h
@tools/bin/implcheck $(RPL_ROOT)\gx2.rpl rpl\libgx2\exports.h
@tools/bin/implcheck $(RPL_ROOT)\nsysnet.rpl rpl\libnsysnet\exports.h
@tools/bin/implcheck $(RPL_ROOT)\proc_ui.rpl rpl\libproc_ui\exports.h
@tools/bin/implcheck $(RPL_ROOT)\sndcore2.rpl rpl\libsndcore2\exports.h
@tools/bin/implcheck $(RPL_ROOT)\sysapp.rpl rpl\libsysapp\exports.h
@tools/bin/implcheck $(RPL_ROOT)\vpad.rpl rpl\libvpad\exports.h
2015-12-27 03:10:38 +01:00
.PHONY: all clean install