dockapps/wmitime/Makefile
Doug Torrance 0fbe3d839a wmitime: Update Makefile.
In particular,
- Remove reference to deprecated X11R6 directory.
- Replace FLAGS variable with CFLAGS, CPPFLAGS, and LDFLAGS.
- Honor CC, PREFIX, and DESTDIR variables.
- Use INSTALL instead of cp for installation.
- Remove redundant -lXext flag.
- Move contents of wmitime directory to top directory to ease the building
  process.

Inspired in part by the Debian patches [1,2].

[1] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/patches/20-makefile-CC.patch/
[2] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/patches/make-install.patch/
2014-12-20 09:55:06 +00:00

31 lines
557 B
Makefile

#LANG = fr
LIBS = -lXpm -lXext -lX11 -lm
CFLAGS = -O2 -Wall
OBJS = wmitime.o \
wmgeneral/wmgeneral.o \
wmgeneral/misc.o \
wmgeneral/list.o
INSTALL = install
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -D$(LANG) -c $< -o $*.o
wmitime: $(OBJS)
$(CC) $(LDFLAGS) -o wmitime $^ $(LIBS)
all:: wmtime
clean::
for i in $(OBJS) ; do \
rm -f $$i ; \
done
rm -f wmitime
rm -f *~
install:: wmitime
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) wmitime $(DESTDIR)$(BINDIR)
@echo "wmitime Installation finished..."