mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
49 lines
1.0 KiB
Makefile
49 lines
1.0 KiB
Makefile
# window manager improved 2 utilities
|
|
# (C)opyright MMIV-MMVI Anselm R. Garbe
|
|
|
|
include ../config.mk
|
|
|
|
CFLAGS += -I../liblitz -I../libixp -I../libcext
|
|
LDFLAGS += -L../liblitz -llitz -L../libixp -lixp -L../libcext -lcext
|
|
|
|
SRC_menu = wmiimenu.c
|
|
OBJ_menu = ${SRC_menu:.c=.o}
|
|
|
|
SRC_r = wmiir.c
|
|
OBJ_r = ${SRC_r:.c=.o}
|
|
|
|
SRC_psel = wmiipsel.c
|
|
OBJ_psel = ${SRC_psel:.c=.o}
|
|
|
|
all: wmiimenu wmiir wmiipsel
|
|
@echo built wmii commands
|
|
|
|
.c.o:
|
|
@echo CC $<
|
|
@${CC} -c ${CFLAGS} $<
|
|
|
|
wmiimenu: ${OBJ_menu}
|
|
@echo LD $@
|
|
@${CC} -o $@ ${OBJ_menu} ${LDFLAGS}
|
|
# Solaris
|
|
# @${CC} -o $@ ${OBJ_menu} ${LDFLAGS} -lsocket
|
|
|
|
wmiir: ${OBJ_r}
|
|
@echo LD $@
|
|
@${CC} -o $@ ${OBJ_r} -g -L${PREFIX}/lib -L/usr/lib -lc \
|
|
-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
|
|
|
|
wmiipsel: ${OBJ_psel}
|
|
@echo LD $@
|
|
@${CC} -o $@ ${OBJ_psel} ${LDFLAGS}
|
|
|
|
wmiiwarp: ${OBJ_warp}
|
|
@echo LD $@
|
|
@${CC} -o $@ ${OBJ_warp} ${LDFLAGS}
|
|
|
|
clean:
|
|
rm -f wmiimenu wmiir wmiipsel wmiiwarp *.o
|