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
|
|
|
|
|
2006-02-10 00:48:01 +03:00
|
|
|
CFLAGS += -I../liblitz -I../libixp -I../libcext
|
|
|
|
LDFLAGS += -L../liblitz -llitz -L../libixp -lixp -L../libcext -lcext
|
2005-11-18 18:54:58 +03:00
|
|
|
|
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}
|
|
|
|
|
2006-02-11 16:07:36 +03:00
|
|
|
SRC_psel = wmiipsel.c
|
|
|
|
OBJ_psel = ${SRC_psel:.c=.o}
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2006-02-16 03:05:16 +03:00
|
|
|
all: wmiimenu wmiir wmiipsel
|
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
|
|
|
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
|
|
|
|
2006-02-11 16:07:36 +03:00
|
|
|
wmiipsel: ${OBJ_psel}
|
2005-11-18 18:54:58 +03:00
|
|
|
@echo LD $@
|
2006-02-11 16:07:36 +03:00
|
|
|
@${CC} -o $@ ${OBJ_psel} ${LDFLAGS}
|
2005-11-18 18:54:58 +03:00
|
|
|
|
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:
|
2006-02-11 16:07:36 +03:00
|
|
|
rm -f wmiimenu wmiir wmiipsel wmiiwarp *.o
|