mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
34 lines
607 B
Makefile
34 lines
607 B
Makefile
|
|
PREFIX=/usr/local
|
|
BINDIR=$(DESTDIR)$(PREFIX)/bin
|
|
|
|
CC=gcc
|
|
CFLAGS=-O3 -Wall -I../modules/mqnic
|
|
|
|
BIN=mqnic-config mqnic-dump mqnic-fw mqnic-bmc perout
|
|
|
|
all: $(BIN)
|
|
|
|
mqnic-config: mqnic-config.c mqnic.c timespec.c
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
mqnic-dump: mqnic-dump.c mqnic.c
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
mqnic-fw: mqnic-fw.c mqnic.c flash.c flash_spi.c flash_bpi.c fpga_id.c bitfile.c
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
mqnic-bmc: mqnic-bmc.c mqnic.c
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
perout: perout.c timespec.c
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
install:
|
|
install -d $(BINDIR)
|
|
install -m 0755 $(BIN) $(BINDIR)
|
|
|
|
clean:
|
|
rm -f $(BIN)
|
|
|