

#########################################################################################################################################################
#########################################################################################################################################################

#### "READ ME"

#########################################################################################################################################################
#########################################################################################################################################################



####           - Download sources        http://code.google.com/p/cartooner-color-reducer/downloads/list
####           - Do a double extraction with 7-Zip to      cartoonizer-x.x.x.tgz      archive in      C:\petit-msys-mingw-gimp28\        for      C:\petit-msys-mingw-gimp28\cartoonizer\
####           - Copy this "Makefile" file in the subdirectory  C:\petit-msys-mingw-gimp28\cartoonizer
####           - Open the terminal by clicking " C:\petit-msys-mingw-gimp28\start_MSYS.bat "
####           - Keyboard tapper to the following commands (press the "Enter" key at the end of each line) :

####           cd /env/cartoonizer
####           make
####           exit


####           The plug-in is compiled ( C:\petit-msys-mingw-gimp28\cartoonizer\cartoonizer.exe ) 


####           - To use the plugin compiled with mingw32, copy and paste   cartoonizer.exe   in a plug-ins directory recognized by Gimp ( The list of directories is in : Edit > Preferences > Folders > Plug-Ins ).
####           - Filters > Artistic > Cartoonizer


####           This "Makefile" file is for use with the Windows 32-bit environment available on the website : 
####           http://www.aljacom.com/~gmic/petit-msys-mingw-gimp28.7z  
####           ( 291 123 962 bytes) / MD5 9729f430c15e2a6796c571a7d066f4bf - Version 3 . 
####           samj 20130820


#########################################################################################################################################################
#########################################################################################################################################################

#### END  "READ ME"

#########################################################################################################################################################
#########################################################################################################################################################



################################################################

CC = /w32/bin/mingw32-gcc.exe
B_CFLAGS = -I/w32/include -I/mingw/include -I/python/include -O3 -mms-bitfields -march=i686 -s -Wall
B_LDFLAGS = -L/w32/lib -L/mingw/lib -mwindows -lpthread
GIMPARGS = $(shell gimptool-2.0 --cflags --libs)
PCREARGS = $(shell pcre-config --cflags --libs)

make: 
	$(CC) -o cartoonizer.exe -Wno-unused-variable -Wno-pointer-sign -Wno-parentheses cartoonizer.c $(B_CFLAGS) $(B_LDFLAGS) $(GIMPARGS) $(PCREARGS)

################################################################