2016-02-05 23:00:38 +01:00
|
|
|
LIBRARY = libva
|
|
|
|
|
|
|
|
CC = kos32-gcc
|
|
|
|
AR = kos32-ar
|
|
|
|
LD = kos32-ld
|
|
|
|
STRIP = kos32-strip
|
|
|
|
|
2016-11-04 07:36:45 +01:00
|
|
|
INSTALLDIR:= /home/autobuild/tools/win32/lib
|
|
|
|
|
2016-02-05 23:00:38 +01:00
|
|
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fno-ident
|
|
|
|
CFLAGS+= -mno-ms-bitfields -fomit-frame-pointer -Wno-attributes -Wno-unused
|
|
|
|
|
2016-11-04 07:36:45 +01:00
|
|
|
LDFLAGS = -shared -s -T dll.lds --entry _DllStartup --image-base=0
|
2016-02-05 23:00:38 +01:00
|
|
|
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
|
|
|
|
|
2016-11-04 07:36:45 +01:00
|
|
|
LIBS:= -ldll -ldrm.dll -lgcc -lc.dll
|
2016-02-05 23:00:38 +01:00
|
|
|
|
|
|
|
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
|
2016-11-04 07:36:45 +01:00
|
|
|
$(LD) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
|
2016-02-05 23:00:38 +01:00
|
|
|
$(STRIP) $@
|
|
|
|
mv -f $@ ../../../bin
|
2016-11-04 07:36:45 +01:00
|
|
|
mv -f $(LIBRARY).dll.a $(INSTALLDIR)
|
2016-02-05 23:00:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
%.o : %.c Makefile
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(DEFINES) -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o
|
|
|
|
|