-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
40 lines (33 loc) · 922 Bytes
/
Makefile
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
SRCDIR=antares
GITURL=https://[email protected]/nekromant/antares.git
OBJDIR=.
TMPDIR=tmp
TOPDIR=.
project_sources=src
ANTARES_DIR:=./antares
ifeq ($(ANTARES_INSTALL_DIR),)
antares:
git clone $(GITURL) $(ANTARES_DIR)
@echo "I have fetched the antares sources for you to $(ANTARES_DIR)"
@echo "Please, re-run make"
else
antares:
ln -sf $(ANTARES_INSTALL_DIR) $(ANTARES_DIR)
@echo "Using global antares installation: $(ANTARES_INSTALL_DIR)"
@echo "Symlinking done, please re-run make"
endif
-include antares/Makefile
define PKG_CONFIG
CFLAGS += $$(shell pkg-config --cflags $(1))
LDFLAGS += $$(shell pkg-config --libs $(1))
endef
ifeq ($(CONFIG_ROLE_USERSPACE),y)
$(eval $(call PKG_CONFIG,libusb-1.0))
endif
# You can define any custom make rules right here!
# They will can be later hooked as default make target
# in menuconfig
rf24tool:
cd rf24tool/ && make all
rf24tool-%:
cd rf24tool/ && make $(*)