2 # this is a crude hack to get a cross-compiled binary
4 # - the cross compiler has to be installed under /usr/mingw32
5 # - you have to run <toplevel>/metapost/build.cross,
6 # then rename 'build' to 'cross' (for libkpathsea.a)
10 KPSEBUILDDIR = ../../../../../cross/texk/kpathsea/.libs
14 LD = env PATH=/usr/mingw32/mingw32/bin:$$PATH gcc
15 CC = env PATH=/usr/mingw32/mingw32/bin:$$PATH gcc
18 CFLAGS = -Wall -W -g -I../../..
19 OBJECTS = avl.o mp.o mpost.o psout.o
21 newmpost.exe: $(OBJECTS) avl.h $(KPSEBUILDDIR)/libkpathsea.a
22 $(LD) -o newmpost.exe $(OBJECTS) $(KPSEBUILDDIR)/libkpathsea.a
34 $(CC) -c $(CFLAGS) -I$(KPSESRCDIR) $< -o $@
37 $(RM) *.o newmpost.exe mp.c mpost.c psout.c mp*.h