wmMatrix: cleanup the Makefile
Set default location to /usr, remove /usr/X11R6 stuff. Install manpage.
This commit is contained in:
parent
4dba2e59f8
commit
8e7ead2816
1 changed files with 9 additions and 19 deletions
|
@ -1,31 +1,21 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -O2 -Wall
|
CFLAGS = -O2 -Wall
|
||||||
INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
|
INCDIR =
|
||||||
DESTDIR= /usr/X11R6
|
DESTDIR= /usr
|
||||||
LIBDIR = -L/usr/X11R6/lib
|
LIBDIR =
|
||||||
|
|
||||||
# for Linux
|
|
||||||
LIBS = -lXpm -lX11 -lXext
|
LIBS = -lXpm -lX11 -lXext
|
||||||
|
|
||||||
# for Solaris
|
|
||||||
#LIBS = -lXpm -lX11 -lXext -lsocket -lnsl
|
|
||||||
|
|
||||||
|
|
||||||
OBJS = wmMatrix.o matrix.o xutils.o yarandom.o
|
OBJS = wmMatrix.o matrix.o xutils.o yarandom.o
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
|
$(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
|
||||||
|
|
||||||
|
all: wmMatrix
|
||||||
|
|
||||||
all: wmMatrix.o wmMatrix
|
wmMatrix.o: wmMatrix_master.xpm wmMatrix_mask.xbm
|
||||||
|
|
||||||
wmMatrix.o: wmMatrix_master.xpm wmMatrix_mask.xbm
|
|
||||||
wmMatrix: $(OBJS)
|
wmMatrix: $(OBJS)
|
||||||
$(CC) $(COPTS) $(SYSTEM) -o wmMatrix $^ $(INCDIR) $(LIBDIR) $(LIBS)
|
$(CC) $(LDFLAGS) -o wmMatrix $^ $(LIBDIR) $(LIBS)
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
for i in $(OBJS) ; do \
|
for i in $(OBJS) ; do \
|
||||||
|
@ -33,6 +23,6 @@ clean:
|
||||||
done
|
done
|
||||||
rm -f wmMatrix
|
rm -f wmMatrix
|
||||||
|
|
||||||
install:: wmMatrix
|
install: wmMatrix
|
||||||
install -c -s -m 0755 wmMatrix $(DESTDIR)/bin
|
install -m 0755 wmMatrix $(DESTDIR)/bin
|
||||||
|
install -m 0644 wmMatrix.1 $(DESTDIR)/share/man/man1
|
||||||
|
|
Loading…
Reference in a new issue