head     1.1;
branch   1.1.1;
access   ;
symbols  start:1.1.1.1 pmp3:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2003.10.21.11.48.14;  author minzkn;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2003.10.21.11.48.14;  author minzkn;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@# Copyright (c) 2002 Information Equipment co.,LTD.
# All Right Reserved.
# Code by JaeHyuk Cho <mailto:minzkn@@infoeq.com>

DEF_PLATFORM=i386
#DEF_PLATFORM=ppc_405
#DEF_PLATFORM=ppc_82xx

DEF_CFLAGS =-O2 -Wall -Werror -pipe -D_REENTRANT -fomit-frame-pointer -I./include -ansi
DEF_OBJ  = getbits.o interface.o layer3.o mp3_ext.o

ifeq ($(DEF_PLATFORM),i386)
CROSS_COMPILE  =/usr/bin/
DEF_CFLAGS    += -DDEF_I386=586 
DEF_OBJ       += decode_i586.o dct64_i386.o
endif

ifeq ($(DEF_PLATFORM),ppc_405)
CROSS_COMPILE  =/opt/hardhat/devkit/ppc/405/bin/ppc_405-
DEF_OBJ       += decode.o dct64.o
endif

ifeq ($(DEF_PLATFORM),ppc_82xx)
CROSS_COMPILE  =/opt/hardhat/devkit/ppc/82xx/bin/ppc_82xx-
DEF_OBJ       += decode.o dct64.o
endif

all: $(DEF_OBJ) pmp3

clean: 
	$(RM) *.o *.a pmp3

libpmp3.a: $(DEF_OBJ)
	ar rc $@@ $^

pmp3: pmp3.o mixer.o libpmp3.a 
	$(CROSS_COMPILE)gcc -s -lm -o $@@ $^

%.o: %.c
	$(CROSS_COMPILE)gcc $(DEF_CFLAGS) -c -o $@@ $^

%.o: %.s
	$(CROSS_COMPILE)gcc $(DEF_CFLAGS) -c -o $@@ $^

# End of rules.mk
@


1.1.1.1
log
@
@
text
@@
