dockapps/wmMatrix/Makefile

29 lines
541 B
Makefile
Raw Normal View History

2012-08-14 13:04:14 +00:00
CC = gcc
CFLAGS = -O2 -Wall
INCDIR =
DESTDIR= /usr
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
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