cc801880a5
Previously, wmitime only had support for English, French, and (in Debian only) Hungarian. In addition, the choice was made at compile time. This patch adds run-time support for any language using the Latin alphabet. The locale is determined by the user's environment or may be specified on the command line with the "-l" option. Note that users whose environment specifies a non-Latin locale may wish to use, e.g., "-l C", as otherwise no date will appear. Note that, for simplicity, the month and day are now displayed as "01 JAN" as opposed to "JAN 01". (Previously, the former format was used for English and the latter for French.)
30 lines
536 B
Makefile
30 lines
536 B
Makefile
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) -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..."
|