send a magic ipv4 wake-on-lan packet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
349 B

CC ?= gcc
CFLAGS ?= -std=c99 -Wall -Werror
OBJ = wakeup.o
BIN = wakeup
PREFIX ?= /usr
prog: $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o $(BIN)
%.o: %.c
$(CC) $(CFLAGS) -c $<
install: prog
mkdir -p ${PREFIX}/bin
install -m 755 -o root -g root -s ${BIN} ${PREFIX}/bin
format:
clang-format -i *.c
clean:
rm *.o
rm $(BIN)
.PHONY: install format clean