3 # Objectfiles, needed for $(TARGET)
4 OBJ
= main.o utilities.o callbacks.o
6 MAN
= vimprobable2.1 vimprobablerc
.1
7 # Used libraries to get needed CFLAGS and LDFLAGS form pkg-config
8 LIBS
= gtk
+-2.0 webkit-1.0 libsoup-2.4
9 # Files to removo by clean target
10 CLEAN
= $(TARGET
) $(OBJ
) $(DEPS
) javascript.h
11 # Files to install by install target or remove by uninstall target
12 INSTALL
= $(BINDIR
)/$(TARGET
) $(addprefix $(MANDIR
)/man1
/,$(MAN
))
14 # DEBUG build? Off by default
17 CFLAGS
+= `pkg-config --cflags $(LIBS)`
18 LDFLAGS
+= `pkg-config --libs $(LIBS)` -lX11
-lXext
20 # TA: This is a pretty stringent list of warnings to bail on!
22 CFLAGS
+= -g
-ggdb
-ansi
-Wstrict-prototypes
23 CFLAGS
+= -Wno-long-long
-Wall
-Wmissing-declarations
27 BINDIR ?
= $(PREFIX
)/bin
28 MANDIR ?
= $(PREFIX
)/share
/man
29 # Mode bits for normal not executable files
31 # Mode bits for directories
33 # Mode bits for executables
35 # Destination directory to install files
38 # auto garerated dependancies for object files
46 javascript.h
: input-focus.js hinting.js
47 perl .
/js-merge-helper.pl
50 $(CC
) $^
$(LDFLAGS
) -o
$@
52 .PHONY
: clean install uninstall
55 install: $(addprefix $(DESTDIR
)/,$(INSTALL
))
59 # pattern rule to inslall executabels
60 $(DESTDIR
)/$(BINDIR
)/%: .
/%
61 -[ -e
'$(@D)' ] || mkdir
-p
'$(@D)' && chmod
$(DMOD
) '$(@D)'
66 # pattern rule to install manpages
67 $(DESTDIR
)/$(MANDIR
)/man1
/%: .
/%
68 -[ -e
'$(@D)' ] || mkdir
-p
'$(@D)' && chmod
$(DMOD
) '$(@D)'
73 $(CC
) -MMD
-c
$(CFLAGS
) $< -o
$@