| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
include ../../Makefile.defs |
| 7 |
auto_gen= |
| 8 |
NAME=ruxc.so |
| 9 |
|
| 10 |
ifeq ($(CROSS_COMPILE),) |
| 11 |
BUILDER = $(shell which pkg-config) |
| 12 |
ifneq ($(BUILDER),) |
| 13 |
PKGLIBRUXC = $(shell $(BUILDER) --exists libruxc > /dev/null 2>&1 ; echo $$? ) |
| 14 |
ifneq ($(PKGLIBRUXC),0) |
| 15 |
BUILDER = |
| 16 |
endif |
| 17 |
endif |
| 18 |
endif |
| 19 |
|
| 20 |
ifeq ($(BUILDER),) |
| 21 |
DEFS+= -I. -I$(LOCALBASE)/include -I$(SYSBASE)/include |
| 22 |
LIBS = -L. -L$(LOCALBASE)/lib -lruxc |
| 23 |
else |
| 24 |
DEFS+= $(shell pkg-config --cflags libruxc) |
| 25 |
LIBS = $(shell pkg-config --libs libruxc) |
| 26 |
endif |
| 27 |
|
| 28 |
ifeq ($(OS), darwin) |
| 29 |
LIBS+= -framework CoreFoundation -framework Security |
| 30 |
endif |
| 31 |
|
| 32 |
include ../../Makefile.modules |