2005-11-18 18:54:58 +03:00
|
|
|
# window manager improved 2 utilities
|
2006-01-20 17:20:24 +03:00
|
|
|
# (C)opyright MMIV-MMVI Anselm R. Garbe
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
include ../config.mk
|
|
|
|
|
|
|
|
CFLAGS += -I../liblitz -I../libixp -I../libwmii -I../libcext
|
|
|
|
LDFLAGS += -L../liblitz -llitz -L../libixp -lixp \
|
2006-01-30 21:08:58 +03:00
|
|
|
-L../libwmii -lwmii -L../libcext -lcext
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
SRC_bar = wmiibar.c
|
2005-11-18 18:54:58 +03:00
|
|
|
OBJ_bar = ${SRC_bar:.c=.o}
|
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
SRC_menu = wmiimenu.c
|
2005-11-18 18:54:58 +03:00
|
|
|
OBJ_menu = ${SRC_menu:.c=.o}
|
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
SRC_r = wmiir.c
|
2005-11-18 18:54:58 +03:00
|
|
|
OBJ_r = ${SRC_r:.c=.o}
|
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
SRC_fs = wmiifs.c
|
2005-11-18 18:54:58 +03:00
|
|
|
OBJ_fs = ${SRC_fs:.c=.o}
|
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
SRC_keys = wmiikeys.c
|
2005-11-18 18:54:58 +03:00
|
|
|
OBJ_keys = ${SRC_keys:.c=.o}
|
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
SRC_plumb = wmiiplumb.c
|
2005-11-18 18:54:58 +03:00
|
|
|
OBJ_plumb = ${SRC_plumb:.c=.o}
|
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
SRC_warp = wmiiwarp.c
|
2005-11-18 18:54:58 +03:00
|
|
|
OBJ_warp = ${SRC_warp:.c=.o}
|
|
|
|
|
2006-01-30 21:08:58 +03:00
|
|
|
#all: wmiibar wmiimenu wmiir wmiifs wmiikeys wmiiplumb wmiiwarp
|
|
|
|
all: wmiibar wmiir wmiiplumb wmiiwarp
|
2005-12-12 17:08:16 +03:00
|
|
|
@echo built wmii commands
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
@echo CC $<
|
|
|
|
@${CC} -c ${CFLAGS} $<
|
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
wmiibar: ${OBJ_bar}
|
2005-11-18 18:54:58 +03:00
|
|
|
@echo LD $@
|
2006-01-30 21:08:58 +03:00
|
|
|
@${CC} -o $@ ${OBJ_bar} ${LDFLAGS}
|
2006-01-21 14:57:20 +03:00
|
|
|
# Solaris
|
2006-01-30 21:08:58 +03:00
|
|
|
# @${CC} -o $@ ${OBJ_bar} ${LDFLAGS} -lsocket
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
wmiimenu: ${OBJ_menu}
|
2005-11-18 18:54:58 +03:00
|
|
|
@echo LD $@
|
|
|
|
@${CC} -o $@ ${OBJ_menu} ${LDFLAGS}
|
2006-01-21 14:57:20 +03:00
|
|
|
# Solaris
|
|
|
|
# @${CC} -o $@ ${OBJ_menu} ${LDFLAGS} -lsocket
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
wmiir: ${OBJ_r}
|
2005-11-18 18:54:58 +03:00
|
|
|
@echo LD $@
|
2006-02-01 16:03:45 +03:00
|
|
|
@${CC} -o $@ ${OBJ_r} -g -L${PREFIX}/lib -L/usr/lib -lc \
|
2005-11-18 18:54:58 +03:00
|
|
|
-L../libixp -lixp -L../libcext -lcext
|
2006-01-21 14:57:20 +03:00
|
|
|
# Solaris
|
|
|
|
# @${CC} -o $@ ${OBJ_r} -g -static -L${PREFIX}/lib -L/usr/lib -lc \
|
|
|
|
# -L../libixp -lixp -L../libcext -lcext -lsocket
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
wmiifs: ${OBJ_fs}
|
2005-11-18 18:54:58 +03:00
|
|
|
@echo LD $@
|
|
|
|
@${CC} -o $@ ${OBJ_fs} ${LDFLAGS}
|
2006-01-21 14:57:20 +03:00
|
|
|
# Solaris
|
|
|
|
# @${CC} -o $@ ${OBJ_fs} ${LDFLAGS} -lsocket
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
wmiikeys: ${OBJ_keys}
|
2005-11-18 18:54:58 +03:00
|
|
|
@echo LD $@
|
|
|
|
@${CC} -o $@ ${OBJ_keys} ${LDFLAGS}
|
2006-01-21 14:57:20 +03:00
|
|
|
# Solaris
|
|
|
|
# @${CC} -o $@ ${OBJ_keys} ${LDFLAGS} -lsocket
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
wmiiplumb: ${OBJ_plumb}
|
2005-11-18 18:54:58 +03:00
|
|
|
@echo LD $@
|
|
|
|
@${CC} -o $@ ${OBJ_plumb} ${LDFLAGS}
|
|
|
|
|
2005-12-12 17:08:16 +03:00
|
|
|
wmiiwarp: ${OBJ_warp}
|
2005-11-18 18:54:58 +03:00
|
|
|
@echo LD $@
|
|
|
|
@${CC} -o $@ ${OBJ_warp} ${LDFLAGS}
|
|
|
|
|
|
|
|
clean:
|
2005-12-12 17:08:16 +03:00
|
|
|
rm -f wmiibar wmiibar2 wmiimenu wmiir wmiir2 wmiikeys wmiiplumb wmiifs\
|
|
|
|
wmiiwarp *.o
|