#! /bin/bash

# This script automatically generates the makifile for my machine, you
# shouldn't use this unless you understand what each line below does.


tmake  etc/pflow-2.5.pro -o Makefile 
cat Makefile | sed -e 's:all\: $(TARGET):all\: $(TARGET)\
\
static\: $(TARGET).static\
\
$(TARGET).static\: $(OBJECTS) $(OBJMOC)\
	$(LINK) $(LFLAGS) -static -o $(TARGET).static $(OBJECTS) $(OBJMOC) $(LIBS)\
\
Pretty\: etc/code.ps etc/headers.ps\
etc/code.ps\: $(SOURCES)\
	a2ps -A src/*.cpp -o etc/code.ps\
etc/headers.ps\: $(HEADERS)\
	a2ps -A src/*.hpp -o etc/headers.ps:' > Makefile2

    cat Makefile2 | sed -e 's:/usr/lib/qt:$(QTDIR):' > Makefile

rm -f Makefile2 
