Added -v flag. Some changes trying to merge a XML file.
[mx3r.git] / Makefile
blobdafd80a13839b8c999dd1cb7ffda45ad596daa8c
1 # Variables:
2 LIBS= -ldl -lstdc++ -lgcrypt -lgpg-error
3 CC=gcc
4 SRCS=cmdline.c mx3r.c util.c
5 OBJECTS=$(SRCS:.c=.o)
6 CFLAGS=-O9 -rdynamic -Wall
8 # Targets:
9 all: mx3r.1 mx3r plugin-split-lines.so plugin-hash-lines.so
11 # Linker target:
12 mx3r: $(OBJECTS) mx3r.1
13 $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LIBS)
15 # Plugins
16 plugin-split-lines.so: plugin-split-lines.o
17 ld -shared plugin-split-lines.o -o plugin-split-lines.so
19 plugin-hash-lines.so: plugin-hash-lines.o
20 ld -shared plugin-hash-lines.o -o plugin-hash-lines.so
22 # Compilers:
23 mx3r.o: mx3r.c cmdline.o
24 $(CC) $(CFLAGS) -c -o $@ $<
26 cmdline.o: cmdline.c mx3r.1
27 $(CC) $(CFLAGS) -c -o $@ $<
29 util.o: util.c
30 $(CC) $(CFLAGS) -c -o $@ $<
32 # Update manpage & cmdline.c,cmdlime.h
33 mx3r.1: cmdline.cli
34 clig cmdline.cli
36 # Other targets:
37 run: mx3r
38 ./mx3r
40 clean:
41 rm -f $(OBJECTS) mx3r plugin-split-lines.so plugin-split-lines.o plugin-hash-lines.so plugin-hash-lines.o