Use var for paths
This commit is contained in:
parent
62d1d520f0
commit
e271cd196a
12
common.mk
12
common.mk
@ -1,9 +1,12 @@
|
|||||||
# If you change this to exe, you'll have to rename the file ./thirdparty/nugget/ps-exe.ld too.
|
# If you change this to exe, you'll have to rename the file ./thirdparty/nugget/ps-exe.ld too.
|
||||||
TYPE = ps-exe
|
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
|
THISDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||||
LDFLAGS += -L../thirdparty/nugget/psyq/lib -L../psyq-4_7-converted/lib -L../psyq-4.7-converted-full/lib -L../psyq/lib
|
|
||||||
|
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 += -Wl,--start-group
|
||||||
LDFLAGS += -lapi
|
LDFLAGS += -lapi
|
||||||
LDFLAGS += -lc
|
LDFLAGS += -lc
|
||||||
@ -29,9 +32,8 @@ LDFLAGS += -ltap
|
|||||||
LDFLAGS += -lcd
|
LDFLAGS += -lcd
|
||||||
LDFLAGS += -Wl,--end-group
|
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
|
# convert TIM file to bin
|
||||||
%.o: %.tim
|
%.o: %.tim
|
||||||
|
Loading…
Reference in New Issue
Block a user