From d804a00a7576d5e3c59c413762248787a1282c16 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 26 Feb 2023 16:04:17 -0800 Subject: [PATCH] altos/draw: Rename test app to 'lco-test' This seems like a good place to do the LCO UX prototyping Signed-off-by: Keith Packard --- src/draw/.gitignore | 2 +- src/draw/Makefile | 18 +++++++++--------- src/draw/{draw-test.c => lco-test.c} | 0 3 files changed, 10 insertions(+), 10 deletions(-) rename src/draw/{draw-test.c => lco-test.c} (100%) diff --git a/src/draw/.gitignore b/src/draw/.gitignore index 85d26253..8e744bea 100644 --- a/src/draw/.gitignore +++ b/src/draw/.gitignore @@ -4,4 +4,4 @@ Bitstream*.c NotoMono*.c ao_font.h ao_logo.h -draw-test +lco-test diff --git a/src/draw/Makefile b/src/draw/Makefile index ccedc6a1..47336fbe 100644 --- a/src/draw/Makefile +++ b/src/draw/Makefile @@ -79,7 +79,7 @@ FONT_SRCS=$(BDFS:.bdf=.c) .bdf.c: nickle font-convert -o $@ $< -all: ao_font.h ao_logo.h draw-test +all: ao_font.h ao_logo.h lco-test $(FONT_SRCS): font-convert @@ -89,8 +89,7 @@ ao_font.h: $(FONT_SRCS) ao_logo.h: make-logo nickle make-logo ao_logo > $@ -SRCS=\ - draw-test.c \ +LIB_SRCS=\ ao_blt.c \ ao_copy.c \ ao_line.c \ @@ -101,9 +100,10 @@ SRCS=\ ao_logo.c \ $(FONT_SRCS) -OBJS=$(SRCS:.c=.o) +LCO_TEST_SRCS=$(LIB_SRCS) lco-test.c +LCO_TEST_OBJS=$(LCO_TEST_SRCS:.c=.o) -LIBS=-lXrender -lX11 -lm -Wl,--gc-sections +TEST_LIBS=-lXrender -lX11 -lm -Wl,--gc-sections CFLAGS=-O0 -g $(WARN_FLAGS) @@ -113,10 +113,10 @@ HEADERS=\ ao_font.h \ ao_logo.h -draw-test: $(OBJS) - cc $(CFLAGS) -o $@ $(OBJS) $(LIBS) +lco-test: $(LCO_TEST_OBJS) + cc $(CFLAGS) -o $@ $(LCO_TEST_OBJS) $(TEST_LIBS) -$(OBJS): $(HEADERS) +$(LCO_TEST_OBJS): $(HEADERS) clean: - rm -f $(OBJS) ao_font.h ao_logo.h $(FONT_SRCS) + rm -f $(LCO_TEST_OBJS) ao_font.h ao_logo.h $(FONT_SRCS) diff --git a/src/draw/draw-test.c b/src/draw/lco-test.c similarity index 100% rename from src/draw/draw-test.c rename to src/draw/lco-test.c -- 2.30.2