1TOP = ../../../.. 2include $(TOP)/configs/current 3 4##### MACROS ##### 5 6XA_CFLAGS = -Wall -pedantic 7 8XA_INCLUDES= -I$(TOP)/src/gallium/ \ 9 -I$(TOP)/src/gallium/auxiliary \ 10 -I$(TOP)/src/gallium/include \ 11 -I$(TOP)/src/gallium/winsys \ 12 -I$(TOP)/src/gallium/drivers 13 14XA_LIB = xatracker 15XA_LIB_NAME = lib$(XA_LIB).o 16XA_LIB_DEPS = 17 18COMMON_GALLIUM_SOURCES= 19 20SOURCES = \ 21 xa_tracker.c \ 22 xa_context.c \ 23 xa_renderer.c \ 24 xa_tgsi.c \ 25 xa_yuv.c \ 26 xa_composite.c 27OBJECTS = $(SOURCES:.c=.o) 28 29##### RULES ##### 30 31.c.o: 32 $(CC) -c $(XA_CFLAGS) $(CFLAGS) $(XA_INCLUDES) $< 33 34 35##### TARGETS ##### 36 37default: $(XA_LIB_NAME) 38 39 40# Make the library 41$(XA_LIB_NAME): depend $(OBJECTS) 42 $(CC) -Wl,-r -nostdlib -o $(XA_LIB_NAME) $(OBJECTS) $(CFLAGS) 43 44install: FORCE 45 46clean: 47 -rm -f *.o *~ 48 -rm -f *.lo 49 -rm -f *.la 50 -rm -f *.pc 51 -rm -rf .libs 52 -rm -f depend depend.bak 53 54 55depend: $(SOURCES) 56 @ echo "running $(MKDEP)" 57 @ rm -f depend 58 @ touch depend 59 @ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(XA_INCLUDES) $(SOURCES) \ 60 > /dev/null 61 62-include depend 63 64FORCE: 65