wmii/cmd/Makefile

49 lines
1.0 KiB
Makefile
Raw Normal View History

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../libcext
LDFLAGS += -L../liblitz -llitz -L../libixp -lixp -L../libcext -lcext
2005-11-18 18:54:58 +03:00
SRC_menu = wmiimenu.c
2005-11-18 18:54:58 +03:00
OBJ_menu = ${SRC_menu:.c=.o}
SRC_r = wmiir.c
2005-11-18 18:54:58 +03:00
OBJ_r = ${SRC_r:.c=.o}
SRC_psel = wmiipsel.c
OBJ_psel = ${SRC_psel:.c=.o}
2005-11-18 18:54:58 +03:00
all: wmiimenu wmiir wmiipsel
@echo built wmii commands
2005-11-18 18:54:58 +03:00
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
wmiimenu: ${OBJ_menu}
2005-11-18 18:54:58 +03:00
@echo LD $@
@${CC} -o $@ ${OBJ_menu} ${LDFLAGS}
# Solaris
# @${CC} -o $@ ${OBJ_menu} ${LDFLAGS} -lsocket
2005-11-18 18:54:58 +03:00
wmiir: ${OBJ_r}
2005-11-18 18:54:58 +03:00
@echo LD $@
@${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
# 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
wmiipsel: ${OBJ_psel}
2005-11-18 18:54:58 +03:00
@echo LD $@
@${CC} -o $@ ${OBJ_psel} ${LDFLAGS}
2005-11-18 18:54:58 +03:00
wmiiwarp: ${OBJ_warp}
2005-11-18 18:54:58 +03:00
@echo LD $@
@${CC} -o $@ ${OBJ_warp} ${LDFLAGS}
clean:
rm -f wmiimenu wmiir wmiipsel wmiiwarp *.o