Remove obsolete static library stubs

This commit is contained in:
fincs 2021-01-01 20:06:46 +01:00
parent 0951f1d8a6
commit b762ce2ab6
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -88,8 +88,6 @@ export OFILES_SRC := $(DEFFILES:.def=.o) $(SFILES:.s=.o) $(CFILES:.c=.o) $(CPPFI
export OFILES := $(OFILES_BIN) $(OFILES_SRC) export OFILES := $(OFILES_BIN) $(OFILES_SRC)
export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES))) export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES)))
export STUB_LIBS := $(addprefix lib/stubs/lib,$(DEFFILES:.def=.a)) lib/stubs/libnn_swkbd.a lib/stubs/libwhb.a lib/stubs/libgfd.a lib/stubs/libsnd_core.a lib/stubs/libsnd_user.a
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \ $(foreach dir,$(LIBDIRS),-I$(dir)/include) \
-I. -I.
@ -97,7 +95,7 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
.PHONY: all dist-bin dist-src dist install clean .PHONY: all dist-bin dist-src dist install clean
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
all: lib/libwut.a lib/libwutd.a $(STUB_LIBS) all: lib/libwut.a lib/libwutd.a
dist-bin: all dist-bin: all
@tar --exclude=*~ -cjf wut-$(VERSION).tar.bz2 include lib share -C libraries/libwhb include -C ../libgfd include @tar --exclude=*~ -cjf wut-$(VERSION).tar.bz2 include lib share -C libraries/libwhb include -C ../libgfd include
@ -114,9 +112,6 @@ install: dist-bin
lib: lib:
@[ -d $@ ] || mkdir -p $@ @[ -d $@ ] || mkdir -p $@
lib/stubs:
@[ -d $@ ] || mkdir -p $@
release: release:
@[ -d $@ ] || mkdir -p $@ @[ -d $@ ] || mkdir -p $@
@ -137,14 +132,6 @@ lib/libwutd.a : lib debug $(SOURCES) $(INCLUDES)
--no-print-directory -C debug \ --no-print-directory -C debug \
-f $(CURDIR)/Makefile -f $(CURDIR)/Makefile
# Cancel .a rule from devkitPPC/base_rules
%.a:
# temp: Deprecation stub for directly linking cafe libs (all in libwut)
lib/stubs/lib%.a: | lib/stubs
@echo stub $(notdir $*)
@$(AR) -rc $@
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
clean: clean:
@echo clean ... @echo clean ...