5 DATADIR
= $(PREFIX
)/share
/wmcliphist
6 MAN1DIR
= $(PREFIX
)/share
/man
/man1
7 INCLUDES
= `pkg-config --cflags gtk+-3.0 x11`
10 CFLAGS
+= -Wall
-ansi
-pedantic
$(INCLUDES
) -DDATADIR
=\"$(DATADIR
)\"
13 # for debuggind purposes
14 # ISO doesn't support macros with variable number of arguments so -pedantic
16 #CFLAGS += -Wall -g -ansi $(INCLUDES) -DFNCALL_DEBUG
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
)
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
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
53 rm -rf
$(OBJECTS
) $(TARGET
)
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
)