-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
gamecube_rules
30 lines (21 loc) · 996 Bytes
/
gamecube_rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPro/devkitPPC)
endif
include $(DEVKITPPC)/base_rules
PORTLIBS := $(PORTLIBS_PATH)/gamecube $(PORTLIBS_PATH)/ppc
export PATH := $(PORTLIBS_PATH)/gamecube/bin:$(PORTLIBS_PATH)/ppc/bin:$(PATH)
export LIBOGC_INC := $(DEVKITPRO)/libogc2/include
export LIBOGC_LIB := $(DEVKITPRO)/libogc2/lib/cube
MACHDEP = -DGEKKO -mogc -mcpu=750 -meabi -mhard-float
#---------------------------------------------------------------------------------
%.dol: %.elf
$(SILENTMSG) output ... $(notdir $@)
$(SILENTCMD)elf2dol $< $@
#---------------------------------------------------------------------------------
%.tpl : %.scf
$(SILENTMSG) $(notdir $<)
$(SILENTCMD)gxtexconv -s $< -d $(DEPSDIR)/$*.d -o $@
#---------------------------------------------------------------------------------
%.elf:
$(SILENTMSG) linking ... $(notdir $@)
$(SILENTCMD)$(LD) $^ $(LDFLAGS) $(LIBPATHS) $(LIBS) -o $@