Skip to content

Commit f61f311

Browse files
committed
Makefile: add boilerplate for tabs
1 parent 2b141d6 commit f61f311

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

GNUmakefile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,12 @@ TP_OBJS=tput/tput.o
153153
IC_SRCS=infocmp/infocmp.c
154154
IC_OBJS=infocmp/infocmp.o
155155

156+
TA_SRCS=tabs/tabs.c
157+
TA_OBJS=tabs/tabs.o
158+
156159
STALIBS=$(TI_LIBA) $(CU_LIBA) $(PA_LIBA) $(ME_LIBA) $(FO_LIBA)
157160
DYNLIBS=$(TI_LIBSO) $(CU_LIBSO) $(PA_LIBSO) $(ME_LIBSO) $(FO_LIBSO)
158-
PROGS=$(TOOL_TTIC) tset/tset tput/tput infocmp/infocmp
161+
PROGS=$(TOOL_TTIC) tset/tset tput/tput infocmp/infocmp tabs/tabs
159162

160163
ifeq ($(STATIC_BINS),0)
161164
TI_LINKLIB=$(TI_LIBSO)
@@ -183,7 +186,10 @@ install-tput: tput/tput tput/clear.sh
183186
install-infocmp: infocmp/infocmp
184187
$(INSTALL) -Dm 755 infocmp/infocmp $(DESTDIR)$(BINDIR)/infocmp
185188

186-
install-progs: install-tic install-tset install-tput install-infocmp
189+
install-tabs: tabs/tabs
190+
$(INSTALL) -Dm 755 tabs/tabs $(DESTDIR)$(BINDIR)/tabs
191+
192+
install-progs: install-tic install-tset install-tput install-infocmp install-tabs
187193

188194
install-headers-curses: libcurses/curses.h libcurses/unctrl.h
189195
$(INSTALL) -Dm 644 libcurses/curses.h $(DESTDIR)$(INCDIR)/curses.h
@@ -296,7 +302,7 @@ clean:
296302
$(ME_LIBA) $(ME_LIBSO) $(ME_OBJS) $(ME_LOBJS) \
297303
$(FO_LIBA) $(FO_LIBSO) $(FO_OBJS) $(FO_LOBJS) \
298304
$(TS_OBJS) tset/tset $(TP_OBJS) tput/tput \
299-
$(IC_OBJS) infocmp/infocmp
305+
$(IC_OBJS) infocmp/infocmp $(TA_OBJS) tabs/tabs
300306

301307
$(TOOL_NBPERF): $(NBPERF_OBJS)
302308
$(HOSTCC) $(LDFLAGS_HOST) $^ -o $@
@@ -313,12 +319,18 @@ infocmp/infocmp: $(TI_LINKLIB)
313319
infocmp/infocmp: $(IC_OBJS)
314320
$(CC) -o $@ $^ $(LDFLAGS)
315321

322+
tabs/tabs: $(TI_LINKLIB)
323+
tabs/tabs: $(TA_OBJS)
324+
$(CC) -o $@ $^ $(LDFLAGS)
325+
316326
tset/%.o: tset/%.c
317327
$(CC) $(CPPFLAGS) -I./tset -I. -I./libterminfo $(CFLAGS) -c -o $@ $<
318328
tput/%.o: tput/%.c
319329
$(CC) $(CPPFLAGS) -I./tset -I. -I./libterminfo $(CFLAGS) -c -o $@ $<
320330
infocmp/%.o: infocmp/%.c
321331
$(CC) $(CPPFLAGS) -I. -I./libterminfo $(CFLAGS) -c -o $@ $<
332+
tabs/%.o: tabs/%.c
333+
$(CC) $(CPPFLAGS) -I. -I./libterminfo $(CFLAGS) -c -o $@ $<
322334
nbperf/%.o: nbperf/%.c
323335
$(HOSTCC) $(CPPFLAGS) -O0 -g0 $(CFLAGS_HOST) -c -o $@ $<
324336

0 commit comments

Comments
 (0)