mirror of
https://github.com/thug1src/thug.git
synced 2025-01-22 05:43:47 +00:00
34 lines
821 B
Makefile
34 lines
821 B
Makefile
ifeq ($(wildcard PathDefs),)
|
|
PathDefs:
|
|
iop-path-setup > PathDefs || (rm -f PathDefs ; exit 1)
|
|
make all
|
|
else
|
|
include PathDefs
|
|
endif
|
|
|
|
INCDIR = -I/usr/local/sce/common/include -I/usr/local/sce/iop/install/include
|
|
|
|
CFLAGS = $(INCDIR) -I. -Wall -G0 -g
|
|
ASFLAGS = $(INCDIR) -G0
|
|
|
|
COMPILE.s = $(CC) -xassembler-with-cpp $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c
|
|
|
|
#----------- customize section --------------
|
|
PROGNAME = ezbgm
|
|
|
|
OBJS = bgm_entr.o bgm_com.o bgm_play.o bgm_r2s.o bgm_r2sm.o
|
|
#ILIBS = -ilb=$(TOP)lib/iop.ilb
|
|
ILIBS =
|
|
LIBI = /usr/local/sce/iop/install/lib
|
|
|
|
#----------- rules --------------
|
|
all: $(PROGNAME).irx
|
|
|
|
clean:
|
|
rm -f *.o $(PROGNAME).irx *.obj *.map
|
|
|
|
$(PROGNAME).irx: $(OBJS)
|
|
$(LINK.o) -o $@ \
|
|
$(OBJS) -L../../../lib -L./ -L$(LIBI) -ilb=libsd.ilb -ilb=cdvdman.ilb
|
|
|