dockapps/wmMatrix/Makefile

29 lines
537 B
Makefile
Raw Normal View History

2012-08-14 13:04:14 +00:00
CC = gcc
2014-10-05 15:29:59 +00:00
CFLAGS = -O2 -Wall
INCDIR =
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)
all: wmMatrix
2012-08-14 13:04:14 +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)
$(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
install: wmMatrix
install -m 0755 wmMatrix $(DESTDIR)/bin
install -m 0644 wmMatrix.1 $(DESTDIR)/share/man/man1