| 1 | # |
| 2 | # WARNING: do not run this directly, it should be run by the main Makefile |
| 3 | |
| 4 | include ../../Makefile.defs |
| 5 | auto_gen= |
| 6 | NAME=uuid.so |
| 7 | |
| 8 | ifeq ($(CROSS_COMPILE),) |
| 9 | BUILDER = $(shell \ |
| 10 | if pkg-config --exists uuid; then \ |
| 11 | echo 'pkg-config uuid'; \ |
| 12 | fi) |
| 13 | endif |
| 14 | |
| 15 | ifneq ($(BUILDER),) |
| 16 | DEFS += $(shell $(BUILDER) --cflags) |
| 17 | LIBS += $(shell $(BUILDER) --libs) |
| 18 | else |
| 19 | DEFS +=-I$(LOCALBASE)/include -I$(SYSBASE)/include |
| 20 | LIBS+=-L$(LOCALBASE)/lib -L$(SYSBASE)/lib -luuid |
| 21 | endif |
| 22 | |
| 23 | include ../../Makefile.modules |