blob: e7636e65c6014395f696a5376f5302ba3cd05cca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
TOP = ../..
include $(TOP)/configs/current
#DEFINES += -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\"
SOURCES = block.c \
surface.c \
context.c \
subpicture.c \
attributes.c
OBJECTS = $(SOURCES:.c=.o)
INCLUDES = -I$(TOP)/src/gallium/include \
-I$(TOP)/src/gallium/auxiliary \
-I$(TOP)/src/gallium/winsys/g3dvl
##### RULES #####
.c.o:
$(CC) -c $(INCLUDES) $(DEFINES) $(CFLAGS) $< -o $@
.S.o:
$(CC) -c $(INCLUDES) $(DEFINES) $(CFLAGS) $< -o $@
##### TARGETS #####
.PHONY: default clean
default: depend libXvMCapi.a
libXvMCapi.a: $(OBJECTS) Makefile
$(MKLIB) -o XvMCapi $(MKLIB_OPTIONS) -static $(OBJECTS)
depend: $(SOURCES) Makefile
$(RM) depend
touch depend
$(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDES) $(SOURCES)
clean: Makefile
$(RM) libXvMCapi.a
$(RM) *.o *~
$(RM) depend depend.bak
-include depend
|