wmii/cmd/Makefile
2009-05-21 14:22:58 -04:00

42 lines
843 B
Makefile

ROOT=..
include $(ROOT)/mk/hdr.mk
include $(ROOT)/mk/wmii.mk
wmiir.c: $(ROOT)/mk/wmii.mk
DIRS = wmii \
menu
TARG = wihack \
wmii.rc \
wmii.sh \
wmii9menu \
wmii9rc \
wmiir \
wmiistartrc
OFILES = util.o
FILTER = sed "s|CONFPREFIX|$(ETC)|g; \
s|CONFVERSION|$(CONFVERSION)|g; \
s|P9PATHS|$(P9PATHS)|g; \
s|LIBDIR|$(LIBDIR)|g; \
s|BINSH|$(BINSH)|g; \
s|AWKPATH|$(AWKPATH)|g"
LDFLAGS += -lfmt -lutf
CFLAGS += $(INCX11) -DVERSION=\"$(VERSION)\"
include $(ROOT)/mk/many.mk
include $(ROOT)/mk/dir.mk
OWMIIR=wmiir.o $(OFILES) $(LIBIXP)
wmiir.O: $(OWMIIR)
$(LINK) $@ $(STATIC) $(OWMIIR)
wmii/x11.o wmii/map.o: dall
true
O9MENU=wmii9menu.o clientutil.o wmii/x11.o wmii/map.o $(OFILES) $(LIBIXP)
wmii9menu.O: $(O9MENU)
$(LINK) $@ $(O9MENU) $$(pkg-config --libs $(X11PACKAGES)) -lXext -lbio