Add missing libraries to examples' Makefiles
[dockapps.git] / washerdryer / washerDryer / Makefile
blob98b52f64226b53919c3e13584825087791f93ad9
1 LIBDIR = -L/usr/X11R6/lib -L/usr/lib -L/opt/gnome/lib
2 LIBS = -lXpm -lXext -lX11 `pkg-config gtk+-2.0 --libs` -ldockapp
3 CFLAGS = `pkg-config gtk+-2.0 --cflags`
4 OBJS = washerDryer.o
5 prefix = /usr/local
6 exec_prefix = $(prefix)
7 bindir = $(exec_prefix)/bin
8 MKDIR_P = mkdir -p
9 INSTALL = install
10 INSTALL_PROGRAM = $(INSTALL)
12 .c.o:
13 cc -c -O2 -Wall $< -o $*.o $(CFLAGS)
15 washerDryer: $(OBJS)
16 cc -Wall -pedantic -o washerDryer $^ $(LIBDIR) $(LIBS)
18 all:: washerDryer
20 clean::
21 for i in $(OBJS) ; do \
22 rm -f $$i; \
23 done
24 rm -f washerDryer
26 install:: washerDryer
27 @echo
28 @echo "Installing config file..."
29 cp wdryerrc $(HOME)/.wdryerrc
30 chmod 600 $(HOME)/.wdryerrc
31 @echo
32 @echo "Installing executable..."
33 $(MKDIR_P) $(DESTDIR)$(bindir)
34 $(INSTALL_PROGRAM) washerDryer $(DESTDIR)$(bindir)/washerDryer
35 @echo
36 @echo "Installing man page..."
37 cp -f man/washerDryer.1.gz /usr/local/man/man1/
38 chmod 644 /usr/local/man/man1/washerDryer.1.gz
39 @echo
40 @echo "washerDryer installation finished."
42 uninstall::
43 @echo
44 @echo "Removing executable..."
45 rm -f $(DESTDIR)$(bindir)/washerDryer
46 @echo
47 @echo "Removing config file..."
48 rm -f $(HOME)/.wdryerrc
49 @echo
50 @echo "Removing man page..."
51 rm -f /usr/local/man/man1/washerDryer.1.gz
52 @echo
53 @echo "washerDryer uninstall finished."