wmcliphist: Replace xpm icons with png.
[dockapps.git] / wmcliphist / Makefile
blob2b0eb3b28f38ab99b421c21cf23ceab0035f1729
1 srcCC ?= gcc
2 INSTALL = install
3 PREFIX = /usr/local
4 BINDIR = $(PREFIX)/bin
5 DATADIR = $(PREFIX)/share/wmcliphist
6 INCLUDES = `pkg-config --cflags gtk+-2.0 x11`
8 # for normal use
9 CFLAGS += -Wall -ansi -pedantic $(INCLUDES) -DDATADIR=\"$(DATADIR)\"
10 DEBUG =
12 # for debuggind purposes
13 # ISO doesn't support macros with variable number of arguments so -pedantic
14 # must not be used
15 #CFLAGS += -Wall -g -ansi $(INCLUDES) -DFNCALL_DEBUG
16 #DEBUG = debug.o
18 LIBS = `pkg-config --libs gtk+-2.0 x11`
20 OBJECTS = wmcliphist.o clipboard.o gui.o rcconfig.o history.o hotkeys.o utils.o $(DEBUG)
21 TARGET = wmcliphist
22 ICONS = icon/ico_16x16.png icon/ico_30x30_black.png icon/ico_30x30_gray.png \
23 icon/ico_30x30_white.png icon/ico_40x40_black.png \
24 icon/ico_40x40_gray.png icon/ico_40x40_white.png \
25 icon/ico_60x60_black.png icon/ico_60x60_gray.png \
26 icon/ico_60x60_white.png
29 all: $(TARGET)
31 lclint:
32 lclint $(INCLUDES) +posixlib *.c >lclint.log
34 wmcliphist: $(OBJECTS)
35 $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
37 wmcliphist.o: wmcliphist.c wmcliphist.h \
38 icon/ico_60x60_mask.xbm icon/ico_40x40_mask.xbm \
39 icon/ico_30x30_mask.xbm icon/ico_16x16_mask.xbm
41 clipboard.o: clipboard.c wmcliphist.h
43 rcconfig.o: rcconfig.c wmcliphist.h
45 gui.o: gui.c wmcliphist.h
47 history.o: history.c wmcliphist.h
49 hotkeys.o: hotkeys.c wmcliphist.h
51 utils.o: utils.c wmcliphist.h
53 clean:
54 rm -rf $(OBJECTS) $(TARGET)
55 rm -rf core
57 install:
58 $(INSTALL) -d $(DESTDIR)$(DATADIR)
59 $(INSTALL) -m 644 $(ICONS) $(DESTDIR)$(DATADIR)
60 $(INSTALL) -d $(DESTDIR)$(BINDIR)
61 $(INSTALL) $(TARGET) $(DESTDIR)$(BINDIR)