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