6 LUABUILDDIR=/opt/tex/luatex/trunk/build/libs/lua51
7 LUASRCDIR =/opt/tex/luatex/trunk/src/libs/lua51
8 LUALIB=$(LUABUILDDIR)/liblua.a
10 KPSEBUILDDIR = ../../../texk/kpathsea/.libs
11 KPSESRCDIR = ../../../../src/texk
12 KPSELIB=$(KPSEBUILDDIR)/libkpathsea.a
14 MPLIBBUILDDIR = ../../../texk/web2c/mpdir/lib/.libs
15 MPLIBSRCDIR = ../../../../src/texk/web2c/mpdir/lib
16 MPLIB = $(MPLIBBUILDDIR)/libmplib.a
18 CFLAGS = -Wall -W -g -I../.. -I./lib
20 LUAOBJECTS = lmplib.o luamain.o
22 newmpost: $(MPLIB) $(OBJECTS)
23 $(LD) -o newmpost $(OBJECTS) $(MPLIB) $(KPSELIB)
25 luampost: $(MPLIB) $(LUAOBJECTS)
26 $(LD) -o luampost $(LUAOBJECTS) $(MPLIB) $(LUALIB) -lm
30 $(RM) *.o newmpost luampost mpost.c *.scn *.idx *.toc *.pdf *.log
39 $(CC) -c $(CFLAGS) -I$(MPLIBSRCDIR) -I$(KPSESRCDIR) $< -o $@
41 $(LUAOBJECTS): %.o: %.c
42 $(CC) -c $(CFLAGS) -I$(MPLIBSRCDIR) -I$(LUASRCDIR) $< -o $@