| 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 |