2 LIBS
= -ldl
-lstdc
++ -lgcrypt
-lgpg-error
4 SRCS
=cmdline.c mx3r.c util.c
6 CFLAGS
=-O9
-rdynamic
-Wall
9 all: mx3r
.1 mx3r plugin-split-lines.so plugin-hash-lines.so
12 mx3r
: $(OBJECTS
) mx3r
.1
13 $(CC
) $(CFLAGS
) -o
$@
$(OBJECTS
) $(LIBS
)
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
23 mx3r.o
: mx3r.c cmdline.o
24 $(CC
) $(CFLAGS
) -c
-o
$@
$<
26 cmdline.o
: cmdline.c mx3r
.1
27 $(CC
) $(CFLAGS
) -c
-o
$@
$<
30 $(CC
) $(CFLAGS
) -c
-o
$@
$<
32 # Update manpage & cmdline.c,cmdlime.h
41 rm -f
$(OBJECTS
) mx3r plugin-split-lines.so plugin-split-lines.o plugin-hash-lines.so plugin-hash-lines.o