2007-04-27 22:01:38 +04:00
|
|
|
# $OpenBSD$
|
|
|
|
|
2010-02-21 21:15:27 +03:00
|
|
|
#.include <bsd.xconf.mk>
|
2007-04-27 22:01:38 +04:00
|
|
|
|
|
|
|
PROG= cwm
|
|
|
|
|
2010-02-21 21:15:27 +03:00
|
|
|
BINDIR= /usr/bin
|
|
|
|
|
2009-01-11 21:34:46 +03:00
|
|
|
SRCS= calmwm.c screen.c xmalloc.c client.c menu.c \
|
2008-05-20 18:50:51 +04:00
|
|
|
search.c util.c xutil.c conf.c input.c xevents.c group.c \
|
2008-06-15 01:48:54 +04:00
|
|
|
kbfunc.c mousefunc.c font.c parse.y
|
2007-04-27 22:01:38 +04:00
|
|
|
|
2010-02-21 21:15:27 +03:00
|
|
|
OBJS= calmwm.o screen.o xmalloc.o client.o menu.o \
|
|
|
|
search.o util.o xutil.o conf.o input.o xevents.o group.o \
|
|
|
|
kbfunc.o mousefunc.o font.o strlcpy.o strlcat.o y.tab.o \
|
|
|
|
strtonum.o fgetln.o
|
|
|
|
|
|
|
|
X11BASE= /usr
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/freetype2 -I.
|
2007-04-27 22:01:38 +04:00
|
|
|
|
2009-01-12 00:48:27 +03:00
|
|
|
CFLAGS+= -Wall
|
|
|
|
|
2009-01-19 23:23:19 +03:00
|
|
|
LDADD+= -L${X11BASE}/lib -lXft -lXrender -lX11 -lXau -lXdmcp \
|
|
|
|
-lfontconfig -lexpat -lfreetype -lz -lXinerama -lXrandr -lXext
|
2007-04-27 22:01:38 +04:00
|
|
|
|
|
|
|
MANDIR= ${X11BASE}/man/cat
|
2008-03-23 18:09:21 +03:00
|
|
|
MAN= cwm.1 cwmrc.5
|
2007-04-27 22:01:38 +04:00
|
|
|
|
2008-03-23 18:09:21 +03:00
|
|
|
CLEANFILES= cwm.cat1 cwmrc.cat5
|
2007-04-27 22:01:38 +04:00
|
|
|
|
|
|
|
|
2010-02-21 21:15:27 +03:00
|
|
|
all: $(PROG)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OBJS) $(PROG) y.tab.c
|
|
|
|
|
|
|
|
y.tab.c: parse.y
|
|
|
|
byacc parse.y
|
|
|
|
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) y.tab.o
|
|
|
|
$(CC) $(OBJS) ${LDADD} -o ${PROG}
|
|
|
|
|
|
|
|
$(OBJS): %.o: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $(CPPFLAGS) $<
|
|
|
|
|
|
|
|
install: ${PROG}
|
|
|
|
install -m 755 cwm /usr/local/bin/
|
|
|
|
install -m 644 cwm.1 /usr/local/man/man1
|
|
|
|
install -m 644 cwmrc.5 /usr/local/man/man5
|
|
|
|
|
|
|
|
#.include <bsd.prog.mk>
|
|
|
|
#.include <bsd.xorg.mk>
|