2019-07-17 18:48:50 -07:00
|
|
|
|
|
|
|
PREFIX=/usr/local
|
|
|
|
BINDIR=$(DESTDIR)$(PREFIX)/bin
|
|
|
|
|
|
|
|
CC=gcc
|
2019-07-21 21:54:22 -07:00
|
|
|
CFLAGS=-O3 -Wall -I../modules/mqnic
|
2019-07-17 18:48:50 -07:00
|
|
|
|
2019-07-19 15:48:33 -07:00
|
|
|
BIN=mqnic-config mqnic-fw perout
|
2019-07-17 18:48:50 -07:00
|
|
|
|
|
|
|
all: $(BIN)
|
|
|
|
|
2019-11-06 16:45:44 -08:00
|
|
|
mqnic-config: mqnic-config.c mqnic.c timespec.c
|
2019-07-19 15:46:56 -07:00
|
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
|
2019-07-21 21:54:22 -07:00
|
|
|
mqnic-fw: mqnic-fw.c mqnic.c
|
2019-07-19 15:48:33 -07:00
|
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
|
2019-07-22 18:06:17 -07:00
|
|
|
perout: perout.c timespec.c
|
2019-07-17 18:48:50 -07:00
|
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
install:
|
|
|
|
install -d $(BINDIR)
|
|
|
|
install -m 0755 $(BIN) $(BINDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(BIN)
|
|
|
|
|