simplified cmd/Makefile drastically

This commit is contained in:
Anselm R. Garbe 2006-02-24 11:53:12 +01:00
parent 73539061ad
commit 47817e833e

View File

@ -6,43 +6,20 @@ 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 = wmiimenu.c wmiipsel.c wmiir.c
OBJ = ${SRC:.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
all: ${OBJ}
@echo built wmii commands
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
@echo LD $*
@${CC} -o $* $*.o ${LDFLAGS}
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}
# @${CC} -o $* $*.o ${LDFLAGS} -lsocket
clean:
rm -f wmiimenu wmiir wmiipsel wmiiwarp *.o