utf8_encode now returns the number of characters copied simplified code accordingly made local functions static fixed shadowing issues added __attr_printf() attributes for gcc to check printf arguments use snprintf() instead of sprintf()
45 lines
772 B
Makefile
45 lines
772 B
Makefile
include ../config.mak
|
|
|
|
CFLAGS:= -Wall -g $(CFLAGS) -funsigned-char
|
|
|
|
-include ../cflags.mk
|
|
|
|
ifdef TARGET_GPROF
|
|
CFLAGS+= -p
|
|
LDFLAGS+= -p
|
|
endif
|
|
|
|
ifdef TARGET_ARCH_X86
|
|
#CFLAGS+=-fomit-frame-pointer
|
|
ifeq ($(GCC_MAJOR),2)
|
|
CFLAGS+=-m386 -malign-functions=0
|
|
else
|
|
CFLAGS+=-march=i386 -falign-functions=0
|
|
endif
|
|
endif
|
|
|
|
CFLAGS+=-I..
|
|
|
|
OBJS=css.o xmlparse.o cssparse.o html_style.o docbook_style.o
|
|
LIB=libqhtml.a
|
|
|
|
all: $(LIB)
|
|
|
|
$(LIB): $(OBJS)
|
|
rm -f $@
|
|
$(AR) rc $@ $(OBJS)
|
|
|
|
clean:
|
|
rm -f *~ *.o *.a *.exe csstoqe html_style.c docbook_style.c
|
|
|
|
#
|
|
# build default style sheet file
|
|
#
|
|
csstoqe$(EXE): csstoqe.c
|
|
$(HOST_CC) $(CFLAGS) -o $@ $<
|
|
|
|
html_style.c: html.css csstoqe$(EXE)
|
|
./csstoqe html_style < $< > $@
|
|
|
|
docbook_style.c: docbook.css csstoqe$(EXE)
|
|
./csstoqe docbook_style < $< > $@
|