include ../main.mk

# Build options.
CFLAGS	+= -Wall -Wextra -O0 -ggdb3 -I../include
LDFLAGS += -L../lib
LIBS = -lsng-tc 

toolname = sngtc_cfg

####### RULES ################################################################

.PHONY: all
all: $(toolname)

$(toolname): sngtc_cfg.c  
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)

.PHONY: clean
clean:
	rm -f $(toolname)

.PHONY: install
install:
	install -D -m 555 $(toolname) $(DESTDIR)$(sbindir)/$(toolname)

.PHONY: uninstall
uninstall:
	rm -f $(DESTDIR)$(sbindir)/$(toolname)

