X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdraw%2FMakefile;fp=src%2Fdraw%2FMakefile;h=46771f1fde7c8b5576c2192631b44f1b8e550770;hb=2e784b9e726a59f2aed71c20d96ebc94aa2d19fb;hp=ca5628b6f0216af071c1e7b5b9589c71d18f4aba;hpb=331e2833e178a1a4b0400e1ea06e1e387009f245;p=fw%2Faltos diff --git a/src/draw/Makefile b/src/draw/Makefile index ca5628b6..46771f1f 100644 --- a/src/draw/Makefile +++ b/src/draw/Makefile @@ -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)