Add missing libraries to examples' Makefiles
[dockapps.git] / cputnik / src / Makefile
blob36f22f8ed92f437509250dd3412134ae28d3b05d
2 CFLAGS = -Wall -Os
3 INCS = -I/usr/X11R6/include/X11
4 LIBS = -L/usr/X11R6/lib -lXpm -lXext -lX11
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)
13 all: cputnik.c docklib.o master.h mask.h
14 gcc $(CFLAGS) $(INCS) docklib.o cputnik.c -o cputnik $(LIBS)
16 docklib.o: docklib.c docklib.h
17 gcc $(CFLAGS) $(INCS) -c docklib.c
19 install:
20 $(MKDIR_P) $(DESTDIR)$(bindir)
21 $(INSTALL_PROGRAM) cputnik $(DESTDIR)$(bindir)
23 uninstall:
24 rm -f $(DESTDIR)$(bindir)/cputnik
26 clean:
27 rm -f *.o cputnik *~