## FLXLab v2.5 - A program for running psychology experiments.  
## Copyright (C) 2010 Todd R. Haskell (todd.haskell@wwu.edu) 
## 
## Use and distribution is governed by the terms of the 
## GNU General Public License. Certain portions of the 
## program may be subject to other licenses as well. See 
## the file LICENSE.TXT for details.
## 

include ../Makefile.modules
include ../Makefile.allegro

FLXLABFONTDIR=$(FLXLABVERSIONDIR)/fonts

CFLAGS += -I../mod_graphics/include -I../glyphkeeper/include
ifeq ($(FLXLABOS),linux)
	LIBFLAGS += -L../mod_graphics/lib -lflxgraphics -L../glyphkeeper/lib -lglyphkeeper
endif
ifeq ($(FLXLABOS),windows)
	LIBFLAGS += -L../mod_graphics/lib -lflxgraphics -L../glyphkeeper/lib -lglyphkeeper
endif
ifeq ($(FLXLABOS),mac)
	LIBFLAGS += -L../glyphkeeper/lib -lglyphkeeper
endif

.PHONY: custom_install custom_uninstall

custom_install:
	cp FONT_LICENSE.* $(FLXLABLICENSEDIR)
	mkdir -p $(FLXLABFONTDIR)
	cp fonts/* $(FLXLABFONTDIR) 

custom_uninstall:
	rm -f $(FLXLABLICENSEDIR)/FONT_LICENSE.*
	rm -fr $(FLXLABFONTDIR)
