2015-04-07 07:45:09 +00:00
|
|
|
OBJS = wmload.o
|
|
|
|
LIBS = -lX11 -lXpm -lXext -lm
|
|
|
|
PREFIX = /usr/local
|
|
|
|
BINDIR = $(PREFIX)/bin
|
2015-04-07 07:45:14 +00:00
|
|
|
MANDIR = $(PREFIX)/share/man/man1
|
2015-04-07 07:45:09 +00:00
|
|
|
INSTALL = install
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
wmload: $(OBJS)
|
|
|
|
$(CC) $(LDFLAGS) -o wmload $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) wmload
|
|
|
|
|
|
|
|
install: wmload
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(BINDIR)
|
|
|
|
$(INSTALL) wmload $(DESTDIR)$(BINDIR)
|
2015-04-07 07:45:14 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(MANDIR)
|
|
|
|
$(INSTALL) -m 644 wmload.1 $(DESTDIR)$(MANDIR)
|