Mercurial > MadButterfly
view inkscape/firefox/template/textmenu/Makefile @ 657:32d0eef1ee46
Force type-casting for member variables.
For some member that need a casting for the type is that what we want.
For example, casting a void * type to a struct pointer type. This
force will skip type checking, but it works for the variables with a
generic type and we want to specialize its type.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 31 Jul 2010 14:37:19 +0800 |
parents | 7d244a85dd68 |
children |
line wrap: on
line source
SRC=main.c %n.c OBJ=$(SRC:.c=.o) CFLAGS+=`pkg-config --cflags libmbfly` `pkg-config --cflags pangocairo` LDFLAGS=`pkg-config --libs libmbfly` .c.o: $(CC) $(CFLAGS) -c -o $@ $< %.so:%.mbsvg svg2code.py $< $(<:.mbsvg=.mb) m4 -I /usr/local/share/mb mb_c_header.m4 $(<:.mbsvg=.mb) > $(<:.mbsvg=.h) m4 -I /usr/local/share/mb mb_c_source.m4 $(<:.mbsvg=.mb) > $(<:.mbsvg=.c) $(CC) $(CFLAGS) -I../../include -I ../../include -shared -o $@ $(<:.mbsvg=.c) all: list.so textmenu textmenu : $(OBJ) $(CC) -o textmenu $(LDFLAGS) $(OBJ)