dockapps/wmtime/Makefile

26 lines
504 B
Makefile
Raw Normal View History

2012-10-30 15:47:04 +00:00
LIBDIR = -L/usr/X11R6/lib
LIBS = -lXpm -lXext -lX11 -lm
OBJS = wmtime.o \
wmgeneral/wmgeneral.o \
wmgeneral/misc.o \
wmgeneral/list.o
2012-10-30 15:47:04 +00:00
XPMS = wmtime-master.xpm wmtime-mask.xbm
CC = gcc
CFLAGS += -O2
2012-10-30 15:47:04 +00:00
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c -Wall $< -o $*.o
2012-10-30 15:47:04 +00:00
wmtime: $(OBJS) $(XPMS)
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o wmtime $(OBJS) $(LIBDIR) $(LIBS)
2012-10-30 15:47:04 +00:00
clean::
for i in $(OBJS) ; do \
rm -f $$i; \
2012-10-30 15:47:04 +00:00
done
rm -f wmtime
install:: wmtime
install -m 755 wmtime $(DESTDIR)/usr/bin