3 INCDIR
= -I
/usr
/X11R6
/include/X11
5 LIBDIR
= -L
/usr
/X11R6
/lib
7 LIBS
= -lXpm
-lX11
-lXext
9 # LIBS = -lXpm -lX11 -lXext -lsocket
10 OBJS
= wmGrabImage.o \
11 ..
/wmgeneral
/wmgeneral.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
22 $(CC
) $(CFLAGS
) $(SYSTEM
) -o wmGrabImage
$^
$(INCDIR
) $(LIBDIR
) $(LIBS
)
25 for i in
$(OBJS
) ; do \
31 install -s
-m
0755 wmGrabImage
$(DESTDIR
)/bin
32 install -m
0755 GrabImage
$(DESTDIR
)/bin
33 install -m
0644 wmGrabImage
.1 $(DESTDIR
)/man
/man1