altosui: Add config and pyro tabs to graph widget
[fw/altos] / src / draw / Makefile
index 29f5d6809bbdd296376856019aef2546a4fd5bad..746178a044e82c133854536925d862636cf4f0f3 100644 (file)
@@ -3,7 +3,7 @@ include $(TOPDIR)/Makefile.defs
 
 vpath %.bdf fonts
 
-BITMAP_SIZES = 10, 12, 14, 16, 18, 24, 26, 28, 32, 36, 48, 64, 72
+BITMAP_SIZES = 10, 12, 14, 16, 18, 24, 26, 28, 32, 36, 48, 58, 60, 62, 64, 72
 
 BDFS=\
        BenguiatGothicStd-Bold-10.bdf \
@@ -45,6 +45,22 @@ BDFS=\
        BitstreamVeraSansMono-Roman-48.bdf \
        BitstreamVeraSansMono-Roman-64.bdf \
        BitstreamVeraSansMono-Roman-72.bdf \
+       BitstreamVeraSans-Roman-10.bdf \
+       BitstreamVeraSans-Roman-12.bdf \
+       BitstreamVeraSans-Roman-14.bdf \
+       BitstreamVeraSans-Roman-16.bdf \
+       BitstreamVeraSans-Roman-18.bdf \
+       BitstreamVeraSans-Roman-24.bdf \
+       BitstreamVeraSans-Roman-26.bdf \
+       BitstreamVeraSans-Roman-28.bdf \
+       BitstreamVeraSans-Roman-32.bdf \
+       BitstreamVeraSans-Roman-36.bdf \
+       BitstreamVeraSans-Roman-48.bdf \
+       BitstreamVeraSans-Roman-58.bdf \
+       BitstreamVeraSans-Roman-60.bdf \
+       BitstreamVeraSans-Roman-62.bdf \
+       BitstreamVeraSans-Roman-64.bdf \
+       BitstreamVeraSans-Roman-72.bdf \
        FrutigerLT-Roman-10.bdf \
        FrutigerLT-Roman-12.bdf \
        FrutigerLT-Roman-14.bdf \
@@ -79,7 +95,9 @@ 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
+
+test: lco-test line-test
 
 $(FONT_SRCS): font-convert
 
@@ -89,9 +107,9 @@ 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_box.c \
        ao_copy.c \
        ao_line.c \
        ao_pattern.c \
@@ -101,11 +119,15 @@ 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)
+
+LINE_TEST_SRCS=$(LIB_SRCS) line-test.c
+LINE_TEST_OBJS=$(LINE_TEST_SRCS:.c=.o)
 
-LIBS=-lXrender -lX11 -lm
+TEST_LIBS=-lXrender -lXext -lX11 -lm -Wl,--gc-sections
 
-CFLAGS=-O2 -g $(WARN_FLAGS)
+CFLAGS=-O3 -g $(WARN_FLAGS) -DVALIDATE -I.
 
 HEADERS=\
        ao_draw.h \
@@ -113,10 +135,21 @@ 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)
+
+lco-test.o: test-frame.c frame.c
+
+$(LCO_TEST_OBJS): $(HEADERS)
 
-$(OBJS): $(HEADERS)
+line-test: $(LINE_TEST_OBJS)
+       cc $(CFLAGS) -o $@ $(LINE_TEST_OBJS) $(TEST_LIBS)
+
+line-test.o: test-frame.c frame.c
+
+$(LINE_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)
+
+install: