--- /dev/null
+
+mods = $(wildcard *.mod)
+
+results = $(patsubst %.mod,%.result,$(mods))
+
+all: $(results)
+
+%.result: %.mod
+ @echo Resolviendo $^...
+ @glpsol --model $^ --bounds $^.bounds > $@
+ @echo >> $@
+ @echo ------------------------------------------------------------------------ >> $@
+ @echo >> $@
+ @cat $^.bounds >> $@
+ @$(RM) $^.bounds
+
+clean:
+ @echo Limpiando...
+ @rm -fv *.result
+
+.PHONY: clean
+
--- /dev/null
+
+var baguettes, >= 0; /* baguettes a producir por día */
+var panes, >= 0; /* panes a producir por día */
+
+maximize
+ value: 0.3 * baguettes + 0.8 * panes;
+
+subject to
+ agua: 0.06 * baguettes + 0.2 * panes <= 80;
+ levadura: 0.01 * baguettes + 0.012 * panes <= 8;
+ bolsas: baguettes <= 450;
+ harina: 0.1 * baguettes + 0.25 * panes <= 100;
+end;