donstranding

Don Stranding
git clone git://git.kocotian.pl/donstranding.git
Log | Files | Refs | Submodules | README | LICENSE

commit c7da8b1e4ef595748b0e57b2ffd4705a6e9e3d42
parent 16f75a3f78e96a460ec8fbf47681bc8c0a3fbfbf
Author: kocotian <kocotian@kocotian.pl>
Date:   Sun,  2 May 2021 21:50:48 +0200

TOBJs (for daemon without TUI)

Diffstat:
MMakefile | 14++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -7,7 +7,9 @@ include config.mk all: options donstranding LIB = util.c -OBJ = ${LIB:.c=.o} termbox/bin/termbox.a +OBJ = ${LIB:.c=.o} +TLIB = tui.c +TOBJ = ${TLIB:.c=.o} termbox/bin/termbox.a # termbox TERMBOXSRCD=termbox/src @@ -29,17 +31,17 @@ options: @echo "CPPFLAGS = ${CPPFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" -donstrandingc: donstrandingc.c ${OBJ} - ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ $< ${OBJ} +donstrandingc: donstrandingc.c ${OBJ} ${TOBJ} + ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ $< ${OBJ} ${TOBJ} donstrandingd: donstrandingd.c ${OBJ} ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ $< ${OBJ} -donstranding: donstranding.c donstrandingc donstrandingd ${OBJ} - ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ $< ${OBJ} +donstranding: donstranding.c donstrandingc donstrandingd ${OBJ} ${TOBJ} + ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ $< ${OBJ} ${TOBJ} clean: - rm -f ${OBJ} donstranding donstrandingc donstrandingd + rm -f ${OBJ} ${TOBJ} donstranding donstrandingc donstrandingd cd termbox && make clean && cd .. .PHONY: all options clean