summaryrefslogtreecommitdiff
path: root/Build/source/libs/luafontforge/Makefile
blob: 84564f19ad270143659328210e0cf1f40ae3863e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $Id$

srcdir=../../../libs/luafontforge

FF_LIB=ffdummies.o luafflib.o

_CFLAGS=-Wall -DFONTFORGE_CONFIG_NO_WINDOWING_UI=1 -DLUA_FF_LIB=1 $(XCFLAGS)
CFLAGS = -g -O2

.PHONY: newfile

fontforge: $(FF_LIB) newfile
	rm -f libff.a
	cd fontforge && $(MAKE)
	cd Unicode && $(MAKE)
	sh -c "ar cru libff.a fontforge/*.o Unicode/*.o $(FF_LIB)"
	ranlib libff.a

%.o: $(srcdir)/src/%.c
	gcc $(_CFLAGS) $(CFLAGS) -I$(srcdir)/../lua51 -I$(srcdir)/fontforge/inc -I$(srcdir)/fontforge/fontforge -c $< -o $@

clean:
	rm  -f libff.a $(FF_LIB)
	cd fontforge; $(MAKE) clean
	cd Unicode; $(MAKE) clean