fb406006f7
git-svn-id: svn://kolibrios.org@5601 a494cfbc-eb01-0410-851d-a64ba20cac60
54 lines
1.1 KiB
Makefile
54 lines
1.1 KiB
Makefile
LIBRARY = libva
|
|
|
|
CC = kos32-gcc
|
|
AR = kos32-ar
|
|
LD = kos32-ld
|
|
STRIP = kos32-strip
|
|
|
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fno-ident
|
|
CFLAGS+= -mno-ms-bitfields -fomit-frame-pointer
|
|
|
|
LDFLAGS = -shared -s -nostdlib -T ../../newlib/dll.lds --entry _DllStartup --image-base=0
|
|
LDFLAGS+= --out-implib $(LIBRARY).dll.a
|
|
|
|
ARFLAGS = crs
|
|
|
|
INCLUDES= -I../../newlib/libc/include -I../../libdrm -I../../libdrm/intel -I../../libdrm/include/drm
|
|
INCLUDES+= -I. -I./va
|
|
|
|
LIBPATH:= -L../../../lib -L/home/autobuild/tools/win32/mingw32/lib
|
|
|
|
LIBS:= -ldll -ldrm -lc.dll -lgcc
|
|
|
|
DEFINES:= -DHAVE_CONFIG_H
|
|
|
|
SOURCES = \
|
|
va/drm/va_drm.c \
|
|
va/drm/va_drm_utils.c \
|
|
va/va.c \
|
|
va/va_compat.c \
|
|
va/va_fool.c \
|
|
va/va_tpi.c \
|
|
va/va_trace.c
|
|
|
|
|
|
OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
|
|
|
|
# targets
|
|
|
|
all: $(LIBRARY).dll
|
|
|
|
$(LIBRARY).dll: $(OBJECTS) Makefile
|
|
$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS)
|
|
$(STRIP) $@
|
|
mv -f $@ ../../../bin
|
|
mv -f $(LIBRARY).dll.a ../../../lib
|
|
|
|
|
|
%.o : %.c Makefile
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(DEFINES) -o $@ $<
|
|
|
|
|
|
clean:
|
|
-rm -f *.o
|
|
|