Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8647 → Rev 8648

/contrib/sdk/sources/SDL-1.2.2_newlib/src/Makefile
1,7 → 1,8
CC = kos32-gcc
AR = kos32-ar
LD = kos32-ld
LIBNAME=libSDLn.a
 
SDK_DIR:= $(abspath ../../..)
endian_OBJS = endian/SDL_endian.o
39,21 → 40,17
-D__KOLIBRIOS__ -DDEBUG_VIDEO -UWIN32 -U_Win32 -U_WIN32 -U__MINGW32__ \
-I../../newlib/libc/include/
all: $(LIBNAME)
LDFLAGS = -shared -s -T../../newlib/libc/app.lds -nostdlib --image-base 0 -L /home/autobuild/tools/win32/mingw32/lib -lgcc -lz -ldll -lc.dll
install: $(LIBNAME)
mv -f $(LIBNAME) $(SDK_DIR)/lib
ARFLAGS = crs
$(LIBNAME): $(OBJS)
$(MAKE) -C SYSCALL/src
$(AR) -crs $(LIBNAME) $(OBJS) SYSCALL/src/os.o
 
all: libSDL.a
install: libSDL.a
mv -f libSDL.a $(SDK_DIR)/lib
libSDL.a: $(OBJS)
$(AR) $(ARFLAGS) libSDL.a $(OBJS) SYSCALL/src/os.o
%.o : %.asm Makefile
nasm -f coff $< $
nasm -f coff $<
%.o : %.c Makefile
$(CC) $(CFLAGS) -o $@ $<