wmappkill: Use g_free from glib instead of glibtop_free.
[dockapps.git] / wmmenu / Makefile
blob8ffe394e57330a1fbcfa4b8721dde9d54f1372b3
1 prefix = /usr/local
2 BINDIR = $(prefix)/bin
3 MANDIR = $(prefix)/man
4 ETCDIR = $(prefix)/etc
6 # comment to get the old, Xpm-only, version
7 GDKPIXBUF2 = 1
9 # If you want to use gdk-pixbuf-2.0, pass GDKPIXBUF2=1 to make command
10 ifdef GDKPIXBUF2
11 PIXBUF_CFG = pkg-config gdk-pixbuf-xlib-2.0
12 PIXBUF_DEF = -DWITH_GDKPIXBUF
13 PIXBUF_INC := $(shell $(PIXBUF_CFG) --cflags)
14 PIXBUF_LIB := -rdynamic -L$(shell $(PIXBUF_CFG) --variable=prefix)/lib -lgdk_pixbuf_xlib-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0
15 endif
17 CC = gcc #-g
18 CFLAGS = -pipe -O2
19 CPPFLAGS = -MMD -ansi -pedantic -Wall
20 INCDIRS = $(PIXBUF_INC)
21 DEFINES = -DETCDIR='"$(ETCDIR)"' $(PIXBUF_DEF)
22 LDFLAGS = -s
23 LIBDIRS = $(PIXBUF_LIB)
24 LDLIBS = -ldockapp -lXpm -lXext -lX11 -lm
26 MKDIRHIER = mkdir -p
27 MAN1DIR = $(MANDIR)/man1
29 SRCS1 = \
30 wmmenu.c options.c error.c menu.c utils.c pixmaps.c \
31 xobjects.c buttonbar.c events.c
33 OBJS1 = $(SRCS1:.c=.o)
34 PRGS = wmmenu
35 MAN1 = $(PRGS:%=%.1)
37 RM = rm -f
38 INSTBIN = install -c
39 INSTMAN = install -c
41 all : $(PRGS)
43 .c.o :
44 $(CC) $(INCDIRS) $(DEFINES) $(CPPFLAGS) $(CFLAGS) -c $<
46 wmmenu : $(OBJS1)
47 $(CC) $(LDFLAGS) -o $@ $(OBJS1) $(LIBDIRS) $(LDLIBS)
49 install : $(PRGS) $(MAN1)
50 $(MKDIRHIER) $(BINDIR)
51 $(INSTBIN) $(PRGS) $(BINDIR)
52 $(MKDIRHIER) $(MAN1DIR)
53 $(INSTMAN) $(MAN1) $(MAN1DIR)
55 clean :
56 $(RM) *.o *.d core tags $(PRGS)
58 # dependencies -- do not change lines below
59 -include *.d