-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 686 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# C++ linenoise
#
CXXFLAGS = -std=c++0x -Wall -W -g
all: linenoise_example keycodes ksm
example.o: linenoise.h
linenoise.o: linenoise.h
linenoise_example: linenoise.a example.o
$(CXX) $(CXXFLAGS) -o linenoise_example example.o ./linenoise.a
linenoise.a: linenoise.h linenoise.o key_state_machine.o string_fmt.o
$(AR) rcs linenoise.a linenoise.o key_state_machine.o string_fmt.o
ksm: linenoise.a ksm.o
$(CXX) $(CXXFLAGS) -o ksm ksm.o ./linenoise.a
keycodes: linenoise.a keycodes.o
$(CXX) $(CXXFLAGS) -o keycodes keycodes.o ./linenoise.a
test: string_fmt.o
$(CXX) $(CXXFLAGS) -D_TEST -o test_string_fmt string_fmt.cpp
clean:
rm -f linenoise_example keycodes ksm *.o *.a