0
|
1 SOURCES = calc.cpp node.cpp
|
|
2 HEADERS = node.h
|
|
3 OBJ = calc.o node.o
|
|
4
|
|
5 CFLAGS = -O2
|
|
6
|
|
7 all: calc
|
|
8
|
|
9 convert: $(SOURCES) $(HEADERS)
|
|
10
|
|
11 .SUFFIXES:
|
|
12 .SUFFIXES: .cpp .o
|
|
13
|
|
14 calc: $(OBJ)
|
|
15 $(CC) $(LDFLAGS) -o $@ $(OBJ) -lstdc++
|
|
16
|
|
17 .cpp.o:
|
|
18 $(CC) -c $(CFLAGS) -o $@ $<
|
|
19
|
|
20 calc.cpp: ../calc.cpp
|
|
21 nkf --unix $< > $@
|
|
22
|
|
23 node.cpp: ../node.cpp
|
|
24 nkf --unix $< > $@
|
|
25
|
|
26 node.h: ../node.h
|
|
27 nkf --unix $< > $@
|
|
28
|
|
29 depend:
|
|
30 makedepend -- $(CFLAGS) -- $(SOURCES)
|
|
31
|
|
32 # DO NOT DELETE
|