Add missing libraries to examples' Makefiles
[dockapps.git] / wmxss / Src / Makefile
blobb04fe0783659cc5fddbf1758a69071fd327f0145
1 CC = gcc
2 CFLAGS = -O2 -Wall
3 INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
4 DESTDIR= /usr/X11R6
5 LIBDIR = -L/usr/X11R6/lib
7 # for Linux
8 LIBS = -lXpm -lX11 -lXext
10 # for Solaris
11 #LIBS = -lXpm -lX11 -lXext -lsocket -lnsl
13 OBJS = wmxss.o \
14 xutils.o
17 .c.o:
18 $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
21 all: wmxss.o wmxss
23 wmxss.o: wmxss_master.xpm wmxss_mask.xbm
24 wmxss: $(OBJS)
25 $(CC) $(COPTS) $(SYSTEM) -o wmxss $^ $(INCDIR) $(LIBDIR) $(LIBS)
27 clean:
28 for i in $(OBJS) ; do \
29 rm -f $$i; \
30 done
31 rm -f wmxss
33 install:: wmxss
34 install -c -s -m 0755 wmxss $(DESTDIR)/bin
35 install -c -m 0644 wmxss.1 $(DESTDIR)/man/man1