1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00
corundum/utils/Makefile

28 lines
416 B
Makefile
Raw Normal View History

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 $@
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)