--- Makefile.orig 1999-03-27 06:46:38 UTC +++ Makefile @@ -1,8 +1,7 @@ -CC = gcc -CFLAGS = -O2 -Wall -INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include -DESTDIR= /usr/X11R6 -LIBDIR = -L/usr/X11R6/lib +CC ?= gcc +CFLAGS ?= -O2 +INCDIR = -I${LOCALBASE}/include +LIBDIR = -L${LOCALBASE}/lib # for Linux LIBS = -lXpm -lX11 -lXext @@ -15,14 +14,14 @@ OBJS = wmCalClock.o \ .c.o: - $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) + $(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR) all: wmCalClock.o wmCalClock wmCalClock.o: wmCalClock_master.xpm wmCalClock_mask.xbm wmCalClock: $(OBJS) - $(CC) $(COPTS) $(SYSTEM) -o wmCalClock $^ $(INCDIR) $(LIBDIR) $(LIBS) + $(CC) $(COPTS) $(SYSTEM) -o wmCalClock $(OBJS) $(LIBDIR) $(LIBS) clean: for i in $(OBJS) ; do \ @@ -31,6 +30,6 @@ install:: wmCalClock rm -f wmCalClock install:: wmCalClock - install -c -s -m 0755 wmCalClock $(DESTDIR)/bin - install -c -m 0644 wmCalClock.1 $(DESTDIR)/man/man1 + ${BSD_INSTALL_PROGRAM} wmCalClock $(DESTDIR)$(PREFIX)/bin + ${BSD_INSTALL_MAN} wmCalClock.1 $(DESTDIR)$(PREFIX)/share/man/man1