Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (18 sloc) 0.403 kB
de8804c @falconindy Add process call via signal callback
authored
1 CFLAGS := -ansi -Wall -Wextra -pedantic -Os $(CFLAGS) -pthread
2 LDFLAGS := -lrt $(LDFLAGS) -pthread
2ca7eed actually add files
fogobogo authored
3
f3cdafa @falconindy overhaul Makefile
authored
4 ifndef PREFIX
1021224 @falconindy more Makefile sanitization
authored
5 PREFIX = /usr/local
f3cdafa @falconindy overhaul Makefile
authored
6 endif
2ca7eed actually add files
fogobogo authored
7
f3cdafa @falconindy overhaul Makefile
authored
8 ifndef BINDIR
1021224 @falconindy more Makefile sanitization
authored
9 BINDIR = /bin
f3cdafa @falconindy overhaul Makefile
authored
10 endif
2ca7eed actually add files
fogobogo authored
11
1021224 @falconindy more Makefile sanitization
authored
12 SRC = wakeup.c
13 OBJ = $(SRC:.c=.o)
14 OUT = wakeup
2ca7eed actually add files
fogobogo authored
15
1021224 @falconindy more Makefile sanitization
authored
16 all: $(OUT)
17
18 $(OUT): $(OBJ)
19 $(CC) -o $@ $(OBJ) $(LDFLAGS)
2ca7eed actually add files
fogobogo authored
20
f3cdafa @falconindy overhaul Makefile
authored
21 install: all
1021224 @falconindy more Makefile sanitization
authored
22 install -Dm755 $(OUT) $(DESTDIR)$(PREFIX)$(BINDIR)/$(OUT)
2ca7eed actually add files
fogobogo authored
23
24 clean:
1021224 @falconindy more Makefile sanitization
authored
25 $(RM) $(OUT) $(OBJ)
Something went wrong with that request. Please try again.