blob: 1dd894b49e9b992c8d9b22de75b30d21fcb63e81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
STD=
WARN= -Wall
OPT= -Os
R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
R_LDFLAGS= $(LDFLAGS)
DEBUG= -g
R_CC=$(CC) $(R_CFLAGS)
R_LD=$(CC) $(R_LDFLAGS)
linenoise.o: linenoise.h linenoise.c
linenoise_example: linenoise.o example.o
$(R_LD) -o $@ $^
.c.o:
$(R_CC) -c $<
clean:
rm -f linenoise_example *.o
|