wmcore: use misc.* and list.* from libdockapp.
[dockapps.git] / wmcore / Makefile
blobc1b0214ae21f813a0f5eaa4dfb5ab7226756e982
1 INSTALL = /usr/bin/install
2 LD = $(CC)
4 CFLAGS += -Wall -O3 \
5 $(shell pkg-config dockapp --cflags) \
6 $(shell pkg-config x11 --cflags) \
7 $(shell pkg-config xext --cflags) \
8 $(shell pkg-config xpm --cflags)
9 LDFLAGS += -Wall
11 LIBS = $(shell pkg-config dockapp --libs) \
12 $(shell pkg-config x11 --libs) \
13 $(shell pkg-config xext --libs) \
14 $(shell pkg-config xpm --libs)
16 OBJS = wmcore.o
18 all : wmcore
20 .c.o:
21 $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
23 wmcore: $(OBJS)
24 $(LD) $(LDFLAGS) $^ -o $@ $(LIBS)
26 clean:
27 rm -f $(OBJS) wmcore
29 install:
30 $(INSTALL) -m 0755 wmcore $(DESTDIR)/usr/bin
32 uninstall:
33 rm -f /usr/bin/wmcore