diff --git a/templates/library/Makefile b/templates/library/Makefile index 9fcd31f..1f09512 100644 --- a/templates/library/Makefile +++ b/templates/library/Makefile @@ -6,7 +6,7 @@ ifeq ($(strip $(DEVKITPRO)),) $(error "Please set DEVKITPRO in your environment. export DEVKITPRO=/devkitpro") endif -include $(DEVKITPRO)/devkitA64/base_rules +include $(DEVKITPRO)/libnx/switch_rules #--------------------------------------------------------------------------------- # TARGET is the name of the output @@ -40,7 +40,7 @@ ASFLAGS := -g $(ARCH) # list of directories containing libraries, this must be the top level containing # include and lib #--------------------------------------------------------------------------------- -LIBDIRS := +LIBDIRS := $(PORTLIBS) $(LIBNX) #--------------------------------------------------------------------------------- # no real need to edit anything past this point unless you need to add additional @@ -78,8 +78,7 @@ export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES))) export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ $(foreach dir,$(LIBDIRS),-I$(dir)/include) \ - -I. \ - -iquote $(CURDIR)/include/switch/ + -I$(CURDIR)/$(BUILD) .PHONY: clean all