thug/Code/Gel/Music/Ngps/Pcm/Makefile
2016-02-14 08:39:12 +11:00

40 lines
883 B
Makefile

ifeq ($(wildcard PathDefs),)
PathDefs:
iop-path-setup
make all
else
include PathDefs
endif
TOPDIR = /usr/local/sce
INCOPT = -I$(TOPDIR)/common/include -I$(TOPDIR)/iop/install/include
CFLAGS = $(INCOPT) -I. -Wall -G0 -g -D__PLAT_NGPS__
ASFLAGS = $(INCOPT) -G0
RM = /bin/rm -f
COMPILE.s = $(CC) -xassembler-with-cpp $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c
#----------- customize section --------------
PROGNAME = ezpcm
OBJS = pcm_ent.o pcm_com.o pcm_sound.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
pcm_ent.o: pcm.h pcmiop.h
pcm_com.o: pcm.h pcmiop.h
pcm_sound.o: pcm.h pcmiop.h