Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e544508a21
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (18 sloc) 0.403 kb
CFLAGS := -ansi -Wall -Wextra -pedantic -Os $(CFLAGS) -pthread
LDFLAGS := -lrt $(LDFLAGS) -pthread
ifndef PREFIX
PREFIX = /usr/local
endif
ifndef BINDIR
BINDIR = /bin
endif
SRC = wakeup.c
OBJ = $(SRC:.c=.o)
OUT = wakeup
all: $(OUT)
$(OUT): $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
install: all
install -Dm755 $(OUT) $(DESTDIR)$(PREFIX)$(BINDIR)/$(OUT)
clean:
$(RM) $(OUT) $(OBJ)
Jump to Line
Something went wrong with that request. Please try again.