2012-08-14 13:04:14 +00:00
|
|
|
CC = gcc
|
2014-10-05 15:29:59 +00:00
|
|
|
CFLAGS = -O2 -Wall
|
|
|
|
INCDIR =
|
2012-08-14 14:17:10 +00:00
|
|
|
DESTDIR= /usr
|
2014-10-05 15:29:59 +00:00
|
|
|
LIBDIR =
|
2012-08-14 13:04:14 +00:00
|
|
|
LIBS = -lXpm -lX11 -lXext
|
|
|
|
|
|
|
|
OBJS = wmMatrix.o matrix.o xutils.o yarandom.o
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
|
|
|
|
|
2012-08-14 14:17:10 +00:00
|
|
|
all: wmMatrix
|
2012-08-14 13:04:14 +00:00
|
|
|
|
2012-08-14 14:17:10 +00:00
|
|
|
wmMatrix.o: wmMatrix_master.xpm wmMatrix_mask.xbm
|
2012-08-14 13:04:14 +00:00
|
|
|
|
2014-10-05 15:29:59 +00:00
|
|
|
wmMatrix: $(OBJS)
|
2012-08-14 14:17:10 +00:00
|
|
|
$(CC) $(LDFLAGS) -o wmMatrix $^ $(LIBDIR) $(LIBS)
|
2012-08-14 13:04:14 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
for i in $(OBJS) ; do \
|
|
|
|
rm -f $$i; \
|
|
|
|
done
|
|
|
|
rm -f wmMatrix
|
|
|
|
|
2012-08-14 14:17:10 +00:00
|
|
|
install: wmMatrix
|
|
|
|
install -m 0755 wmMatrix $(DESTDIR)/bin
|
|
|
|
install -m 0644 wmMatrix.1 $(DESTDIR)/share/man/man1
|