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) %.o: %.c Makefile $(CC) $(DEFINES) $(CFLAGS) -o $@ -c $< clean: rm -f *~ *.o *.a *.exe *_g TAGS gmon.out core *.exe.stackdump \ 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 < $< > $@