evil-qemacs/libqhtml/Makefile

49 lines
882 B
Makefile
Raw Normal View History

2004-05-29 10:17:37 +00:00
include ../config.mak
CFLAGS:= -Wall -g $(CFLAGS) -funsigned-char
-include ../cflags.mk
2004-05-29 10:17:37 +00:00
ifdef TARGET_GPROF
CFLAGS+= -p
LDFLAGS+= -p
endif
2004-05-29 10:17:37 +00:00
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
2004-05-29 10:17:37 +00:00
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)
2007-12-18 12:20:28 +00:00
%.o: %.c Makefile
$(CC) $(DEFINES) $(CFLAGS) -o $@ -c $<
2004-05-29 10:17:37 +00:00
clean:
2007-12-18 12:20:28 +00:00
rm -f *~ *.o *.a *.exe *_g TAGS gmon.out core *.exe.stackdump \
csstoqe html_style.c docbook_style.c
2004-05-29 10:17:37 +00:00
#
# build default style sheet file
#
2005-05-04 19:40:26 +00:00
csstoqe$(EXE): csstoqe.c
2004-05-29 10:17:37 +00:00
$(HOST_CC) $(CFLAGS) -o $@ $<
2005-05-04 19:40:26 +00:00
html_style.c: html.css csstoqe$(EXE)
2004-05-29 10:17:37 +00:00
./csstoqe html_style < $< > $@
2005-05-04 19:40:26 +00:00
docbook_style.c: docbook.css csstoqe$(EXE)
2004-05-29 10:17:37 +00:00
./csstoqe docbook_style < $< > $@