1 # src/gallium/tests/trivial/Makefile
4 include $(TOP
)/configs
/current
8 -I
$(TOP
)/src
/gallium
/include \
9 -I
$(TOP
)/src
/gallium
/auxiliary \
10 -I
$(TOP
)/src
/gallium
/drivers \
11 -I
$(TOP
)/src
/gallium
/winsys \
15 $(GALLIUM_PIPE_LOADER_LIBS
) \
16 $(GALLIUM_AUXILIARIES
) \
17 $(PROG_LINKS
) $(LIBUDEV_LIBS
)
24 OBJECTS
= $(SOURCES
:.c
=.o
)
26 PROGS
= $(OBJECTS
:.o
=)
28 PROG_DEFINES
= -DPIPE_SEARCH_DIR
=\"$(PIPE_SRC_DIR
)\" \
29 $(GALLIUM_PIPE_LOADER_DEFINES
)
31 PIPE_SRC_DIR
= $(TOP
)/src
/gallium
/targets
/pipe-loader
35 default
: $(PROGS
) pipes
43 @
$(MAKE
) -C
$(PIPE_SRC_DIR
) clean
46 @
$(MAKE
) -C
$(PIPE_SRC_DIR
)
51 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $(PROG_DEFINES
) $< -o
$@
53 $(PROGS
): %: %.o
$(LINKS
)
54 $(CXX
) $(LDFLAGS
) $< $(LINKS
) $(LLVM_LIBS
) -lm
-lpthread
-ldl
-o
$@