Use var for paths

This commit is contained in:
ABelliqueux 2021-07-16 11:06:19 +02:00
parent 62d1d520f0
commit e271cd196a

View File

@ -1,9 +1,12 @@
# If you change this to exe, you'll have to rename the file ./thirdparty/nugget/ps-exe.ld too.
TYPE = ps-exe
SRCS += ../thirdparty/nugget/common/crt0/crt0.s
CPPFLAGS += -I../thirdparty/nugget/psyq/include -I../psyq-4_7-converted/include -I../psyq-4.7-converted-full/include -I../psyq/include
LDFLAGS += -L../thirdparty/nugget/psyq/lib -L../psyq-4_7-converted/lib -L../psyq-4.7-converted-full/lib -L../psyq/lib
THISDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
SRCS += $(THISDIR)thirdparty/nugget/common/crt0/crt0.s
CPPFLAGS += -I$(THISDIR)thirdparty/nugget/psyq/include -I$(THISDIR)psyq-4_7-converted/include -I$(THISDIR)psyq-4.7-converted-full/include -I$(THISDIR)psyq/include
LDFLAGS += -L$(THISDIR)thirdparty/nugget/psyq/lib -L$(THISDIR)psyq-4_7-converted/lib -L$(THISDIR)psyq-4.7-converted-full/lib -L$(THISDIR)psyq/lib
LDFLAGS += -Wl,--start-group
LDFLAGS += -lapi
LDFLAGS += -lc
@ -29,9 +32,8 @@ LDFLAGS += -ltap
LDFLAGS += -lcd
LDFLAGS += -Wl,--end-group
THISDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
include $(THISDIR)/thirdparty/nugget/common.mk
include $(THISDIR)thirdparty/nugget/common.mk
# convert TIM file to bin
%.o: %.tim