Added -Wall to CFLAGS
[mx3r.git] / Makefile
blob1f34371e1d4a8f7dab36b64ce33f7e06aafaf18f
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
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 # Compilers:
20 mx3r.o: mx3r.c cmdline.o
21 $(CC) -c -o $@ $<
23 cmdline.o: cmdline.c mx3r.1
24 $(CC) -c -o $@ $<
26 util.o: util.c
27 $(CC) -c -o $@ $<
29 # Update manpage & cmdline.c,cmdlime.h
30 mx3r.1: cmdline.cli
31 clig cmdline.cli
33 # Other targets:
34 run: mx3r
35 ./mx3r
37 clean:
38 rm -f $(OBJECTS) mx3r plugin-split-lines.so