supRA/Makefile
2022-07-01 11:22:13 +09:00

20 lines
319 B
Makefile

VERSION = 0.1.0-beta.1
CC = gcc
CFLAGS = -O2
LDFLAGS = -llua -lm
IFACE = eth0
CONFILE = config.lua
.PHONY: run clean
all: bin/supRA
run: bin/supRA
@sudo $^ $(IFACE) $(CONFILE)
clean:
find . -name "*.o" | xargs rm -f
bin/supRA: src/supRA.o src/ra.o src/options.o | bin
$(CC) -o $@ $^ $(LDFLAGS)
bin:
mkdir -p $@