wmcore: add Debian man-page.
[dockapps.git] / wmcliphist / Makefile
blobc6dab1c7a83ca5592451c844a03bdb20861a0a9e
1 srcCC ?= gcc
2 INSTALL = install
3 PREFIX = /usr/local
4 BINDIR = $(PREFIX)/bin
5 DATADIR = $(PREFIX)/share/wmcliphist
6 MAN1DIR = $(PREFIX)/share/man/man1
7 INCLUDES = `pkg-config --cflags gtk+-3.0 x11`
9 # for normal use
10 CFLAGS += -Wall -ansi -pedantic $(INCLUDES) -DDATADIR=\"$(DATADIR)\"
11 DEBUG =
13 # for debuggind purposes
14 # ISO doesn't support macros with variable number of arguments so -pedantic
15 # must not be used
16 #CFLAGS += -Wall -g -ansi $(INCLUDES) -DFNCALL_DEBUG -DDATADIR=\"$(DATADIR)\"
17 #DEBUG = debug.o
19 LIBS = `pkg-config --libs gtk+-3.0 x11`
21 OBJECTS = wmcliphist.o clipboard.o gui.o rcconfig.o history.o hotkeys.o utils.o $(DEBUG)
22 TARGET = wmcliphist
23 ICONS = icon/ico_16x16.png icon/ico_30x30_black.png icon/ico_30x30_gray.png \
24 icon/ico_30x30_white.png icon/ico_40x40_black.png \
25 icon/ico_40x40_gray.png icon/ico_40x40_white.png \
26 icon/ico_60x60_black.png icon/ico_60x60_gray.png \
27 icon/ico_60x60_white.png
30 all: $(TARGET)
32 lclint:
33 lclint $(INCLUDES) +posixlib *.c >lclint.log
35 wmcliphist: $(OBJECTS)
36 $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
38 wmcliphist.o: wmcliphist.c wmcliphist.h
40 clipboard.o: clipboard.c wmcliphist.h
42 rcconfig.o: rcconfig.c wmcliphist.h
44 gui.o: gui.c wmcliphist.h
46 history.o: history.c wmcliphist.h
48 hotkeys.o: hotkeys.c wmcliphist.h
50 utils.o: utils.c wmcliphist.h
52 clean:
53 rm -rf $(OBJECTS) $(TARGET)
54 rm -rf core
56 install:
57 $(INSTALL) -d $(DESTDIR)$(DATADIR)
58 $(INSTALL) -m 644 $(ICONS) $(DESTDIR)$(DATADIR)
59 $(INSTALL) -d $(DESTDIR)$(BINDIR)
60 $(INSTALL) $(TARGET) $(DESTDIR)$(BINDIR)
61 $(INSTALL) -d $(DESTDIR)$(MAN1DIR)
62 $(INSTALL) -m 644 wmcliphist.1 $(DESTDIR)$(MAN1DIR)