blob: 8f4e719ed1d2daa99c15eadbc8efc2d41c3b8f3f [file] [log] [blame]
CC = gcc
CFLAGS += -Wall -g
PREFIX ?= /usr
SBINDIR ?= $(PREFIX)/sbin
INSTALL ?= install
NLLIBNAME = libnl-1
LIBTCMD_DIR := ../libtcmd
#LDLIBS += -L/home/mattwagner/ambarella-a5s-sdk/packages/wireless/dist/usr/lib/libnl-3.so -lrt -ltcmd
override LDLIBS += -lrt -ltcmd $(shell pkg-config --libs $(NLLIBNAME))
override CFLAGS += $(shell pkg-config --cflags $(NLLIBNAME)) -I$(LIBTCMD_DIR) -L$(LIBTCMD_DIR) -L../../dist/usr/lib/
artagent: artagent.c artagent.h
$(MAKE) -C $(LIBTCMD_DIR)
$(CC) $(CFLAGS) -o $@ $^ $(LDLIBS)
install: artagent
install -m 755 artagent $(DESTDIR)$(SBINDIR)
clean:
rm -f artagent