wmfu: Indicate directory of wireless header file.
[dockapps.git] / wmgrabimage / wmGrabImage / Makefile
blob030fd4036d433374fd2d5fd0f3f9d69b40ae9293
1 CC = gcc
2 CFLAGS = -O2 -Wall
3 INCDIR = -I/usr/X11R6/include/X11
4 DESTDIR= /usr/X11R6
5 LIBDIR = -L/usr/X11R6/lib
6 # for linux
7 LIBS = -lXpm -lX11 -lXext
8 # for Solaris
9 # LIBS = -lXpm -lX11 -lXext -lsocket
10 OBJS = wmGrabImage.o \
11 ../wmgeneral/wmgeneral.o
14 .c.o:
15 $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
18 all: wmGrabImage.o wmGrabImage
20 wmGrabImage.o: wmGrabImage_master.xpm wmGrabImage_mask.xbm
21 wmGrabImage: $(OBJS)
22 $(CC) $(CFLAGS) $(SYSTEM) -o wmGrabImage $^ $(INCDIR) $(LIBDIR) $(LIBS)
24 clean:
25 for i in $(OBJS) ; do \
26 rm -f $$i; \
27 done
28 rm -f wmGrabImage
30 install:: wmGrabImage
31 install -s -m 0755 wmGrabImage $(DESTDIR)/bin
32 install -m 0755 GrabImage $(DESTDIR)/bin
33 install -m 0644 wmGrabImage.1 $(DESTDIR)/man/man1