altos/draw: Add logo
[fw/altos] / src / draw / Makefile
index ca5628b6f0216af071c1e7b5b9589c71d18f4aba..46771f1fde7c8b5576c2192631b44f1b8e550770 100644 (file)
@@ -15,13 +15,16 @@ FONT_SRCS=$(BDFS:.bdf=.c)
 .bdf.c:
        nickle font-convert $*.bdf > $@
 
-all: ao_font.h draw-test
+all: ao_font.h ao_logo.h draw-test
 
 $(FONT_SRCS): font-convert
 
 ao_font.h: $(FONT_SRCS)
        grep -h '^const struct ao_font' $(FONT_SRCS) | sed -e 's/^/extern /' -e 's/ =.*$$/;/' > $@
 
+ao_logo.h: make-logo Makefile
+       nickle make-logo ao_logo 48 0 10 > $@
+
 SRCS=\
        draw-test.c \
        ao_blt.c \
@@ -31,6 +34,7 @@ SRCS=\
        ao_rect.c \
        ao_poly.c \
        ao_text.c \
+       ao_logo.c \
        $(FONT_SRCS)
 
 OBJS=$(SRCS:.c=.o)
@@ -42,7 +46,8 @@ CFLAGS=-O0 -g
 HEADERS=\
        ao_draw.h \
        ao_draw_int.h \
-       ao_font.h
+       ao_font.h \
+       ao_logo.h
 
 draw-test: $(OBJS)
        cc $(CFLAGS) -o $@ $(OBJS) $(LIBS)
@@ -50,4 +55,4 @@ draw-test: $(OBJS)
 $(OBJS): $(HEADERS)
 
 clean:
-       rm -f $(OBJS) ao_font.h $(FONT_SRCS)
+       rm -f $(OBJS) ao_font.h ao_logo.h $(FONT_SRCS)