kolibrios-fun/contrib/sdk/sources/SDL_mixer-1.2.12/Makefile
turbocat cb09ffbbd3 Added port(WIP) SDL_mixer-1.2.12
OGG, AIFF and VOC only support.

git-svn-id: svn://kolibrios.org@9565 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-03 16:13:14 +00:00

34 lines
924 B
Makefile

CC = kos32-gcc
AR = kos32-ar
LD = kos32-ld
STRIP = kos32-strip
LIBNAME=libSDL_mixer
SDK_DIR:= $(abspath ../../../sdk)
OBJS = effect_stereoreverse.o \
effect_position.o \
effects_internal.o \
music.o \
mixer.o \
load_ogg.o \
music_ogg.o \
dynamic_ogg.o \
wavestream.o \
load_aiff.o \
load_voc.o
CFLAGS = -c -O2 -mpreferred-stack-boundary=2 -fno-ident -fomit-frame-pointer -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-exceptions -fno-asynchronous-unwind-tables -ffast-math -mno-ms-bitfields -march=pentium-mmx -UWIN32 -U_Win32 -U_WIN32 -U__MINGW32__ -I../newlib/libc/include/ -I../SDL-1.2.2_newlib/include -I../libogg-1.3.5/include -I.. -I../libvorbis-1.3.7/include -DOGG_MUSIC
all: $(LIBNAME).a
$(LIBNAME).a: $(OBJS)
$(AR) -crs $(SDK_DIR)/lib/$(LIBNAME).a $(OBJS)
%.o : %.c Makefile
$(CC) $(CFLAGS) -o $@ $<
clean:
rm -f */*.o \ rm *.o \ rm */*/*.o