kolibrios/contrib/sdk/sources/libogg-1.3.5/Makefile
turbocat 481e42b275 Added port libogg-1.3.5
git-svn-id: svn://kolibrios.org@9563 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-03 16:08:58 +00:00

24 lines
670 B
Makefile

CC = kos32-gcc
AR = kos32-ar
LD = kos32-ld
STRIP = kos32-strip
LIBNAME=libogg
SDK_DIR:= $(abspath ../../)
OBJS = src/bitwise.o src/framing.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 -Iinclude -DHAVE_CONFIG
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