-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 822 Bytes
/
Makefile
File metadata and controls
34 lines (23 loc) · 822 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
29
30
31
32
33
PREFIX=/usr/local
all: articleml.so articleml
articleml.so: articleml.o
cc -fPIC -shared -o libarticleml.so articleml.o -lxml2
articleml.o: articleml.c m_leg.c
cc -g -fPIC -I/usr/include/libxml2 -c articleml.c -o articleml.o
articleml: articleml.o main.c
cc -I/usr/include/libxml2 -c main.c -o main.o
cc -g -o articleml main.o articleml.o -lxml2
m_leg.c: m.leg m.h
leg -o m_leg.c m.leg
clean:
rm articleml.o
rm m_leg.c
rm main.o
install: articleml
install -m 0755 articleml $(PREFIX)/bin
install -m 0755 libarticleml.so $(PREFIX)/lib
install -m 0644 articleml.h $(PREFIX)/include
documentation.html: docs/documentation.xml articleml
cat docs/documentation.xml | ./articleml > docs/documentation.html
test_out.html: example/example.xml
cat example/example.xml | ./articleml > example/test_out.html